home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2855 < prev    next >
Encoding:
Text File  |  1992-07-25  |  3.2 KB  |  78 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!news.belwue.de!news.uni-tuebingen.de!mailserv!zxmsd01
  3. From: zxmsd01@mailserv.zdv.uni-tuebingen.de (Gunther Schadow)
  4. Subject: Re: using mtools to access dos partitions
  5. Message-ID: <zxmsd01.712087031@mailserv>
  6. Sender: news@softserv.zdv.uni-tuebingen.de (News Operator)
  7. Organization: Comp. Center (ZDV) U of Tuebingen, FRG
  8. References: <BrtHvn.Is6@usenet.ucs.indiana.edu> <1373@sousa.ltn.dec.com> <2eLv02wc1bJx01@JUTS.ccc.amdahl.com>
  9. Date: Sat, 25 Jul 1992 17:57:11 GMT
  10. Lines: 66
  11.  
  12. In <2eLv02wc1bJx01@JUTS.ccc.amdahl.com> gab10@griffincd.amdahl.com (Gary A Browning) writes:
  13.  
  14.  
  15. >In article <1373@sousa.ltn.dec.com> you write:
  16. >>mitchemt@silver.ucs.indiana.edu (Terrence Mitchem) writes:
  17. >>: 
  18. >>:     Can anyone tell me how to set up the devices.c file that comes with
  19. >>: mtools in order to access dos partitions on  hard drive? Which
  20. >devices in /dev
  21. >>: correspond to the partitions on the disk?  Does it make any
  22. >difference if Im
  23. >>: using a scsi controller (adaptec 1542b)?  All help is appreciated.
  24.  
  25. [stuff deleted]
  26.  
  27. >Can't you just create a new device to access the DOS partitions without
  28. >recompiling the kernel?  The /etc/disktab file probably does not match 
  29. >your actual disk label but this can be gotten using the 'disklabel'
  30. >program.
  31.  
  32. Yes you can. I yesterday succdeded with the configuration of mtools to
  33. read the MSDOS partition on my IDE disk.
  34.   You can edit the disklabel with the -e option. Add a new partition
  35. entry at the end of the editor wich covers the MS-DOS partition and
  36. don't forget to increase the number of partitions right before the
  37. list of partitions.  
  38.  
  39. > It looks like the locations of the partitions are specified in 
  40. >sectors from the *beginning of the hard disk*, not the beginning of the
  41. >386BSD partition.  
  42.  
  43. This definitely is true
  44.  
  45. >You should be able to update the /etc/disktab 
  46. >from the output of 'disklabel', add the new entry describing the DOS 
  47. >partition location (multiply it out from the cylinder info supplied from 
  48. >MS-DOG's 'fdisk' program), rebuild the disk label using 'disklabel', and
  49. >create another device, say /dev/as0g, using 'mknod' (the meaning of the 
  50. >minor device number is at the beginning of the file 'as.c').
  51.  
  52. I did this for an IDE drive but this method is likely to work with
  53. SCSI as well.
  54.  
  55. >This is what I was going to try.  Am I missing something?
  56.  
  57. Don't forget to set the correct offset in the mtools/devices.c file.
  58. In my case I have the DOS partition at the beginning of the disk, Cyl.
  59. 0 - 80. However the first 8704 bytes contain the fdisk partition table
  60. and the system boot code. These must be skipped by mtools. Thus the
  61. line in devices.c looks like:
  62.   {'C', "/dev/wd0d", 8704L, .. followed by the other parameters all
  63. set to 0. }, so you don't need to supply the disk geometry to mtools.
  64. There is an example for this line in ther devices.c file already.
  65. Watch out for any such line containing an offset other than 0L.
  66.  
  67. good luck
  68. -Gunther
  69.  
  70.  
  71.  
  72.  
  73. --
  74. -------------------------------------------------------------------------------
  75. Gunther Schadow,              e-mail: Gunther@mailserv.ZDV.Uni-Tuebingen.DE
  76. Sudetenstrasse 25,              Phone:  (49) 7071/37527
  77. 7400 Tuebingen, Germany.__________Stop__________Horn Please!__________O.K. TATA
  78.