[790] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

mounting a DOS hard drive

daemon@ATHENA.MIT.EDU (Eric Ding)
Sun Feb 11 00:06:24 1996

To: vpnguyen@MIT.EDU
Cc: netbsd-help@MIT.EDU
Date: Sun, 11 Feb 1996 00:02:04 EST
From: Eric Ding <ericding@MIT.EDU>

Here you go... I did this some time ago.  Learn by example.  :)  Hope this
helps.

I used fips to shrink down the DOS partition by one cylinder, so that fdisk
had the following listing:

> The data for partition 0 is:
> sysid 6,(Primary 'big' DOS (> 32MB))
>     start 34, size 328406 (160 Meg), flag 0
> 	beg: cyl 0/ sector 1/ head 1;
> 	end: cyl 965/ sector 34/ head 9
> The data for partition 1 is:
> sysid 165,(NetBSD)
>     start 328440, size 340 (0 Meg), flag 0
> 	beg: cyl 966/ sector 1/ head 0;
> 	end: cyl 966/ sector 34/ head 9
 
So I managed to write a disktab entry

> dosdrive|Quantum PD170A:\
>         :dt=ST506:ty=winchester:nc#968:ns#34:nt#10:se#512:\
>         :pa#340:oa#328440:ba#4096:fa#512:ta=4.2BSD: \
>         :pb#0:ob#0: \
>         :pc#340:oc#328440: \
>         :pd#328746:od#0: \
>         :pe#328406:oe#34:ta=MS-DOS:

and installed it with "disklabel -w -r wd0 dosdrive", and to my surprise,
it didn't overwrite the MBR or OS-BS on wd0!  Cool. 

I had to, though, for some reason, edit the disklabel to change the fstype
of e from unused to MS-DOS.  Oh well, so it worked.  Just thought I'd let
you know.  Thanks for your tips!

Eric

home help back first fref pref prev next nref lref last post