Subject: mounting filesystems from within the MBR extended partition
To: None <netbsd-users@netbsd.org>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 06/26/2002 11:17:05
I asked this question of netbsd-help but haven't seen any reply. It
should be something simple, however I don't appear to be able to get
help on it ...
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
|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
|
--
Malcolm Herbert This brain intentionally
mjch@mjch.net left blank