Subject: Accessing an entire DOS FAT32 SCSI Drive
To: None <port-i386@NetBSD.ORG>
From: Jose Alburquerque <csjaa@css3s0.engr.ccny.cuny.edu>
List: port-i386
Date: 08/25/1997 17:03:12
Hi. Ive just installed NetBSD 1.2 on my second SCSI2 IBM DORS 32160W drive.
My problem is that I have a DOS (FAT32) partion that spans my first SCSI2
IBM DORS 32160W HD which I'm trying to access from NetBSD 1.2. I tried to
follow the intructions in the FAQ which suggests that I should:
1) Create a NetBSD partition which spans the entire drive.
(I did this using `fdisk /dev/sd0d' and changing the ID type
of the DOS partition to 165)
2) save a copy of the MBR
(I did this using `dd if=/dev/rsd0d of=my-mbr bs=1b count=1')
3) disklabel the drive
(I did this using `disklabel -w -r sd0 dors', where dors is
the a new disktab entry which describes the geometry of the
DORS drive and the partitions (only a), and replying
[y] to erasing previous contents of disk)
4) restore the MBR
(I did this using `dd if=my-mbr of=/dev/rsd0d bs=1b count=1')
I followed the instructions, except that before the entire process I
backed up my MBR to a file called `orig-mbr'.. Instead of using `my-mbr'
to restore the MBR I used `orig-mbr'. I then proceeded to try to mount
the DOS partition using `mount -t msdos /dev/sd0e ~/c' and I get:
msdos: mount: Device not configured
I tried the generic kernel and the install kernel and I get the same
errors. Any suggestions? Thanks.
P.S. Below I've included my dors disktab entry, an `fdisk /dev/rsd0d'
output, and a `disklabel sd0' output.
---------------dors disktab entry--------------
dors|DORS32160W|IBM DORS-32160W:\
:dt=SCSI:ty=winchester:se#512:nt#255:ns#63:nc#263:\
:pa#4225032:oa#63:ba#4096:fa#512:
----------------fdisk /dev/rsd0d output------------------
******* Working on device /dev/rsd0d *******
parameters extracted from in-core disklabel are:
cylinders=263 heads=255 sectors/track=63 (16065 sectors/cylinder)
parameters to be used for BIOS calculations are:
cylinders=263 heads=255 sectors/track=63 (16065 sectors/cylinder)
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 11 (unknown)
start 63, size 4225032 (2063 MB), flag 80
beg: cylinder 0, head 1, sector 1
end: cylinder 262, head 254, sector 63
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
--------------------disklabel sd0 output----------------
# /dev/rsd0d:
type: SCSI
disk: dors
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 263
total sectors: 4225095
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
1 partitions:
# size offset fstype [fsize bsize cpg]
a: 4225032 63 unused 512 4096 # (Cyl. 0*-262*)
-Jose
A humble NetBSD user
* * * * +<><><><><><><><><><><><><><><><><><><><><><><><><><><><><>+
* * | Jose A. Alburquerque |
* O O * | joselito@becky.smartec.com |
* () * | csjaa@csfaculty.engr.ccny.cuny.edu |
* \----/ * | |
* * | "In God we trust" - From face of US penny |
* * * * +<><><><><><><><><><><><><><><><><><><><><><><><><><><><><>+