home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / nieuûytki / mountdos10 / mountdos.doc < prev    next >
Text File  |  1996-01-31  |  8KB  |  191 lines

  1.  
  2. $VER: MountDos 1.0 (28.1.96) PD, (c) K.P. van Beem.
  3.  
  4. MS-Dos partition-table lister and Cross-Dos mounter for PC-HD's. Based on
  5. information gained from the source of the Linux FDisk, by A. V. Le Blanc
  6. (LeBlanc@mcc.ac.uk). This program is free software. You can redistribute it
  7. and/or modify it under the terms of the GNU General Public License as
  8. published by the Free Software Foundation.
  9.  
  10.  
  11. Who can use this program?
  12. -------------------------
  13.  
  14. This program is for every one who connects PC-HD's (or -alike devices) on
  15. his Amiga. Occasionally or permanent.
  16.  
  17.  
  18. Why did I wrote this program?
  19. -----------------------------
  20.  
  21. I wanted to connect a SCSI-HD simultaniously to my PC and my Amiga, to be
  22. able to share the same drive-space and sharing files between the two
  23. machines. The hardware was no problem (just connect all 24 wires 1:1 (not
  24. the TermPower!) and ready you are). Then I had to mount the PC HD on my
  25. amiga, using cross-dos as file-system. But the HD was partitioned in 3
  26. partitions and one free space (intended to create an Amiga partition on
  27. it). What should my mountlist look like? How did the PC partition the
  28. drive? Which partition is the dos partition?
  29.  
  30. I couldn't find the information I needed. 'Til I found sources of the
  31. MS-Dos program FDisk (actually, the Linux version on my Linux system). I
  32. used the information to write an Amiga programma which reads and interprets
  33. the MS-Dos partition-table on the HD. Mounting PC-HD's was never that easy!
  34.  
  35.  
  36. How does it work?
  37. -----------------
  38.  
  39. In one word: Simple!
  40.  
  41. All you need to know is the device (default: scsi.device) and the unit
  42. (default 0) of the DOS HD. Then you type:
  43.   MountDos <device> <unit> MOUNT
  44. (where device and unit are optional, defaults are scsi.device, unit 0) and
  45. all PC-Filesystems on that HD will be mounted and ready for use! The
  46. program does need the Mount command to be available (in the path) and the
  47. T: assignment set-up correctly (both will be the case on a normal installed
  48. Amiga).
  49. You can also pass the options through workbench. The included icon is a
  50. Project icon. The program and the icon don't have to be in the same
  51. directory, as long as the program is in the current path. You can have
  52. multiple different instances of the icon (for instance in the WBStartup
  53. drawer) but you need only one instance of the program.
  54.  
  55. The options (tooltypes) are:
  56.   DEVICE    Device to use
  57.   UNIT      Unit to use
  58.   LIST      List MS-Dos partition table
  59.   MOUNT     Mount all dos-partitions found on the device/unit
  60.   GENERATE  Generate a mountlist with all partitions found
  61.   QUIET     Don't produce any output, except 'usage', when no actions
  62.             are specified.
  63.  
  64. The names used for generating and mounting are composed in the form:
  65.  MD<unit-number><partition-number>:     for dos partitions and
  66.  ND<unit-number><partition-number>:     for non-dos partitions.
  67. This prevent duplicate names. The dos and non-dos partitions are
  68. independently numbered. But if you generate a mountlist, you can edit it as
  69. you like. Non-dos partitions are NOT automaticly mounted with the MOUNT
  70. option. In the generated mountlist, for non-dos partition entries, the
  71. FileSystem will be replaced by the type of the partition and the DosType
  72. will be '?'.
  73.  
  74. The value of BlocksPerTrack is chosen as high as possible (max $0800), to
  75. prevent high values for High and Low cylinder. Some file-systems seem to
  76. have trouble with high values.
  77.  
  78. I'm not responsable for any damage that may occur while using this program.
  79. The safest way is to make a LIST, GENERATE mountlist, inspect the results
  80. and then use MOUNT if all seems fine.
  81.  
  82.  
  83. What is supported and what not?
  84. -------------------------------
  85.  
  86. All partitions (including all extended partitions) are examined. The
  87. following file-systems are recognized (but only 1, 4 and 6 are auto-mounted
  88. with the MOUNT option. For the others, no (AFAIK) filesystem exists for the
  89. Amiga):
  90.  
  91.     ID    Name
  92.     ----  -------------------------
  93.     0     Empty,
  94.     1     DOS 12-bit FAT,
  95.     2     XENIX root,
  96.     3     XENIX usr,
  97.     4     DOS 16-bit <32M,
  98.     5     Extended,
  99.     6     DOS 16-bit >=32M,
  100.     7     OS/2 HPFS         -> or QNX?
  101.     8     AIX,
  102.     9     AIX bootable,
  103.     10    OPUS,
  104.     $40   Venix 80286,
  105.     $51   Novell?,
  106.     $52   Microport         -> or CPM?
  107.     $63   GNU HURD          -> or System V/386?
  108.     $64   Novell,
  109.     $75   PC/IX,
  110.     $80   Old MINIX         -> Minix 1.4a and earlier
  111.     $81   Linux/MINIX       -> Minix 1.4b and later
  112.     $82   Linux swap,
  113.     $83   Linux native,
  114.     $93   Amoeba,
  115.     $94   Amoeba BBT        -> (bad block table)
  116.     $B7   BSDI fs,
  117.     $B8   BSDI swap,
  118.     $C7   Syrinx,
  119.     $DB   CP/M              -> or Concurrent DOS?
  120.     $E1   DOS access,
  121.     $E3   DOS R/O,
  122.     $F2   DOS secondary,
  123.     $FF   BBT               -> (bad track table)
  124.  
  125. The program has so far only been tested on my A500 with KS and WB 3.1, a
  126. 030/25 processor and a Multi-evolution HD controller with a 230MB Maxtor
  127. HD, connected to a 486/DX2-66 PC with a Future Domain TMC-950
  128. SCSI-controller with a 840MB Quantum and also connected to an external
  129. Apple PowerCD CD-Rom (SCSI).
  130. And on an A4000/030 with KS and WB 3.0 and an Amiga and a MS-Dos IDE in it.
  131. But it should work on al KS and WB 2.0+ machines and all kind of HD
  132. controllers, including IDE (!). Plug and Play!
  133.  
  134.  
  135. The results of the command 'MountDos evolution.device 2 LIST' (Unit 2 is
  136. the 840 MB Quantum in the PC) on my system, is:
  137.  
  138.       Start:         End:             Start  Number of
  139.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  140. 1 no     1    0    1   63  199   32       32    409568  199 DOS 16-bit >=32M
  141. 2 no     0  200    1   63  484   32   409600    583680  285 Linux native
  142. 3 no     0  485    1   63  499   32   993280     30720   15 Linux swap
  143. 4 no     0    0    0    0    0    0        0         0    0 Empty
  144.  
  145. There's an empty block of about 340M at the end of the disk. I've created
  146. an Amiga partition there. This one does NOT show-up in the MS-Dos partition
  147. list! But with the LIST option, at least you know exactly where it can
  148. begin safely! It's possible to create an MS-Dos partition here, generate a
  149. mount-list entry, delete the partition and edit and use the mountlist with
  150. other file-systems.
  151.  
  152.  
  153. The results on the A4000 are:
  154.  
  155.       Start:         End:             Start  Number of
  156.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  157. 1 no     1    0    1    3  548   28       28     61460   30 DOS 16-bit <32M
  158. 2 no     0  549    1    3  743   28    61488     21840   10 Extended
  159. 3 no     0    0    0    0    0    0        0         0    0 Empty
  160. 4 no     0    0    0    0    0    0        0         0    0 Empty
  161.  
  162. Extended partition at sector 61488:
  163.       Start:         End:             Start  Number of
  164.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  165. 1 no     1  549    1    3  743   28    61516     21812   10 DOS 12-bit FAT
  166. 2 no     0    0    0    0    0    0        0         0    0 Empty
  167. 3 no     0    0    0    0    0    0        0         0    0 Empty
  168. 4 no     0    0    0    0    0    0        0         0    0 Empty
  169.  
  170.  
  171. Author
  172. ------
  173.  
  174. That's me. My name is K.P. van Beem. Mostly called Patrick. You can reach
  175. me at patrick@aobh.xs4all.nl or 2:280/464.2 (Fido-net) or Boxnet (Origin).
  176. Or by snail-mail:
  177.   K.P. van Beem
  178.   Parlevinker 5
  179.   2152 LC  Nieuw-Vennep
  180.   The Netherlands
  181.  
  182. This program is Public Domain (also is the source, in E). But if you realy
  183. like it, you're free to donate some thing to me (Giro 6047762). If you have
  184. any questions, suggestions or bug-reports, feel free to contact me.
  185.  
  186. Thanks to Wilfred van Velsen for intensive testing of this program on his
  187. A4000.
  188.  
  189. Have fun with your Amiga! (It's alive! (Again!))
  190.  
  191.