From owner-freebsd-current@FreeBSD.ORG Mon May 18 16:40:59 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDE751065680 for ; Mon, 18 May 2009 16:40:59 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id A0B478FC19 for ; Mon, 18 May 2009 16:40:59 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 8288AFF12; Tue, 19 May 2009 04:22:59 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DFoUr-rbyHsi; Tue, 19 May 2009 04:22:55 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Tue, 19 May 2009 04:22:55 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 457ED11432; Tue, 19 May 2009 04:22:54 +1200 (NZST) Date: Mon, 18 May 2009 09:22:54 -0700 From: Andrew Thompson To: Marcel Moolenaar Message-ID: <20090518162253.GA78829@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: current@freebsd.org Subject: gpart X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 16:41:00 -0000 Hi, I used gpart for the first time today and a few things came to mind. - The -s option doesnt take a humanised size, such as 256M - In a lot of cases the offset can be handled, ie 34 126090653 ad3 GPT (60G) 34 6 - free - (3.0K) 40 409600 1 efi (200M) 409640 41943040 2 freebsd-zfs (20G) 42352680 83738007 - free - (40G) If I was to do 'gpart add -s 10G -t freebsd-ufs ad3' then I would expect the utility to search for 20971520 free sectors and place the new partition at offset 42352680 automagically. - I cant see how to use wildcard to take all the remaining space. This would make scripting much easier as it wouldnt need to grok the geometry first. gpart create -s GPT ad3 gpart add -s 256M -t freebsd-ufs ad3 gpart add -s 2G -t freebsd-swap ad3 gpart add -s max -t freebsd-ufs ad3 cheers, Andrew