Subject: Re: mbrlabel, disklabel, and MSDOS drives with extended partitions
To: Laine Stump <lainestump@rcn.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 07/24/2001 20:26:42
On Tue, Jul 24, 2001 at 12:27:58AM -0400, Laine Stump wrote:
> Manuel Bouyer <bouyer@antioche.lip6.fr> writes:
> 
> > On Mon, Jul 23, 2001 at 12:34:00AM -0400, lainestump@rcn.com wrote:
> > > So: 1) Why doesn't the fake disklabel that's generated have all the
> > > stuff that mbrlabel sees?
> > 
> > Because it would bloat the kernel too much ?
> 
> Would a read of another sector, and a bit of arithmetic really bloat a
> 4MB kernel that much?

Well, not all kernels are 4MB large :)

> 
> > > and 2) Since it doesn't, how do I get all
> > > the partitions mounted without writing a disklabel to the disk (since
> > > that will apparently screw up the boot record for the existing OS,
> > > right?)
> > 
> > mbrlabel should be able to write an in-core disklabel (that is, a disklabel
> > maintained in kernel memory but not written to disk). Once you've run
> > mbrlabel, what does disklabel say ?
> 
> No joy, see below - mbrlabel says that it has updated the in-core
> disklabel with the other partitions, but disklabel still just shows
> the one partition, and mount can't find the others either:

Maybe it's because the label is lost when all devices are closed.
Could you run a 'sleep 3600 < /dev/rwd0d' in background before running
mbrlabel ?

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