Subject: Re: should sysinst change MBR_PTYPE_386BSD to MBR_PTYPE_NETBSD?
To: None <tech-install@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-install
Date: 06/14/2003 18:32:56
On Sat, 14 Jun 2003, David Laight wrote:
> Do I remember something about the format of a netbsd disklabel being
> slightly different from other bsds that might be (still) using type 165?
> (something like the sector numbers being relative to the mbr partition?)
> If so then this translation (and the related kernel code) is completely
> brain dead.
386BSD type 165 partitions contain disklabels that contain sector
numbers relative to the entire disk.
Current NetBSD type 169 partitions contain disklabels that contain
sector numbers relative to the entire disk. I don't know why NetBSD
changed the number when the format did not change.
Current FreeBSD type 165 partitions contain disklabels that contain
sector numbers relative to the MBR partition (what FreeBSD calls a
"slice"). I don't know why FreeBSD changed the format without also
changing the number.
--apb (Alan Barrett)