Subject: Re: should sysinst change MBR_PTYPE_386BSD to MBR_PTYPE_NETBSD?
To: Alan Barrett <apb@cequrux.com>
From: Perry E. Metzger <perry@piermont.com>
List: tech-install
Date: 06/14/2003 12:24:32
Alan Barrett <apb@cequrux.com> writes:
> 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.

I made that change. I did it to permit people to dual boot NetBSD and
FreeBSD.

> 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.

I assume they didn't feel they had to.

-- 
Perry E. Metzger		perry@piermont.com