From owner-freebsd-current@FreeBSD.ORG Thu Oct 22 02:45:07 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 5B94D106568F for ; Thu, 22 Oct 2009 02:45:07 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout024.mac.com (asmtpout024.mac.com [17.148.16.99]) by mx1.freebsd.org (Postfix) with ESMTP id 1A7F08FC1C for ; Thu, 22 Oct 2009 02:45:07 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp024.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KRW00LA6AB44H40@asmtp024.mac.com> for freebsd-current@freebsd.org; Wed, 21 Oct 2009 19:45:06 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <4ADFABE1.2080001@ish.com.au> Date: Wed, 21 Oct 2009 19:45:03 -0700 Message-id: <291F3A8D-A1D7-45CE-8DCC-8B46CB394D45@mac.com> References: <4ADE995A.8080009@ish.com.au> <5208B24B-0ED9-493F-81E4-04BF33FA9062@mac.com> <4ADFABE1.2080001@ish.com.au> To: Aristedes Maniatis X-Mailer: Apple Mail (2.1076) Cc: freebsd-current@freebsd.org 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 02:45:07 -0000 On Oct 21, 2009, at 5:48 PM, Aristedes Maniatis wrote: > On 22/10/09 4:54 AM, Marcel Moolenaar wrote: > >>> * is this the future for FreeBSD and we should use gpart from here >>> on? Are the old tools deprecated? >> >> Yes. > > But the 8.0 sysinstall still uses fdisk and bsdlabel? No, sysinstall has embedded code for partitioning. It doesn't use fdisk, bsdlabel nor gpart. > >>> * is the result of using gpart completely different to the >>> bsdlabel/fdisk we've known? Are the partitions on disk quite >>> different? >> >> The on-disk layout is dictated and cannot be different. As such, >> they are the same. > > But some things look different. For example, old style labels were > always of the style ad4s1b. ad4s1b means that ad4 has a MBR and in partition 4 of the MBR is a BSD disklabel that has a 'b' partition. This is exactly the same you get with gpart. > But now the labels appear to be more flexible. Should we be using > old style labels for compatibility with old tools, or does > everything work with the new labelling options? There's not really an old style or a new style. gpart (with GEOM_PART in the kernel) is just a different way of creating on-disk partitions. gpart does add some flexibility in some cases (more than 8 partitions in the BSD disklabel), but it's still a BSD disklabel. > >>> * is there some source of good documentation out there other than >>> the man page for gpart? >> >> man gpart. > > Hmmm... I was hoping for something more useful than that response. > Where is it documented that I have to do "echo 'a 1' | fdisk -f - / > dev/ad4" to make a disk bootable? man fdisk :-) Or with gpart: # gpart set -a active -i 1 ad4 > Is there a work-in-progress handbook page somewhere that describes > the overall process of setting up disks with the new tools? It typically takes a while for that to catch up with events. I don't think there's a WIP just yet... -- Marcel Moolenaar xcllnt@mac.com