Subject: Re: Disklabel, fdisk, etc...
To: Jon Lindgren <jlindgren@espus.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 07/18/2000 22:29:04
On Wed, Jul 12, 2000 at 03:15:10PM -0400, Jon Lindgren wrote:
> I'm curious as to how disklabel/fdisk work together or with the native
> disklabels on different ports.
> 
> AFAIK, it seems to go like this on i386:
> 
> 	fdisk creates "standard" DOS style partitions.  One of these
> partitions has a disklabel created by disklabel, which defines partitions 
> usually used by NetBSD (/, /usr, /var, etc...).

Note that you don't need a DOS style partition table, the disklabel will then
be at the beggining of the disk then.

> 
> What I'm curious to find out is:
> 
> 	1) How this works on other ports (very interrested in vax, alpha,
> sparc, mac68k, but I'd always love tidbits on ports I don't run...)

I don't know for mac68k, but other ports you've listed just have a NetBSD
disklabel at the beggining of the disk.

> 
> 	2) How this works for floppies, removable media, etc...

You either don't have any disklabel/partition table at all, or just a
disklabel, or a partition table + disklabel. 

> 
> 	3) Any juicy details, tips, ideas, random thoughts.
> 
> 	4) How does disklabel/fdisk work with native disklabels?

I'm not sure I understand this question. fdisk partition table and disklabels
are very different things, this is why whe have both for ports which uses
the fdisk-style partition table to boot. On other (this is true for most
tradidtionnal unix hardware), the native partition table format is close
enouth to what disklabel uses to use it. The drawback is that the disklabel
format is machine-dependant.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--