From owner-freebsd-stable Sat Apr 7 2:48:47 2001 Delivered-To: freebsd-stable@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 01CCD37B42C for ; Sat, 7 Apr 2001 02:48:44 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 47803 invoked by uid 100); 7 Apr 2001 09:48:43 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15054.57979.84674.462609@guru.mired.org> Date: Sat, 7 Apr 2001 04:48:43 -0500 To: The Babbler Cc: Rasputin , stable@freebsd.org Subject: Re: Disklabel 101? In-Reply-To: <3ACE972D.A13CF44C@babbleon.org> References: <20010405111707.A35325@dogma.freebsd-uk.eu.org> <3ACE972D.A13CF44C@babbleon.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The Babbler types: > Rasputin wrote: > > man disklabel etc all assume you know what those letters mean. > > I know c is the whole partition, but that's it. > > c = entire disk > a = root > b = swap > d = ??? I don't know; it's never used > e+ = other partitions. > > BTW, does anybody know *why* BSD uses such a bizarre scheme? BSD does it this way because the Unix it was based on did it. This dates back to at least v6, where I first met it. Root and swap used to be wired into the kernel at config time, and making the first two partitions the system had to find while booting the first two in the table does make sense. C was required and unusuable; it included the cylinders that were reserved for bad block handling, and the tools that did that assumed it was there. It was also used for disk-disk backups at times. At the time, computers were typically used by more than one department at a time. This led to even more reasons to want to partition a disk. If memory serves, partition table information used to be in the kernel - wired into the driver for that disk - so all disks of the same type had to have the same partition table. So it was useful to stagger the partition sizes to provide more choices. A typical setup might have f, g and h about the same size and covering the entire disk. e was what was left in f after a & b were taken out. d was the usable disk beyond a & b (or something like that). The only thing that's still hardwired is that root has to be on a. The boot sequence is fubar if you don't do that, though it's been claimed that that's not hard to fix. The rest you can do pretty much any way you please. I.e. - you don't need swap at all, and I've got one system that has swap on a different slice than it's root file system. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message