Subject: Re: Mounting DOS partition - device not configured?
To: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 01/20/1999 13:31:07
On Wed, 20 Jan 1999, Mason Loring Bliss wrote:
> 8 partitions:
> # size offset fstype [fsize bsize cpg]
> d: 6330240 0 unused 0 0 # (Cyl. 0 - 6279)
> e: 6330177 63 unused 0 0 # (Cyl. 0*- 6279)
> disklabel: boot block size 0
> disklabel: super block size 0
> ac /# mount -t msdos /dev/wd0e /mnt
> mount_msdos: mount: Device not configured
>
>
> I definitely have the MSDOSFS built into my kernel... /dev/wd0e definitely
> exists...
I suppose that means the partition exists? Try running "fdisk" to make
sure. Use "fdisk -u" if you need to change anything.
> On bootup, I'm told that wd0 has no disk label, however.
That's to be expected. If it were formatted with DOS, it would
still work. Try this
disklabel >/etc/disklabels/SAMSUNG
disklabel -R -r wd0 /etc/disklabels/SAMSUNG #writes an initial label
That will take care of the "no disklabel" message.
None of the following should be necessary for a disk that's been
fdisk'd and formatted from within DOS, but it can't hurt. This is also
the general way to make an MSDOS partition without, well MSDOS.
disklabel -W wd0 # write enable in-core label
disklabel -e wd0 # edit in-core label: change `unused' to `MSDOS'
disklabel -N wd0 # write out label
disklabel # to examine new label
Now, if there really is already a dos partition with something on it,
"mount_msdos /dev/wd0e /mnt" should do it for sure. If not, you would
need to do "newfs_msdos /dev/rwd0e" first.