Subject: Re: Mounting a dos hd
To: None <eos@felix.teclink.net>
From: Mike Long <mike.long@analog.com>
List: port-i386
Date: 02/09/1996 13:24:11
>Date: Thu, 8 Feb 1996 16:31:28 -0600 (CST)
>From: Noby Nobriga <eos@felix.teclink.net>
>I have an 81 Meg hd that I've partitioned 20M for DOS and 61M for
>NetBSD. Can someone tell me how I can mount my dos partition on this
>drive? Here's some information if you may need it to help me better.
That's a bit...small.
>Also, I've searched through FAQs and all, but have failed in having
>anything work.
>
>=========================== /etc/fstab ===============================
>
>/dev/wd0a / ffs rw 1 1
>/dev/wd0e /usr ffs rw 1 2
Add:
/dev/wd0f /dos msdos rw
after making the changes below.
>================== disklabel -e -r /dev/rwd0d ========================
>
>#/dev/rwd0d
>type: ST506
>disk: mywd
>label:
>flags:
>bytes/sector: 512
>sectors/track: 17
>tracks/cylinder: 10
>sectors/cylinder: 170
>cylinders: 977
(snip)
>5 partitions:
change this to 6.
># size offset fstype [fsize bsize cpg]
> a: 32640 43010 4.2BSD 1024 8192 16 # (Cyl. 253 - 444)
> b: 24480 75650 swap # (Cyl. 445 - 588)
> c: 122740 43010 unused # (Cyl. 253 - 974)
> d: 166090 0 unused 0 0 # (Cyl. 0 - 976)
> e: 65620 100130 4.2BSD 1024 8192 16 # (Cyl. 589 - 974)
Add a line after this
f: 42993 17 MSDOS # (Cyl. 0* - 252)
Note that the offset is 17 (your sectors/track value) because DOS
reserves the first track on the disk for the partition table.
>Also, I have a second hd that's entirely dos. How can I mount this as well?
There's a way, but I've never done it. You need to create a tiny
NetBSD parition on the disk, which is barely large enough to contain
the disklabel. Then you put your DOS parition in that disklabel.
--
Mike Long <mike.long@analog.com> http://www.shore.net/~mikel
VLSI Design Engineer finger mikel@shore.net for PGP public key
Analog Devices, CPD Division CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA (eq (opinion 'ADI) (opinion 'mike)) -> nil