Subject: Re: disklabel partition "c" with dual booting
To: <>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 04/07/2005 07:46:53
> One thing that I thought was strange:  on the second installation (to
> wd0e), sysinst wrote the following fstab:
> 
> /dev/wd0a / ffs rw,noauto 1 1
> /dev/wd0b none swap sw 0 0
> /dev/wd0e / ffs rw 1 1
> /dev/wd0f none swap sw 0 0
> kernfs /kern kernfs rw
> procfs /proc procfs rw,noauto
> 
> Is this the intended behavior?

It wasn't completely unintended.....
However the code that remounts root rw does get slightly confused with
the 'noauto' entry for "/" - I suspect it ought to be taught to look at
the flags and ignore lines with noauto.

Possibly sysinst shouldn't write that line with '/' in it though.

> I ended up removing the first two lines.

You might want to mount wd0a....

> I guess I should be sharing a swap disklabel-partition between
> the two installations, but that didn't occur to me until later.

sysinst does try to spot that one, and will not default to creating
a swap partition if there is one already there (inc. linux mbr swap ptn).

In any case the two installs share the same disklabel, so they will both
find the same swap partition(s).  Also the system will dump to wd0b based
(IIRC) on a kernel build parameter, not the disklabel!

> Thanks for the help, and for the great software.

Getting two netbsd installs bootable off the same disk was fun...


	David

-- 
David Laight: david@l8s.co.uk