home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / SRC / msdos_diskaccess.lzh / MS_DISK_ACCESS / Readme < prev    next >
Text File  |  1991-07-20  |  4KB  |  88 lines

  1.                 MTOOLS
  2.             version 1.6.2 - 5 Jul 89
  3.  
  4. This is a collection of MSDOS tools to allow you to read and write to
  5. MSDOS formatted diskettes from a Unix based system.
  6.  
  7. The following MSDOS commands are emulated:
  8.  
  9. Mtool         MSDOS
  10. name        equivalent    Description
  11. -----        ----        -----------
  12. mcopy        COPY        copy MSDOS files to/from Unix
  13. mdel        DEL/ERASE    delete a MSDOS file
  14. mdir        DIR        display a MSDOS directory
  15. mkdfs        FORMAT        Format and build s DOS file system.
  16. mmd        MD/MKDIR    make a MSDOS sub directory
  17. mrd        RD/RMDIR    remove a MSDOS sub directory
  18. mread        COPY        low level read (copy) a MSDOS file to Unix
  19. mren        REN/RENAME    rename an existing MSDOS file
  20. mtype        TYPE        display contents of a MSDOS file
  21. mwrite        COPY        low level write (copy) a Unix file to MSDOS
  22. *        CD        change working directory
  23.  
  24.     * by use of the environmental variable MCWD
  25.  
  26. The formats of IBM PC floppy disk drives are:
  27.  
  28.    bytes per  sectors per  tracks    number    total     disk   introduced
  29.     sector      track     per side  of sides  capacity   size    in MSDOS
  30.      512         8          40        1        160k      5.25      1.0
  31.      512         9          40        1        180k      5.25      1.1
  32.      512         8          40        2        320k      5.25      2.0
  33.      512         9          40        2        360k      5.25      2.0
  34.      512        15          80        2        1.2M      5.25      3.0
  35.      512         9          80        2        720k      3.5       3.1
  36.      512        18          80        2        1.4M      3.5       3.2
  37.  
  38.  
  39. Find UNIX device(s) capable of reading one or more of these formats
  40. and edit "devices.c" to add them to the driver switch,  you may
  41. add the same device more than once if it supports multiple formats
  42. and needs "ioctls" to be set to the right physical parameters.
  43.  
  44. The disk geometry can be kept in the environment for unusual cases,
  45. init.c will pass "NCYL", "NSECT" and "NTRACK" to the disk parameter
  46. setting routine (if any).  This should be documented in an "mtools"
  47. manual page giving an overview of the whole package,  this file is a 
  48. start.
  49.  
  50. The manuals are very terse...  it's assumed that the reader is already
  51. familiar with MSDOS.
  52.  
  53. The use of the environmental variable MCWD to keep track of the current
  54. working directory is a little awkward, especially since there is no
  55. 'change directory' command.  Bourne shell users will have to type two
  56. commands to initially set their working directory, ie:
  57.  
  58.     MCWD=/TMP
  59.     export MCWD
  60.  
  61. Wildcards are only applied to filenames and not to directory names.  For
  62. example '/usr/local/*.c' is appropriate, but '/usr/l*/main.c' is not.
  63.  
  64. I really wanted to avoid the use of a 'text' mode and a 'data' mode when
  65. transferring files, but I couldn't find a better way.  It gets rather
  66. confusing and it's quite possible to mess up a file if you apply the
  67. text mode when it is not appropriate (ie:  to a COM or EXE file).
  68. Likewise, if you forget to apply the text mode (to a Unix text file)
  69. then if the file is used under MSDOS, it will be missing carriage
  70. returns.  However, if you aren't going to use the files on your Unix
  71. system (you just intend to hold the files and then transfer them back to
  72. MSDOS later) then you shouldn't use the text mode during either mread or
  73. mwrite.  This is because, the text mode is only useful if the files are
  74. gonna be used under Unix.
  75.  
  76. The implementation of the Mcopy command is somewhat clumbsy since the
  77. MSDOS drive designation "A:" is used.  Mcopy is really a front-end to
  78. the low level Mread and Mwrite commands.
  79.  
  80. There are is a shell archives called "Unixpc.shar" that contain files
  81. specific to the AT&T Unix PC 7300/3b1.
  82.  
  83. Emmet P. Gray                US Army, HQ III Corps & Fort Hood
  84. ...!uunet!uiucuxc!fthood!egray        Attn: AFZF-DE-ENV
  85.                     Directorate of Engineering & Housing
  86.                     Environmental Management Office
  87.                     Fort Hood, TX 76544-5057
  88.