[797] in netbsd-help mailing list archive
I swear this is the last time I will ask about this...
daemon@ATHENA.MIT.EDU (Vuong P Nguyen)
Tue Feb 13 14:56:10 1996
From: Vuong P Nguyen <vpnguyen@MIT.EDU>
To: netbsd-help@MIT.EDU
Date: Tue, 13 Feb 1996 14:51:01 EST
I've spent hours playing around with the suggestions given to me about
mounting my DOS hard drive, but I can't get it to work. So I hope someone will
look through the steps below any maybe tell me what I might be doing wrong:
First, I took the suggestion of Eric Ding and added a small NetBSD partition
on my C: drive and tried to write my own entry in the disktab file. Here
is the output from fdisk:
******* Working on device /dev/rwd0d *******
parameters extracted from in-core disklabel are:
cylinders=2100 heads=64 sectors/track=63 (4032 sectors/cylinder)
Figures below won't work with BIOS for partitions not in cylinder 1
parameters to be used for BIOS calculations are:
cylinders=2100 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 6 (Primary 'big' DOS (> 32MB))
start 63, size 2108673 (1029 MB), flag 80
beg: cylinder 0, head 1, sector 1
end: cylinder 522, head 63, sector 63
The data for partition 1 is:
sysid 165 (NetBSD or 386BSD)
start 2108736, size 4032 (1 MB), flag 0
beg: cylinder 523, head 0, sector 1
end: cylinder 523, head 63, sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
Note the values for the cylinders and heads. It should only be 525 cylinders or
16 heads. I don't know why its giving me the wrong numbers, and that may be one
reason why it hasn't worked. If anyone knows why it does this, let me know.
Anyways, from these numbers I wrote this disktab entry:
dosdrive|Western Digital C31000: \
:dt=ST506:ty=winchester:nc#2100:ns#63:nt#64:se#512:\
:pa#4032:oa#2108736:ba#8192:fa#1024:ta=4.2BSD:\
:pb#0:ob#0:\
:pc#4032:oc#2108736:\
:pd#2112705:od#0\
:pe#2108673:oe#63:ta=MSDOS:
I still used the values for cyls and heads that were given to me by fdisk.
The values of bs(8192) and fa(1024) were given to me by diskpart(they were also
the values in the disklabel of wd1).
Next, I installed the label:
disklabel -w -r /dev/rwd0d dosdrive.
For me, this does overwrite the MBR.
But when I run fdisk again, it gives me an error message:
bad partition table. Unknown error 0.
floating exception
Well, I hope I gave you guys enough info to figure out whats going wrong. Thanks
for your help.