Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jun 2011 11:48:54 +0200
From:      =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Partitioning with gpart or old style slices?
Message-ID:  <4DEB5106.8010701@locolomo.org>
In-Reply-To: <201106050103.47416.rsimmons0@gmail.com>
References:  <4DEAAE54.1050508@locolomo.org>	<alpine.BSF.2.00.1106042039240.34792@wonkity.com>	<20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/6/11 7:03 AM, Robert Simmons wrote:
> On Sunday, June 05, 2011 12:40:22 AM Matthias Apitz wrote:
>> # gpart create -s mbr ad4                 # Init the disk with an MBR
>> # gpart add -t freebsd ad4                # Create a BSD container
>> # gpart create -s bsd ad4s1               # Init with a BSD scheme
>> # gpart add -t freebsd-ufs  -s 1G ad4s1   # 1GB for /
>> # gpart add -t freebsd-swap -s 2G ad4s1   # 2GB for swap
>> # gpart add -t freebsd-ufs  -s 2G ad4s1   # 2GB for /var
>> # gpart add -t freebsd-ufs  -s 1G ad4s1   # 1GB for /tmp
>> # gpart add -t freebsd-ufs ad4s1          # all rest for /usr
>> # gpart set -a active -i 1 ad4
>
> You need to install the bootcode:
>
> This will install the interactive one:
> gpart bootcode -b /mnt2/boot/boot0 ad4
>
> this will install the non-interactive one:
> gpart bootcode -b /mnt2/boot/mbr ad4

Thanks Warren, great article, and thanks all for the follow up posts as 
well.

Just one more question, the usual mbr and boot files will boot a gpt 
partition? I see there are some additional files gptboot and pmbr?

Thanks, Erik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DEB5106.8010701>