home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / 2309 / DDP112 / FDFORMAT.DOC < prev    next >
Text File  |  1993-10-07  |  33KB  |  718 lines

  1.  
  2.                   FDFORMAT - Format Disks with higher Capacity
  3.  
  4.        LICENSE
  5.        -------
  6.  
  7.        This  program   is  a   public-domain  product   for  private  and
  8.        educational use.  You may  freely copy  and  use  it  without  any
  9.        charge.
  10.  
  11.        This program  must not be sold for profit. An adaequate fee may be
  12.        requested for  copying, shipping  and handling when redistributing
  13.        this program.
  14.  
  15.        You may  modify and  improve  this  program,  but  the  executable
  16.        program must show a message that your version has been modified.
  17.  
  18.        If you  find, that  this program  is worth contributing for it, do
  19.        not hesitate to send cash, check, 3½"-diskettes or something else.
  20.  
  21.        THANKS
  22.        ------
  23.  
  24.        Special thanks to the following people:
  25.  
  26.        Jochen  Roderburg,   Cologne,   Germany:   For   suggestions   and
  27.        improvements to support compatibility with several BIOS-Versions.
  28.  
  29.        Michael Ho,  Lincoln,  Nebraska:  For  an  improvement  in  sector
  30.        sliding.
  31.  
  32.        Joel Armengaud,  Paris, France: For supporting automatic detection
  33.        of 720 kByte diskettes in FDREAD.
  34.  
  35.        Jörg-Stefan Sell,  Essen, Germany:  For  supporting  an  interface
  36.        routine to less compatible XT computers.
  37.  
  38.        COMMENTS AND PROBLEMS
  39.        ---------------------
  40.  
  41.        Comments, improvements,  suggestions and  problems may  be sent to
  42.        the Author
  43.  
  44.        Christoph H. Hochstätter
  45.        Carl-Strehl-Strasse 20
  46.        D-3550 Marburg
  47.        West-Germany
  48.  
  49.        Phone: +49 6421 14618 (voice/BTX)
  50.               +49 6429 6209  (BBS)
  51.  
  52.        E-Mail: HAMPE2@DMRHRZ11.BITNET (Bitnet/Internet)
  53.                Christoph Hochstaetter on 2:243/22 (Fido)
  54.  
  55.  
  56.        SYSTEM REQUIREMENTS
  57.        -------------------
  58.  
  59.        IBM or compatible Computer
  60.        DOS 3.20 or above
  61.  
  62.  
  63.        FEATURES OF FDFORMAT
  64.        --------------------
  65.  
  66.        FDFORMAT is  a replacement  for the  DOS-Format program, which has
  67.        the following advantages:
  68.  
  69.        1) Supporting 3½"-1.44 MB drives with any BIOS-Versions in ATs and
  70.           Clones. This saves you a lot of money, you would need for a new
  71.           BIOS-Version.
  72.        2) Formatting and using of 720/820 kByte disks in AT 5¼"-1.2 MByte
  73.           Drives using cheap double-density (DD) disks.
  74.        3) Increasing  the   capacity  of  your  disks  up  to  300  kByte
  75.           additional storage.
  76.        4) Supporting 3½"-360  kByte format. This is useful, when you want
  77.           to make copies of 5¼"-disks to 3½"-Disks using DISKCOPY
  78.        5) Enhance  speed of  your diskette  I/O up  to 100%  with  sector
  79.           sliding. This  is a  method of  physical ordering  sectors in a
  80.           way, that  your drive is ready to read the next logical sector,
  81.           when your head advances one track.
  82.        6) Improved BOOT-Sector,  which automatically boots from harddisk,
  83.           if the  diskette in  drive A: is not a system disk. This allows
  84.           you to  leave the  diskette in  drive A:,  when you  reboot the
  85.           system.
  86.  
  87.  
  88.        GETTING STARTED
  89.        ---------------
  90.  
  91.        To make  full  use  of  FDFORMAT,  you  have  to  make  FDREAD.EXE
  92.        resident  on non-XT  computers. There are  two ways to make FDREAD
  93.        resident:
  94.  
  95.        1) Typing FDREAD  from the DOS-Command-Prompt or inserting it into
  96.           your AUTOEXEC.BAT file.
  97.        2) Loading   FDREAD    as    a    Device-Driver    by    inserting
  98.           DEVICE=[path]FDREAD.EXE into your CONFIG.SYS File.
  99.  
  100.        Yes, you  can also load FDREAD as a Device-Driver. When you do so,
  101.        it will take only 160 Bytes of main memory. If you install it from
  102.        the DOS-Command-Line,  it will  take 224  Bytes.  DOS  4.00+ users
  103.        should not  use the INSTALL= statement of CONFIG.SYS, but also the
  104.        DEVICE= statement.
  105.  
  106.  
  107.        Note for users of High-Memory Loaders  like QEMM, QRAM, Mov'em or
  108.        386-MAX:
  109.        Do not load FDREAD high. FDREAD automatically  loads high,  if it
  110.        installed from AUTOEXEC.BAT or the DOS-Command-Line. This feature
  111.        works with any memory manager supporting UMBs.
  112.  
  113.  
  114.        FDREAD is needed for special formats only. Any standard format can
  115.        be used without FDREAD.
  116.  
  117.  
  118.        USING FDFORMAT
  119.        --------------
  120.  
  121.        The general Syntax for FDFORMAT is:
  122.  
  123.             FDFORMAT <drive> [options]
  124.  
  125.        <drive> may  be A:  or B:.  FDFORMAT does  not  format  harddisks.
  126.        Options begin with a letter or number. Options may be preceeded by
  127.        '/' or  '-'. If  you do  not preceed  options with '/' or '-', you
  128.        must seperate  the options  with spaces.  '.' and  ':' are  always
  129.        ignored. So  the following  commands will  all format a 1.44 MByte
  130.        Disk in Drive A:
  131.  
  132.             FDFORMAT A: /F:1.44
  133.             FDFORMAT A: -F144
  134.             FDFORMAT A: F144
  135.  
  136.        You may  precede all  numbers with a $-sign to indicate, that they
  137.        are hexadecimal numbers.
  138.  
  139.        OPTIONS USED IN FDFORMAT
  140.        ------------------------
  141.  
  142.  
  143.        The most important option is the F-Option. The F-Option determines
  144.        the general Format, which is used for the target diskette.
  145.  
  146.        The following table shows, which parameters are allowed for the F-
  147.        Options and for which type of Disk-Drive:
  148.  
  149.        F-Opt Format          360k-Drive 720k-Drive 1.2M-Drive 1.44M-Drive
  150.        ----- --------------- ---------- ---------- ---------- -----------
  151.        F160  160 kByte Disk  yes        FDREAD     yes        FDREAD
  152.        F180  180 kByte Disk  yes        FDREAD     yes        FDREAD
  153.        F200  200 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  154.        F205  205 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  155.        F320  320 kByte Disk  yes        FDREAD     yes        FDREAD
  156.        F360  360 kByte Disk  yes        FDREAD     yes        FDREAD
  157.        F400  400 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  158.        F410  410 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  159.        F720  720 kByte Disk  no         yes        FDREAD     yes
  160.        F800  800 kByte Disk  no         FDREAD     FDREAD     FDREAD
  161.        F820  820 kByte Disk  no         FDREAD     FDREAD     FDREAD
  162.        F120  1.2 MByte Disk  no         no         yes        yes
  163.        F12   1.2 MByte Disk  no         no         yes        yes
  164.        F144  1.44 MByte Disk no         no         FDREAD     yes
  165.        F14   1.44 MByte Disk no         no         FDREAD     yes
  166.        F148  1.48 MByte Disk no         no         FDREAD     yes
  167.        F16   1.6 MByte Disk  no         no         no         FDREAD
  168.        F164  1.64 MByte Disk no         no         no         FDREAD
  169.        F168  1.68 MByte Disk no         no         no         FDREAD
  170.        F172  1.72 MByte Disk no         no         no         FDREAD
  171.  
  172.        FDREAD in  the above table means, that this format will work only,
  173.        if FDREAD is installed.
  174.  
  175.        The other options are:
  176.  
  177.        1   : Format  single   sided  Disk   (provided   for   DOS-FORMAT-
  178.              compatibility).
  179.        4   : Format Standard  360 kByte  Disk (provided  for  DOS-FORMAT-
  180.              compatibility).
  181.        8   : Format   8    sector   Disk    (provided   for   DOS-FORMAT-
  182.              compatibility).
  183.        Bnnn: Use Disk-Type Byte nnn (for use with older BIOS Versions).
  184.        Cnnn: Use nnn Sectors per Cluster (nnn = 1 or 2).
  185.        Dnnn: Use nnn Root-Directory-Entries (nnn = 1-224).
  186.        Gnnn: Use Gap-Length of nnn (for use by experts only).
  187.        Hnnn: Use nnn heads (nnn = 1 or 2).
  188.        Innn: Use an Interleave of nnn (for use by experts only).
  189.        K   : Do not  wait for any keyboard input, when starting FDFORMAT.
  190.              (Useful, when starting FDFORMAT from batch files).
  191.        Mnnn: Use Media Byte nnn (Useful for ATARI formats).
  192.        Mnnn: Use Media-Descriptor-Byte nnn. (Useful when formatting ATARI
  193.              ST disks).
  194.        Nnnn: Use nnn Sectors. (* Cluster *)
  195.        O   : Format 720 kByte Disk for use with AT&T Olivetti M24/M28.
  196.        R   : Do not verify Disk (and save 33% time).
  197.        S   : Make System-Disk.
  198.        Snnn: Use nnn Sectors.
  199.        Tnnn: Use nnn Tracks.
  200.        V   : Write Label to Disk.
  201.        Xnnn: Slide nnn Sectors, when head changes.
  202.        Ynnn: Slide nnn Sectors nnn, when track changes.
  203.  
  204.        Examples:
  205.  
  206.        FDFORMAT A: /4               (format 360 kB disk)
  207.        FDFORMAT A: /F:1.72          (format 1.72 MB disk)
  208.        FDFORMAT A: /T:80 /N:9       (format 720 kB disk)
  209.        FDFORMAT A: /O               (format 720 kB disk for AT&T M24/28)
  210.        FDFORMAT A: /F:720 M$F7 B$54 (format 720 kB disk for ATARI ST)
  211.        FDFORMAT A: /F:12 D64        (format 1.2 MB disk with 64 RDEs)
  212.        FDFORMAT A: /F:410 R         (format 410 kB Disk without verify)
  213.  
  214.  
  215.  
  216.  
  217.        DETAILED DESCRIPTION OF OPTIONS
  218.        -------------------------------
  219.  
  220.  
  221.        The Tnnn option - Use nnn Tracks
  222.        --------------------------------
  223.  
  224.        This option  tells FDFORMAT,  how many  tracks are  to be  used. A
  225.        Standard 360 kB diskette has 40 tracks, all other standard formats
  226.        have 80  tracks. You  can set  this option  to 1-41  for an 360 kB
  227.        drive and  to 1-82  for all other drives. The more tracks you use,
  228.        the more  storage you  will receive.  Some drives  allow even more
  229.        than 41  or 82  tracks, but  you may  have trouble, when trying to
  230.        read this  diskette on another disk drive. The default is 40 for a
  231.        360 kB Drive and 80 for all other drives.
  232.  
  233.        Example: FDFORMAT  A: /T:41  (format a  disk with  41 Tracks. This
  234.        will give you 369 kB storage in a 360 kB drive)
  235.  
  236.  
  237.        The Nnnn option - Use nnn Sectors per Track
  238.        -------------------------------------------
  239.  
  240.        This option  determines the  number of  sectors per track you will
  241.        use. The  standard and  default values  for the  different formats
  242.        are:
  243.  
  244.        disk format    standard value    maximum value possible
  245.        -----------    --------------    ----------------------
  246.        360 kB               9                    10
  247.        720 kB               9                    10
  248.        1.2 MB              15                    18
  249.        1.44 MB             18                    21
  250.  
  251.        You may  use this  option to increase the storage of your diskette
  252.        too.
  253.  
  254.        Example: FDFORMAT  A: /N:10  (format a  disk with 10 sectors. This
  255.        gives you 400 kB storage in a 360 kB drive).
  256.  
  257.  
  258.        The Hnnn option - Use nnn sides (1 or 2)
  259.        ----------------------------------------
  260.  
  261.        You can  set this  option to  1 or  2. The  default is  always  2.
  262.        Normally you do not need this option, since single-sided disks are
  263.        rarely used.
  264.  
  265.  
  266.        Using T,N and H together
  267.        ------------------------
  268.  
  269.        These three  options determine  your diskette storage. The formula
  270.        for the diskette storage is:
  271.  
  272.                           tracks * sectors * sides
  273.           storage in kB = ------------------------
  274.                                       2
  275.  
  276.        Since diskettes use usually 2 sided, you can simplify this formula
  277.        to:
  278.  
  279.           storage in kB = tracks * sectors
  280.  
  281.        Examples: FORMAT A: /T:80 /N:9 /H:2  (format a 720 kB disk)
  282.                  FORMAT A: /T:82 /N:10 /H:2 (format a 820 kB disk)
  283.                  FORMAT A: /T:40 /N:9 /H:2  (format a 360 kB disk)
  284.  
  285.                  FORMAT A: /T:41 /N:10 /H:2 (format a 410 kB disk)
  286.  
  287.        You can  use the  F-Option (described above) as a shortcut for the
  288.        T, H  and N  options (eg.  FORMAT A: /F:1.44 is equal to FORMAT A:
  289.        /T:80 /N:18 /H:2).
  290.  
  291.        Note: Always  use High-Density-Diskettes when you format with more
  292.        than 11  sectors/track and  always use  double-density-disks, when
  293.        you format with 10 sectors and below.
  294.  
  295.        At least here is a table, which values are maximum for T, H and N.
  296.  
  297.        Drive and disk                  max T  max N  max H   Storage
  298.        ------------------------------  -----  -----  -----   -------
  299.        360 kB drive with DD-diskette      41     10      2   410 kB
  300.        720 kB drive with DD-diskette      82     10      2   820 kB
  301.        1.2 MB drive with DD-diskette      82     10      2   820 kB
  302.        1.2 MB drive with HD-diskette      82     18      2   1.48 MB
  303.        1.44 MB drive with DD-diskette     82     10      2   820 kB
  304.        1.44 MB drive with DD-diskette     82     21      2   1.72 MB
  305.  
  306.  
  307.        The Cnnn option - Use nnn sectors per cluster (1 or 2)
  308.        ------------------------------------------------------
  309.  
  310.        A cluster  is the  minimum allocation  unit DOS  can  handle.  DOS
  311.        supports 1  or 2  sectors per  cluster for  floppy disks.  If  you
  312.        specify /C:1  space is  allocated in  512 Bytes  steps. /C:2 means
  313.        that space is allocated in 1024 Byte steps. You can optimize your
  314.        disk organization,  if you  use /C:1, when you plan to store "many
  315.        small" files  and specify /C:2, when you plan to store "few large"
  316.        files on  the disk  to be  formatted. The default is /C:1 for high
  317.        density disks and /C:2 for double density disks
  318.  
  319.        Example: FORMAT A: /F:360 /C:1 (format a 360 kB disk with 1 sector
  320.        per cluster)
  321.  
  322.        Note: A  blank formatted disk with /C:2 always has more bytes free
  323.        than with  /C:1. But  when files are stored to the disk, your disk
  324.        space will be handled more dynamically.
  325.  
  326.  
  327.        The Dnnn option - Use nnn Root-Directory-Entries
  328.        ------------------------------------------------
  329.  
  330.        This option  determines the  number of Root-Directory-Entries. The
  331.        default is  112 for  double density disks and 224 for high density
  332.        disks. This  value can  be reduced to get additional space on disk
  333.        or increased  up to 240 to reserve for space for files in the root
  334.        directory. This option does not affect any of your subdirectories.
  335.        Subdirectories  are   dynamically  allocated.  You  only  have  to
  336.        determine the  size of root directory. Legal values for disks with
  337.        1 sector  per cluster  are 16,  32, 48,....  and for  disks with 2
  338.        sectors per  cluster 16,48,80,....  if you specify a value between
  339.        two legal  values, it  will  be  increased  to  next  legal  value
  340.        automatically.
  341.  
  342.        Example: You  need a disk that will not have more than 40 files in
  343.        the root  directory. So  type: FDFORMAT  A: /D:40.  You will get a
  344.        disk with  48 root  directory entries  and you have more space for
  345.        data.
  346.  
  347.  
  348.        The O option - Format a disk for AT&T/Olivetti M24/M28 Computers
  349.        ----------------------------------------------------------------
  350.  
  351.        This option is actually a shortcut for /T:80 /N:9 /H:2 /D:144. The
  352.        AT&T and Olivetti M24/M28 Computers use 720 kB Disks with 144 root
  353.        directory entries.  The standard  IBM 720  kB format  has 112 root
  354.  
  355.  
  356.        directory entries.  So simply  use  the  /O  option  to  format  a
  357.        diskette in a 5¼"-1.2 MB drive or a 5¼"-720 kB drive.
  358.  
  359.        Example: FDFORMAT A: /O
  360.  
  361.        Note: If  you could  not read  M24/M28 720 kB disks in your 1.2 MB
  362.        drive until  now, try  again with  FDREAD installed.  It will work
  363.        fine.
  364.  
  365.  
  366.        The Mnnn option - Override media descriptor
  367.        -------------------------------------------
  368.  
  369.        FDFORMAT uses  the same  media descriptor byte as DOS-Format would
  370.        do. If  you override this value, this has no effect under DOS 3.3x
  371.        or DOS  4.0x. But  you may  not be able to read the disk under DOS
  372.        3.2x. This  option was  added to  support to  format disks for the
  373.        ATARI ST.  Refer to  the ATARI  Documentation to  set the  correct
  374.        Values for the media descriptor and track, heads, sectors.
  375.  
  376.  
  377.        The R option - Do not verify disk
  378.        ---------------------------------
  379.  
  380.        The R  option  skips  verifying  each  track  after  it  has  been
  381.        formatted.  This   saves  33%-50%  of  time  during  formatting  a
  382.        diskette. The  disadvantage is that errors on the diskette are not
  383.        detected. A  typical example for missing error detection is typing
  384.        FDFORMAT A:  /R in  an 1.2  MB drive  with a  double density  disk
  385.        inserted. FDFORMAT will not report any errors in this case. If you
  386.        are sure  that you have a good diskette and you specified no wrong
  387.        parameters, the /R option is a good choice to save time.
  388.  
  389.  
  390.        The K option - No keyboard input
  391.        --------------------------------
  392.  
  393.        The K option suppresses the message "Insert new disk in drive...."
  394.        and starts formatting immediately, after FDFORMAT is started. This
  395.        is useful,  if you  want to start FDFORMAT from a batch file or an
  396.        external program.  You can also suppress any screen output, if you
  397.        add ">NUL" to the FDFORMAT command (See your DOS Manual for piping
  398.        input and  output). FDFORMAT  returns an  exit code or errorlevel,
  399.        which can be used in batch files. The exit codes are:
  400.  
  401.        Exit Code  Meaning
  402.        ---------  ----------------------------------------------------
  403.        0          normal completion
  404.        1          syntax error or illegal parameters
  405.        2          specified drive cannot be formatted
  406.        4          aborted by user (after I/O error)
  407.        8          I/O error for config file
  408.        16         syntax error or illegal parameters in config file
  409.        32         error writing disk label
  410.        128        incorrect DOS version (< 3.20)
  411.  
  412.  
  413.        The S Option - Format system disk
  414.        ---------------------------------
  415.  
  416.        The S option lets you format a system disk. It copies boot-sector,
  417.        DOS-System-file and COMMAND.COM to your disk. FDFORMAT does not do
  418.        these task by itself, but calls the DOS-Command SYS to do so. Thus
  419.        you must  make sure,  that SYS.COM  or SYS.EXE  is in a directory,
  420.        which is  included in  your PATH Environment Variable. The call to
  421.        SYS is made to ensure compatibility with any DOS Version.
  422.  
  423.        Note: You  cannot create  a system  disk,  which  cannot  be  read
  424.        without FDREAD.
  425.  
  426.        (* Translation:  You can only create a system disk when the disk
  427.           does not require FDREAD in order to be recognized by the machine. *)
  428.  
  429.        Example: FDFORMAT A: /F:360 /S (correct)
  430.                 FDFORMAT A: /F:410 /S (incorrect, because this format
  431.                                        requires FDREAD)
  432.  
  433.        The 1 Option - Single sided disk
  434.        --------------------------------
  435.  
  436.        This  is  the  same  as  the  /H:1  option.  provided  for  syntax
  437.        compatibility with DOS-Format.
  438.  
  439.  
  440.        The 8 Option - 8 sector disk
  441.        ----------------------------
  442.  
  443.        This  is  the  same  as  the  /S:8  option.  provided  for  syntax
  444.        compatibility with DOS-Format.
  445.  
  446.  
  447.        The 4 option - 360 kB disk
  448.        --------------------------
  449.  
  450.        This is  the same  as  the  /F:360  option.  provided  for  syntax
  451.        compatibility with DOS-Format.
  452.  
  453.  
  454.        The P option - Does nothing
  455.        ---------------------------
  456.  
  457.        This option  does really  nothing in  FDFORMAT Version 1.5. It was
  458.        provided for compatibility with earlier versions.
  459.  
  460.  
  461.        The V option - Write volume label
  462.        ---------------------------------
  463.  
  464.        This option  writes a  volume label  to your disk. You may specify
  465.        simply /V.  This will  prompt you for a volume label. You may also
  466.        specify /V:<disklabel>.  This will  write the  name <disklabel> to
  467.        your disk.
  468.  
  469.        Example: FDFORMAT A: /F:820 /V (prompts for volume label)
  470.                 FDFORMAT A: /V:mydisk (Writes volume label MYDISK)
  471.  
  472.  
  473.        The X and Y options - Do sector sliding
  474.        ---------------------------------------
  475.  
  476.        These options  can be used to enhance the performance of your disk
  477.        up to  100%. This  is bit difficult to explain. Imagine a standard
  478.        360 kB  disk. It  has 9  sectors on  each track  numbered 1  to 9.
  479.        Normally the  sectors on  all tracks  ordered "1 2 3 4 5 6 7 8 9".
  480.        With sector sliding of 1 you order "1 2 3 4 5 6 7 8 9" on track 0,
  481.        "9 1 2 3 4 5 6 7 8" on track 1, "8 9 1 2 3 4 5 6 7" of track 2 and
  482.        so on.
  483.  
  484.        You can  easily imagine,  that it  takes a  little time, when your
  485.        diskette drive  head steps  from one  track to  another. But  your
  486.        diskette continues  rotating. Without sector sliding your diskette
  487.        is positioned  to sector  2 or  3 on  the  next  track,  when  the
  488.        stepping is done. It needs nearly a full revolution until sector 1
  489.        of the  next track can be read. With sector sliding of 1 or 2 your
  490.        diskette is positioned exactly on sector 1, when it starts reading
  491.        again.
  492.  
  493.        The DOS-Format  program always  formats  with  sector  sliding  0.
  494.        FDFORMAT provides  two parameters to do sector sliding. /Xn slides
  495.        n sectors, when you change the head, but not the track. /Ym slides
  496.        m sectors,  when you  slide the track. Normally only /Y is useful,
  497.        but on  some systems,  especially XTs,  you can  reach  additional
  498.        speed by using /X.
  499.  
  500.  
  501.        Now, how  to determine  the correct  value for  sector sliding. In
  502.        general you can say good values for /X are 0-2 and for /Y 0-4. The
  503.        default  is  0  for  /X  and  /Y.  You  to  experiment  with  your
  504.        configuration, which value is optimal for you. You may reconfigure
  505.        your default  sector sliding  in the  FDFORMAT.CFG file (described
  506.        later). You  have to  find out  this for  each format  seperately.
  507.        Always good choices are the following:
  508.  
  509.        Disk-Size           Good choice for sector sliding
  510.        ------------------  ------------------------------
  511.        320-410 kB          /X:1 /Y:3
  512.        720-820 kB          /X:1 /Y:2
  513.        1.2 MB-1.72 MB      /X:2 /Y:3
  514.  
  515.        This will  improve your diskette perfomance 50%-100% on almost any
  516.        system.
  517.  
  518.        Example: FDFORMAT A: /4 /X:1 /Y:2 /R/K/V:SLIDE_DISK
  519.  
  520.  
  521.        The Innn option - Use Interleave of nnn
  522.        ---------------------------------------
  523.  
  524.        The I  option changes  the Interleave  factor for diskette format.
  525.        Normally the best interleave is 1, thus it takes only 1 revolution
  526.        to read  an entire  track. But  there are 2 exceptions to it. When
  527.        formatting a 21 sector 3½"-HD disk or a 18 sector 5¼"-HD disk. You
  528.        need an  interleave of  2 in these cases, because a data sector is
  529.        used as  GAP. If  you do  not use an interleave of at least 2, the
  530.        disk will become unreadable.
  531.  
  532.        But you  do not  have to  take care  about this  option,  FDFORMAT
  533.        automatically determines  the best  interleave for  you (1  or 2).
  534.        However you  can set  your interleave  whatever you  like, but the
  535.        only effect is, that your disk becomes slower.
  536.  
  537.        Example: FDFORMAT A: /I:6  (format a very slow disk)
  538.  
  539.  
  540.        The Gnnn option - Specify GAP length
  541.        ------------------------------------
  542.  
  543.        The GAP length is the fill space between two sectors on one track.
  544.        As with  the Interleave,  FDFORMAT determines  the best  value for
  545.        you. You  can reduce the GAP length to speed up your diskette. But
  546.        this reduces  your safety, when storing data, unless you choose an
  547.        interleave of  2. And an interleave of drastically slows down your
  548.        disk performance. If you want to reduce your GAP length anyway, do
  549.        not set  it below  32 for  high density disks and not below 40 for
  550.        double density disks.
  551.  
  552.        For the  safety of  your data, it is recommended not to modify the
  553.        GAP length.  Sector sliding  is a  better method  to speed up your
  554.        diskette performance and does not affect the safety of your data.
  555.  
  556.  
  557.        The Bnnn option - Setting the disk type Byte
  558.  
  559.        This option  affects to 80286/80386/80486 Computers only and needs
  560.        to be  set, if  you have an incompatible or older BIOS, which does
  561.        not  support   1.44  MByte  Drives.  It  is  configurable  in  the
  562.        FDFORMAT.CFG file  described later.  This byte  is made out of the
  563.        following components:
  564.  
  565.        Group Decimal Hexadecimal Meaning
  566.        -----------------------------------------------------------------
  567.                   0        0     Media Type unknown
  568.         1        16       10     Media Type known
  569.        -----------------------------------------------------------------
  570.  
  571.                  32       20     double stepping (40 Tracks)
  572.         2         0        0     single stepping (80 Tracks)
  573.        -----------------------------------------------------------------
  574.                   0        0     Data-Transfer-Rate: 500 kBaud
  575.                  64       40     Data-Transfer-Rate: 300 kBaud
  576.         3       128       80     Data-Transfer-Rate: 250 kBaud
  577.        -----------------------------------------------------------------
  578.                   0        0     360 kB Disk in 360 kB Drive, unchecked
  579.                   1        1     360 kB Disk in 1.2 MB Drive, unchecked
  580.                   2        2     1.2 MB Disk in 1.2 MB Drive, unchecked
  581.                   3        3     360 kB Disk in 360 kB Drive, checked
  582.                   4        4     360 kB Disk in 1.2 MB Drive, checked
  583.                   5        5     1.2 MB Disk in 1.2 MB Drive, checked
  584.         4         7        7     state not defined (3½"-Drive)
  585.        -----------------------------------------------------------------
  586.  
  587.        To get  the correct value for your format, select one Value out of
  588.        each group  and add  these values. Normally the media type byte is
  589.        set correctly, following these rules:
  590.  
  591.        Group 1: Always set to 16
  592.        Group 2: 32, if tracks from 1-43, else 0
  593.        Group 3: high density disks: always 0
  594.                 double density disks: 64 for 5¼"-Disks, 128 for 3½"-Disks
  595.        Group 4: always set to 3
  596.  
  597.        Why set group 4 always to 3? There is a problem DTK-BIOS. DTK-BIOS
  598.        seems not  to work  with any  other value  than 3.  All other BIOS
  599.        Versions I have tested, seem to ignore the Value of Group 4. So it
  600.        will be  the best choice to set it always to 3. In some few cases.
  601.        Your System  will not  work with  the default value. In this case,
  602.        try out  any value  from 0-7  for Group  4. It should work. If you
  603.        have determined  the correct  value,  you  can  write  it  in  the
  604.        FDFORMAT.CFG file.
  605.  
  606.  
  607.  
  608.        CONFIGURING FDFORMAT WITH FDFORMAT.CFG
  609.        --------------------------------------
  610.  
  611.        Before you  start setting up a configuration file, you should try,
  612.        if  all   formats   will   work   correctly.   FDFORMAT   normally
  613.        automatically determines  the best  options for  you. If something
  614.        seems to fail, then set up a configuration file.
  615.  
  616.        You must  also create a configuration file, if you have one of the
  617.        following situations.
  618.  
  619.        1) You have  an XT  with a  high density controller to support 1.2
  620.           MByte or 1.44 MByte drives.
  621.        2) You have  an AT and an 1.44 MByte drive, but you cannot install
  622.           it with your setup program (e.g. IBM/Advanced diagnostics).
  623.        3) You have  an XT  (like EPSON  QX-16 or  AT&T/Olivetti M24/M28),
  624.           which has  one or more 720 kByte drives, that also supports 360
  625.           kByte diskettes.
  626.        4) You have an 5¼"-720 kByte drive in an AT.
  627.  
  628.  
  629.        Format of the configuration file FDFORMAT.CFG
  630.        ---------------------------------------------
  631.  
  632.        The general format for FDFORMAT.CFG is:
  633.  
  634.        <drive>: [XT|AT] [BIOS] [40=n] [80=n] [F=n] [360=n] [720=n]
  635.                 [1.2=n] [1.44=] [X=] [Y=]
  636.  
  637.        Example for a configuration file:
  638.  
  639.             REM Configure drive B: for 1.44 MByte
  640.             B: AT BIOS F=7 360=$B7 720=$97 1.44=$17 X=2 Y=2
  641.  
  642.             REM Configure drive A: for 5¼"-720 kByte
  643.             A: AT F=2 BIOS 720=$54 X=0 Y=0
  644.             REM All Numbers preceded by a $-sign are hexadecimal
  645.  
  646.        The options in detail:
  647.  
  648.        XT  : Tell FDFORMAT  that your Computer is an XT or compatible and
  649.              does not  perform any AT-BIOS functions. This option is only
  650.              needed, if  FDFORMAT does not automatically recognizes, that
  651.              your computer  is an XT. This option is also needed, if your
  652.              XT supports  720 kByte  drives, that  can handle  360  kByte
  653.              diskettes too.
  654.  
  655.        AT  : Tell FDFORMAT  that your  Computer is  an  80286/386(SX)  or
  656.              80486 Computer  or an  XT, that  supports AT-BIOS functions.
  657.              This option  is only needed, if FDFORMAT does not recognize,
  658.              that you  can use  AT-BIOS functions.  A typical case, where
  659.              you need  this parameter is, when you have an XT with a high
  660.              density controller installed.
  661.  
  662.        BIOS: This option  works only  with AT-BIOS. It tells FDFORMAT not
  663.              to modify the disk type byte directly, as it is the default,
  664.              but try  to change  the format  information via  BIOS-Calls.
  665.              This option  should only  be used, if FDFORMAT does not work
  666.              without  this  option.  The  BIOS  option  has  the  typical
  667.              disadvantage that  some BIOS-Versions  do  not  support  all
  668.              formats for  all drives.  In this case you must set the disk
  669.              type byte  for the  unsupported format in your configuration
  670.              file. This option is described later.
  671.  
  672.        PC40: This option  works only  with a few XT-BIOS-Versions for 720
  673.              kByte drives.  You can  specify an  offset to  the  physical
  674.              drive number,  that indicates, that a 40 Track Diskette (360
  675.              kByte) is  inserted, when  calling BIOS-Disk  I/O.  Normally
  676.              this option is set to 0.
  677.  
  678.        PC80: This option  works with  most XT-BIOS-Versions, that support
  679.              720 kByte  Drives, who  also can handle 360 kByte diskettes.
  680.              These are  for example  AT&T M24/M28 or EPSON-QX16. The most
  681.              often used  offset is  64. Try 64 first, if it does not work
  682.              try 32,  16, 8, 4 or 2. Do not try any other values, it will
  683.              not work.
  684.  
  685.        F   : This option  needs to  be set  only, if  your BIOS  does not
  686.              support the  your type  of disk drive. You need this option,
  687.              if you  have an  1.44 MB  drive installed and your BIOS does
  688.              not support  it. If  you want to install this option use the
  689.              following values:  F=0 for  360 kByte  Drive, F=1 for 1.2 MB
  690.              drive, F=3 for 720 kB Drive and F=7 for 1.44 MB drive.
  691.  
  692.        360 : Use this  option to  use another  disk type  byte for 360 kB
  693.              diskettes than the default value of $73. If you have set the
  694.              BIOS option,  the 360  kByte format will not be set by BIOS,
  695.              but directly  using this  disk type  byte. Refer  to  the  B
  696.              command line option to see how you can determine the correct
  697.              disk type byte.
  698.        720 : same as 360, but for 720 kB format.
  699.        1.2 : same as 360, but for 1.2 MB format.
  700.        1.44: same as 360, but for 1.44 MB format.
  701.  
  702.        X   : can be used to override the default of 0 for sector sliding,
  703.              when the head changes.
  704.        Y   : can be used to override the default of 0 for sector sliding,
  705.              when the track changes.
  706.  
  707.  
  708.        Sample Configuration Files
  709.        --------------------------
  710.  
  711.  
  712.  
  713.        A: XT PC80=64                  720 kB drive in XT like AT&T M24
  714.        A: AT F=7                      1.44 MB drive in AT or XT
  715.        A: AT F=1                      1.2 MB drive in AT or XT
  716.        A: AT F=2 360=$74 720=$57      720 kB 5¼"-Drive in AT
  717.        A: AT F=2 360=$73 720=$53      720 kB 5¼"-Drive in AT & DTK-BIOS
  718.