home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / diskutil / mtools / configur.e < prev    next >
Text File  |  1993-08-05  |  5KB  |  131 lines

  1. How to configure Mtools to your system...
  2.  
  3. 1) Things you'll need to know.
  4.  
  5.     The full path to the devices you want to use.
  6.  
  7.     The number of tracks, heads, and sectors supported by each device.
  8.  
  9.         5.25" 160k = 40 tracks, 1 head, and 8 sectors
  10.         5.25" 180k = 40 tracks, 1 head, and 9 sectors
  11.         5.25" 320k = 40 tracks, 2 heads, and 8 sectors
  12.         5.25" 360k = 40 tracks, 2 heads, and 9 sectors
  13.         5.25" 1.2m = 80 tracks, 2 heads, and 15 sectors
  14.         3.5"  720k = 80 tracks, 2 heads, and 9 sectors
  15.         3.5" 1.44m = 80 tracks, 2 heads, and 18 sectors
  16.  
  17.     If you choose to use a hard disk partition as one of your devices,
  18.     then you may have to change the read/write permissions on that
  19.     partition.
  20.  
  21. 2) The Makefile and msdos.h files
  22.  
  23.     The following pre-processor variables are used in Mtools.  They
  24.     should be set with "-Dvariable" in CFLAGS in the Makefile.
  25.  
  26.         BSD    for systems without System V style strings functions
  27.             and System V style utime().
  28.  
  29.         ISC    default devices for ISC's Unix V.
  30.  
  31.         UNIXPC    default devices for AT&T Unix PC 7300/3B1
  32.  
  33.         SPARC    default devices for SunOS 4.1 on a SPARCstation
  34.  
  35.     There is a variable in msdos.h called SIG_TYPE which should be
  36.     configured to the "base" return type of signal();
  37.  
  38. 3) The devices "database" in devices.c
  39.  
  40.     WARNING:  The devices.c file, as distributed, has *NO* devices
  41.     defined.  You *MUST* select from one of the examples or edit the
  42.     devices database yourself.
  43.  
  44.     struct device {
  45.         char drive;            /* the drive letter */
  46.         char *name;            /* full path to device */
  47.         long offset;            /* skip this many bytes */
  48.         int fat_bits;            /* FAT encoding scheme */
  49.         int mode;            /* any special open() flags */
  50.         int (*gioctl) ();        /* gioctl() if needed */
  51.         int tracks;            /* tracks */
  52.         int heads;            /* heads */
  53.         int sectors;            /* sectors */
  54.     };
  55.  
  56.     drive    the drive letter (in uppercase) that you want to associate
  57.         to this device.
  58.  
  59.     name    full path to the device.  Shell expansion is done on the
  60.         name so things like $HOME/vpix/C: will work.
  61.  
  62.     offset    skip over a partition table.  Useful for msdos disk "images"
  63.         such as those VP/ix uses.
  64.  
  65.     fat_bits The encoding scheme for the File Allocation Table.  Currently
  66.         supports only 12 and 16 bit FATs.
  67.  
  68.     mode    any special open() mode flags (not normally used, except
  69.         in the AT&T Unixpc 7300/3b1).
  70.  
  71.     gioctl    any special ioctl() calls required after opening the device
  72.         (not normally used, except in the AT&T Unixpc 7300/3b1).
  73.  
  74.     tracks    the number of tracks supported by this device or zero if
  75.         this type of sanity checking is not required.  Do NOT use
  76.         this field for hard disks or disk "images".  Also used by
  77.         gioctl(), if present, as a default starting place.
  78.  
  79.     heads    the number of heads supported by this device or zero if
  80.         this type of sanity checking is not required.
  81.  
  82.     sectors    the number of sectors supported by this device or zero if
  83.         this type of sanity checking is not required.
  84.  
  85.  
  86.     If a device supports more than one disk capacity (1.2m and
  87.     360k), then you should place the most frequently used capacity
  88.     first.  You may get an error message from the device driver when
  89.     the disk capacity doesn't match the device, but these can be
  90.     safely ignored.
  91.  
  92. 4)  Examples devices
  93.  
  94.     for Interactive 386ix 2.0.2 with:
  95.         1.2m 5.25" as a: (supports 1.2m, 360k, and 320k)
  96.         1.44m 3.5" as b: (supports 1.44m, 720k)
  97.         hard disk partition as c:
  98.         vpix disk image as d:
  99.         user's vpix disk image as e:
  100.  
  101.         {'A', "/dev/rdsk/f0q15dt", 0L, 12, 0, (int (*)()) 0, 80, 2, 15},
  102.         {'A', "/dev/rdsk/f0d9dt", 0L, 12, 0, (int (*)()) 0, 40, 2, 9},
  103.         {'A', "/dev/rdsk/f0d8dt", 0L, 12, 0, (int (*)()) 0, 40, 2, 8},
  104.         {'B', "/dev/rdsk/f13ht", 0L, 12, 0, (int (*)()) 0, 80, 2, 18},
  105.         {'B', "/dev/rdsk/f13dt", 0L, 12, 0, (int (*)()) 0, 80, 2, 9},
  106.         {'C', "/dev/rdsk/0p1", 0L, 16, 0, (int (*)()) 0, 0, 0, 0},
  107.         {'D', "/usr/vpix/defaults/C:", 8704L, 12, 0, (int (*)()) 0, 0, 0, 0},
  108.         {'E', "$HOME/vpix/C:", 8704L, 12, 0, (int (*)()) 0, 0, 0, 0},
  109.         {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}
  110.  
  111.  
  112.     for AT&T Unixpc 7300/3b1 with:
  113.         360k 5.25" as a: (supports 360k, and 320k, 180k, 160k)
  114.         DOS73 disk image as c:
  115.  
  116.         {'A', "/dev/rfp020", 0L, 12, O_NDELAY, init_unixpc, 40, 2, 9},
  117.         {'C', "/usr/bin/DOS/dvd000", 0L, 12, 0, (int (*)()) 0, 0, 0, 0}
  118.         {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}
  119.  
  120.  
  121.     for Sun SparcStation with:
  122.         1.44m 3.5" as a: (supports 1.44m and 720k)
  123.  
  124.         {'A', "/dev/rfd0c", 0L, 12, 0, (int (*)()) 0, 80, 2, 18},
  125.         {'A', "/dev/rfd0c", 0L, 12, 0, (int (*)()) 0, 80, 2, 9},
  126.         {'\0', (char *) NULL, 0L, 0, 0, (int (*)()) 0, 0, 0, 0}
  127.  
  128.         Note that the two devices are actually the same physical
  129.         device, and that only the number of sectors are
  130.         different.
  131.