Subject: Re: Two NetBSDs on one (i386) drive
To: Rick Byers <rb-netbsd@BigScaryChildren.net>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: tech-kern
Date: 12/20/2001 08:35:34
In some email I received from Rick Byers, sie wrote:
> > I'd like to be able to have two distinct NetBSD setups on one i386
> > drive.
> >
> > At the minute it isn't possible (well, not cleanly) because both /boot
> > and the kernel find the root by searching the partition table for a
> > NetBSD partition, and assuming that the first they find is it.
> > [...]
> 
> If we recognize more than one NetBSD partition on a disk, that means
> more than one disklabel.  Wouldn't that cause a bunch of problems?  For
> example, how do I write the second disklabel when I've booted from the
> first partition?  I would find it confusing because now there are two
> different NetBSD views of the disk (i.e. the meaning of "wd0a" depends on
> which partition you booted from - what if you boot from a floppy?)
[...]

This is a symptom of other problems in how we address DOS disk partitions
under NetBSD.  At some point we need to start using slices so we can have
wd0s[1-4][a-?].

Darren