From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 10:06:24 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 022CD1065672 for ; Sun, 5 Jun 2011 10:06:24 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 5FA028FC1D for ; Sun, 5 Jun 2011 10:06:23 +0000 (UTC) Received: from gamma.wifi.locolomo.org (gamma.wifi.locolomo.org [172.16.1.5]) by mail.locolomo.org (Postfix) with ESMTPSA id BE7B81C0841 for ; Sun, 5 Jun 2011 11:48:54 +0200 (CEST) Message-ID: <4DEB5106.8010701@locolomo.org> Date: Sun, 05 Jun 2011 11:48:54 +0200 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4DEAAE54.1050508@locolomo.org> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> In-Reply-To: <201106050103.47416.rsimmons0@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Partitioning with gpart or old style slices? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2011 10:06:24 -0000 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