home *** CD-ROM | disk | FTP | other *** search
/ CICA 1997 February / cicawindowscollection199702-1.iso / disc1 / archive / dmf10.exe / FDFORMAT.DOC < prev    next >
Text File  |  1995-05-05  |  29KB  |  715 lines

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