From owner-freebsd-current@FreeBSD.ORG Thu Oct 22 01:54:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09EF4106566B for ; Thu, 22 Oct 2009 01:54:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id A28518FC14 for ; Thu, 22 Oct 2009 01:54:34 +0000 (UTC) Received: from [192.168.1.4] (adsl-154-198-93.ard.bellsouth.net [72.154.198.93]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n9M1sQXE085119 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 21 Oct 2009 21:54:26 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Aristedes Maniatis In-Reply-To: <4ADFB56B.9040607@ish.com.au> References: <4ADE995A.8080009@ish.com.au> <1256174188.2309.22.camel@balrog.2hip.net> <4ADFB56B.9040607@ish.com.au> Content-Type: text/plain Organization: FreeBSD Date: Wed, 21 Oct 2009 20:54:20 -0500 Message-Id: <1256176460.2309.37.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-current@freebsd.org, Jurgen Weber Subject: Re: gpart, bsdlabel and fdisk 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: Thu, 22 Oct 2009 01:54:35 -0000 On Thu, 2009-10-22 at 12:29 +1100, Aristedes Maniatis wrote: > On 22/10/09 12:16 PM, Robert Noland wrote: > > gpart create -s GPT > > Sorry to keep asking so many questions, but hopefully this is all helpful to everyone else moving to the new gpart tools. > > I can see there are three common partition types now in use on FreeBSD: MBR, BSD and GPT. I assume MBR is the same type sysinstall offerred FreeBSD users up until now for bootable disks. And GPT is the new type which is needed to support booting into ZFS. Does this explain why bsdlabel shows odd results for our GPT partitioned disks: it doesn't have support for GPT? > > I don't understand this in the gpart manual: > > "The GEOM_PART_GPT option adds support for the GUID Partition Table (GPT) found on Intel Itanium computers and Intel-based Macintosh computers." > > Why is GPT restricted to use on Macs and Itanium? As long as BIOS is able to load the boot sectors, shouldn't it work everywhere? Can you clarify this a little? > > Will GPT be the default recommended partition type for all FreeBSD users now? Are there downsides to using it? Does it have a documentation page somewhere? Well now... You probably want to wikipedia some of this.... http://en.wikipedia.org/wiki/Partition_%28computing%29 is probably a good starting place. GPT is the easiest way to get zfs working. With GPT you write a PMBR (protective master boot record) to sector 0 of the drive. This prevents (should prevent) older tools that don't understand GPT from messing with the disk. Basically it shows the disk as having a single partition which encompasses the disk. The GPT header then occupies the second sector on the disk, followed by the partition entries. As I understand it (never actually tried it), Windows XP/Vista whatever... Don't understand GPT yet, so you can't really dual boot with it. For that you probably still need an MBR scheme. But I haven't run into any pc systems that won't handle GPT yet, other than one of them needing the active flag set in the PMBR. robert. > Thanks > > Ari Maniatis > -- Robert Noland FreeBSD