Date: Wed, 30 Jan 2013 20:05:47 -0700 From: Gary Aitken <freebsd@dreamchaser.org> To: Warren Block <wblock@wonkity.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: 9.1 install wipes out gpart boot blocks? Message-ID: <5109DF8B.3030109@dreamchaser.org> In-Reply-To: <alpine.BSF.2.00.1301301656400.42000@wonkity.com> References: <510990EF.9040101@dreamchaser.org> <alpine.BSF.2.00.1301301656400.42000@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5109DF8B.3030109>