home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2690 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.7 KB

  1. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!sousa.ltn.dec.com!paradis
  2. From: paradis@sousa.ltn.dec.com (Jim Paradis)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: using mtools to access dos partitions
  5. Message-ID: <1373@sousa.ltn.dec.com>
  6. Date: 23 Jul 92 17:03:14 GMT
  7. References: <BrtHvn.Is6@usenet.ucs.indiana.edu>
  8. Organization: Digital Equipment Corporation, Littleton, MA
  9. Lines: 36
  10.  
  11. mitchemt@silver.ucs.indiana.edu (Terrence Mitchem) writes:
  12. :     Can anyone tell me how to set up the devices.c file that comes with
  13. : mtools in order to access dos partitions on  hard drive? Which devices in /dev
  14. : correspond to the partitions on the disk?  Does it make any difference if I am
  15. : using a scsi controller (adaptec 1542b)?  All help is appreciated.
  16.  
  17. With the new "wd" driver that uses the "a5" partition for the BSD partition...
  18. none of the devices in "/dev" correspond to the DOS partition.
  19.  
  20. HOWEVER:  the escape hatch is via /dev/wd0d.  The "d" partition covers the
  21. *WHOLE* hard disk, whereas the "c" partition covers only the *whole*
  22. 386bsd area.
  23.  
  24. To build a devices.c file that lets you access the DOS partition, you
  25. need to know the byte offset of the DOS partition from the start of
  26. the hard disk.  You would then add an entry to the devices[] array
  27. as follows:
  28.  
  29.     {'C', "/dev/wd0d", <byteoffset>L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  30.  
  31. So, f'rinstance, if your DOS partition starts at the beginning of the disk,
  32. you'd have:
  33.  
  34.     {'C', "/dev/wd0d", 0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  35.  
  36. On the other hand, if your DOS partition starts 32Mb into the disk, you'd
  37. say something like:
  38.  
  39.     {'C', "/dev/wd0d", (32768L * 1024L), 16, 0, (int (*) ()) 0, 0, 0, 0},
  40.  
  41. Make sense?
  42.  
  43. -- 
  44. Jim Paradis (paradis@tallis.enet.dec.com) 
  45. Working for DEC, speaking for myself.
  46.