Subject: Re: mounting filesystems from within the MBR extended partition
To: Malcolm Herbert <mjch@mjch.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 06/26/2002 22:11:22
On Mon, Jun 24, 2002 at 01:15:28PM +0000, Malcolm Herbert wrote:
> I'm trying to mount a msdos filesystem that's inside the MBR extended
> partition on this drive.
> 
> disklabel naturally doesn't see the partition, so I hunted around for a
> more appropriate command and found mbrlabel which appears to be exactly
> what I want, however I don't seem to be able to get it to work for me.
> 
> The disk I'm looking at is wd2, and the only hassle I have is that I
> can't write a disklabel to this drive as it's to go into a Windows
> machine (which would not understand it, to say the least)
> 
> I'm using (from memory)
> 
> mbrlabel -w /dev/rwd2
> 
> which prints out a disklabel which looks OK (ie, slice a now contains
> the filesystem I want) and mbrlabel says it has modified the in-core
> label, which is great, however when I try 
> 
> mount /dev/wd2a /mnt
> 
> mount tells me that /dev/wd2a isn't available ... there is also a note

What does disklabel say ?
It's possible that you have to keep the disk open so that the label
isn't lost. Try something like:
sleep 120 < /dev/rwd2d &
before running mbrlabel

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