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

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!JUTS!griffin!gab10
  2. From: gab10@griffincd.amdahl.com (Gary A Browning)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: using mtools to access dos partitions
  5. Message-ID: <2eLv02wc1bJx01@JUTS.ccc.amdahl.com>
  6. Date: 24 Jul 92 08:07:38 GMT
  7. References: <BrtHvn.Is6@usenet.ucs.indiana.edu> <1373@sousa.ltn.dec.com>
  8. Sender: netnews@ccc.amdahl.com
  9. Organization: Amdahl Corporation, Sunnyvale CA
  10. Lines: 43
  11.  
  12.  
  13. In article <1373@sousa.ltn.dec.com> you write:
  14. >mitchemt@silver.ucs.indiana.edu (Terrence Mitchem) writes:
  15. >: 
  16. >:     Can anyone tell me how to set up the devices.c file that comes with
  17. >: mtools in order to access dos partitions on  hard drive? Which
  18. devices in /dev
  19. >: correspond to the partitions on the disk?  Does it make any
  20. difference if Im
  21. >: using a scsi controller (adaptec 1542b)?  All help is appreciated.
  22. >
  23. >With the new "wd" driver that uses the "a5" partition for the BSD
  24. artition...
  25. >none of the devices in "/dev" correspond to the DOS partition.[ 
  26. >HOWEVER:  the escape hatch is via /dev/wd0d.  The "d" partitio covers
  27. the
  28. >*WHOLE* hard disk, whereas the "c" partition covers only the *whole*
  29. >386bsd area.
  30. >
  31. >To build a devices.c file that lets you access the DOS partition, you
  32. >need to know the byte offset of the DOS partition from the start of
  33. >the hard disk.  You would then add an entry to the devices[] array
  34. >as follows:
  35. [ furthur explanation deleted ]
  36.  
  37. Can't you just create a new device to access the DOS partitions without
  38. recompiling the kernel?  The /etc/disktab file probably does not match 
  39. your actual disk label but this can be gotten using the 'disklabel'
  40. program.  It looks like the locations of the partitions are specified in
  41. sectors from the *beginning of the hard disk*, not the beginning of the
  42. 386BSD partition.  You should be able to update the /etc/disktab
  43. from the output of 'disklabel', add the new entry describing the DOS
  44. partition location (multiply it out from the cylinder info supplied from
  45. MS-DOG's 'fdisk' program), rebuild the disk label using 'disklabel', and
  46. create another device, say /dev/as0g, using 'mknod' (the meaning of the 
  47. minor device number is at the beginning of the file 'as.c').
  48.  
  49. This is what I was going to try.  Am I missing something?
  50.  
  51. -- 
  52. Gary Browning        | Exhilaration is that feeling you get just after a
  53.              | great idea hits you, and just before you realize
  54.                      | what is wrong with it.
  55.