Subject: mounting filesystems from within the MBR extended partition
To: None <netbsd-help@netbsd.org>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-help
Date: 06/24/2002 13:15:28
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
from the kernel to say that wd2 has no disk label which I already know,
so mount or the kernel must be trying to recreate the in-core disk
label (trashing the modifications that mbrlabel made)
... so if mbrlabel is modifying the in-core disklabel for this drive,
as it says it is, then why isn't it working? How do I get mount to use
the in-core label rather than looking on disk again?
am I missing something obvious?
--
Malcolm Herbert This brain intentionally
mjch@mjch.net left blank