From owner-freebsd-questions@FreeBSD.ORG Thu Jan 31 03:05:58 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 60BE0D68 for ; Thu, 31 Jan 2013 03:05:58 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 26A506D6 for ; Thu, 31 Jan 2013 03:05:57 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r0V35k0n009166; Wed, 30 Jan 2013 20:05:47 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: <5109DF8B.3030109@dreamchaser.org> Date: Wed, 30 Jan 2013 20:05:47 -0700 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121116 Thunderbird/16.0.2 MIME-Version: 1.0 To: Warren Block Subject: Re: 9.1 install wipes out gpart boot blocks? References: <510990EF.9040101@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 30 Jan 2013 20:05:47 -0700 (MST) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 03:05:58 -0000 On 01/30/13 17:20, Warren Block wrote: > On Wed, 30 Jan 2013, Gary Aitken wrote: >> clean up (delete) the original partitions >> gpart destroy ada3 > > These two steps can be replaced with > gpart destroy -F ada3 I prefer doing it piecemeal to see what's happening when along the way. >> gpart create -s GPT ada3 >> gpart bootcode -b /boot/pmbr ada3 >> gpart add -t freebsd-boot -i 1 -s 512K -l gptboot ada3 >> gpart bootcode -p /boot/gptboot -i 1 ada3 > > I do the bootcode in one step: > gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada3 Again, I prefer incremental steps so it's more obvious what any diagnostics are referring to, if they should appear. >> gpart add -t freebsd-ufs -a 4K -b 1M -s 4G -i 2 -l fbsdroot ada3 # / >> gpart add -t freebsd-swap -a 4K -s 2G -i 3 -l fbsdswap ada3 # swap >> gpart add -t freebsd-ufs -a 4K -s 2G -i 4 -l fbsdvar ada3 # /var >> gpart add -t freebsd-ufs -a 4K -s 2G -i 5 -l fbsdtmp ada3 # /tmp >> gpart add -t freebsd-ufs -a 4K -i 6 -l fbsdusr ada3 # /usr > > It's not necessary to use partition numbers with "add", gpart will just use the next one available. True, but if things get out of order for some reason, then you have a mess. > Here are my notes: > http://www.wonkity.com/~wblock/docs/html/disksetup.html Thanks, already read that and bookmarked it quite a while ago.