[821] in netbsd-help mailing list archive
mounting a dos drive
daemon@ATHENA.MIT.EDU (Andrew J Kim)
Tue Feb 27 09:17:01 1996
From: Andrew J Kim <ajkim@MIT.EDU>
To: netbsd-help@MIT.EDU
Date: Tue, 27 Feb 1996 09:13:02 EST
Earlier i asked, how do i mount a dos drive on my pc running netbsd?
It is the slave IDE drive with 2 logical partitions in the extended
dos partition with the other partition belonging to netbsd. I also
want to mount the logical partitions on the master IDE drive.
The response I received was...
> You need to teach NetBSD about the location of your DOS partition,
> since NetBSD doesn't use MBR partitions for much. Fortunately, we
> have a script to do this for you. To use it, run (as root):
>
> attach -n netbsd
> /mit/netbsd/bin/dospart
> mount /dosc
>
> The DOS partition should be mounted automatically when you reboot.
Doing this i got:
{samoyed:2} ~>/mit/netbsd/bin/dospart
Scanning disk wd1 for DOS partitions
No DOS partitions to add.
{samoyed:3} ~>mount /dosc
mount: /dosc: unknown special file or file system.
In case it helps, here is what "fdisk /dev/rwd1d" gives me:
******* Working on device /dev/rwd1d *******
parameters extracted from in-core disklabel are:
cylinders=527 heads=64 sectors/track=63 (4032 sectors/cylinder)
parameters to be used for BIOS calculations are:
cylinders=527 heads=64 sectors/track=63 (4032 sectors/cylinder)
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 5 (Extended DOS)
start 4032, size 1536192 (750 MB), flag 0
beg: cylinder 1, head 0, sector 1
end: cylinder 381, head 63, sector 63
The data for partition 1 is:
sysid 165 (NetBSD or 386BSD)
start 1540224, size 584640 (285 MB), flag 0
beg: cylinder 382, head 0, sector 1
end: cylinder 526, head 63, sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
sysid 0 (unused)
start 0, size 0 (0 MB), flag 80
beg: cylinder 0, head 0, sector 0
end: cylinder 0, head 0, sector 0
and the drive rpm is 5400 and uses 512 bytes per sector.
Thanks...
--
Andrew J. Kim
ajkim@mit.edu