home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / add2 / anad132.zip / ANADISK.DOC next >
Text File  |  1989-02-21  |  31KB  |  901 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.           ANADISK - The Ultimate Diskette Utility
  12.  
  13.  
  14.  
  15.  
  16.              Charles P. Guzis
  17.                    SYDEX
  18.                153 North Murphy Ave.
  19.                Sunnyvale, CA  94086
  20.               (408) 739-4866
  21.  
  22.  
  23.              September 1, 1988
  24.                Version 1.32
  25.  
  26.  
  27.         Copyright 1987, 1988, All Rights Reserved.
  28.              Charles P. Guzis / SYDEX
  29.  
  30.  
  31.       THIS IS NOT FREE SOFTWARE and may not  be     sold  without
  32.       the  author's  express written permission.   If you have
  33.       paid a "public domain" vendor for this program, rest as-
  34.       sured that not one bit of what you paid ever  gets  back
  35.       to  the  author.      If  you  use this program,  YOU MUST
  36.       REGISTER.     Neither SYDEX nor Mr. Guzis will answer tech-
  37.       nical support inquiries from unregistered users.
  38.  
  39.       To register,  send $15.00 with your name,     company  name
  40.       (if any) and address to -
  41.  
  42.                    SYDEX
  43.                153 North Murphy Ave.
  44.             Sunnyvale, CA  94086
  45.  
  46.       Upon receipt of your registration fee,  you will be sent
  47.       the most current version of ANADISK and its accompanying
  48.       documentation.
  49.  
  50.       ANADISK and this document are  protected    by  copyright.
  51.       The receipt or possession of this document does not con-
  52.       vey   any     rights     beyond     those    enumerated  herein  to
  53.       reproduce or distribute its contents.    If  ANADISK  or
  54.       this  document are copied,  a fee may be charged for the
  55.       service of copying only, and not for ANADISK itself.  If
  56.       such a charge is made,  it must be clearly identified as
  57.       a service charge only by the vendor.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.              Table of Contents
  68.  
  69.  
  70.    INTRODUCTION.................................................1
  71.  
  72.    ANADISK IN BRIEF.............................................1
  73.  
  74.    ANADISK OPERATION............................................1
  75.     Menus.......................................................2
  76.     The Main Menu...............................................2
  77.      SCAN Operation.............................................3
  78.       Searching for Data........................................5
  79.      SECTOR EDIT Operation......................................6
  80.      FILE EDIT Operation........................................8
  81.      REPAIR Operation...........................................9
  82.      COPY Operation............................................10
  83.      DUMP Operation............................................11
  84.     Accessing External Drives..................................11
  85.     Notes on Media Types.......................................12
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.                  i
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  INTRODUCTION
  128.  
  129.  This document is comprised of major excerpts of the full  ANADISK
  130.  reference  material.     If you wish to get a copy of the complete
  131.  documentation for  ANADISK  -    you  guessed  it  -  you  have    to
  132.  REGISTER.  See the preceding page for information on registering.
  133.  
  134.  
  135.  ANADISK IN BRIEF
  136.  
  137.  ANADISK is a general-purpose utility package to analyze, inspect,
  138.  edit, repair and copy diskettes.  It is intended for IBM Personal
  139.  Computer-compatible  machines    and  makes  extensive  use  of the
  140.  hardware facilities of this series of machines.  ANADISK does not
  141.  support the "hard" disk, just diskettes.
  142.  
  143.  ANADISK contains  support  for,  but  is  not    limited     to,  DOS-
  144.  compatible diskettes.     Almost any diskette that can successfully
  145.  be read  by  the  hardware  contained    in  your  machine  can    be
  146.  processed by ANADISK.
  147.  
  148.  Menus,     windows  and  use  of    color  where available are part of
  149.  ANADISK's implementation and make it easy to use, even by the in-
  150.  experienced.
  151.  
  152.  
  153.  ANADISK OPERATION
  154.  
  155.  As distributed,  ANADISK consists of this  file  (usually  called
  156.  READ.ME or ANADISK.DOC) and the file ANADISK.EXE.  To begin using
  157.  ANADISK, just place the ANADISK.EXE file where it can be executed
  158.  as a program and enter -
  159.  
  160.        ANADISK
  161.  
  162.  at the DOS prompt.
  163.  
  164.  If you have a monochrome display adapter, ANADISK's displays will
  165.  be  light  on    a dark background with occasional reverse video or
  166.  highlighting.
  167.  
  168.  If you have a monochrome monitor connected to    a  color  graphics
  169.  adapter,  or  you find that you would rather have a light-on-dark
  170.  display rather than a color display,  simply invoke ANADISK  with
  171.  the following line -
  172.  
  173.        ANADISK M
  174.  
  175.  All displays will be light on a dark background.
  176.  
  177.  
  178.  
  179.  
  180.                   Page 1
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  If  all goes well,  you'll get what a friend calls the "elevator"
  188.  display - a graphic ANADISK floats down to  the  bottom  of  your
  189.  screen,  and the registration information appears.  After a short
  190.  pause, the main menu appears.
  191.  
  192.  During the operation of ANADISK,  there are two keys whose  func-
  193.  tion does not change:
  194.  
  195.       ESCape  exits from whatever ANADISK is currently doing.    If
  196.       ANADISK is at the Main Menu,  ESCape exits to DOS.    Other-
  197.       wise,  ESCape  takes ANADISK back one menu or display.    In
  198.       general, ESCape takes ANADISK  back to whatever it was doing
  199.       before the current operation.
  200.  
  201.       F1 gets a help display if one is available.   Beginning with
  202.       version 1.31, a help display is available everywhere ANADISK
  203.       requests keyboard input.     This help is "context sensitive";
  204.       that is, it relates directly to the current state of ANADISK
  205.       execution.   For example,     pressing F1 at the main menu will
  206.       display  a  short     explanation  of  the choices shown on the
  207.       menu.   Pressing any other key will then bring you  back    to
  208.       the main menu.
  209.  
  210.  
  211.  Menus
  212.  
  213.  Menus are used to select ANADISK's operating modes.   The current
  214.  choice for an item is indicated by displaying that item in a  in-
  215.  verse video field;  the current position within the menu is indi-
  216.  cated by blinking that item.    To select a different choice,  use
  217.  the right- and left-arrow cursor keys.     To go to the next line in
  218.  the  menu,  use  the  up-  or    down-arrow cursor keys.      When all
  219.  choices have been made,  press the ENTER  key    and  ANADISK  will
  220.  progress to the next menu.  To exit to DOS, press the ESCape key.
  221.  
  222.  
  223.  The Main Menu
  224.  
  225.  ANADISK's  main  menu  selects  what function is to be performed.
  226.  The following operations are available:
  227.  
  228.       SCAN - reads every sector on a diskette, indicates the find-
  229.        ings,  and optionally pauses     for  examination.    This
  230.        function  can  be  used to determine the type of a dis-
  231.        kette, or just to determine its basic readability.    In
  232.        addition,  SCAN is used to search for a data pattern on
  233.        a diskette.
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.                   Page 2
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.       EDIT SECTORS - allows editing of the  data  on  a     diskette,
  249.        sector by sector.   Many other operations are possible;
  250.        the diskette under examination need not be a     DOS  dis-
  251.        kette.  SECTOR mode is often used to repair data errors
  252.        or to change the structure of data not normally  acces-
  253.        sible with the normal DOS utilities.
  254.  
  255.       EDIT  FILES  -  edits data contained in a DOS file on a dis-
  256.        kette.   Because a file structure is essential to  this
  257.        mode, it may be used only with DOS diskettes.  The dis-
  258.        play and operation is similar to that of EDIT SECTORS.
  259.  
  260.       REPAIR  -     reconciles the File Allocation Tables,     moves bad
  261.        sectors and scans the diskette for readability.  REPAIR
  262.        can be used to salvage a diskette containing unreadable
  263.        files.   Again,  because the REPAIR function requires a
  264.        DOS    file structure,     it may be used only with DOS dis-
  265.        kettes.
  266.  
  267.       COPY - copies one diskette to another, regardless of format.
  268.        While not intended  as  a  method  for  defeating  copy
  269.        protection schemes,    the COPY function will make a true
  270.        copy of just about any diskette,  regardless of format.
  271.        This     operation also verifies the integrity of the copy
  272.        by performing a read-after-write check of each sector.
  273.  
  274.       DUMP - copies a range of cylinders to a file.  This function
  275.        allows "off-line" processing of data read by  the  SCAN
  276.        operation.
  277.  
  278.  Where    the  integrity or format of a diskette is unknown,  a SCAN
  279.  operation should first be performed.  If data errors are reported
  280.  during the progress of a SCAN,     it is best to    attempt     a  repair
  281.  first by using the SECTOR or FILE Edit modes.    REPAIR mode can be
  282.  used as a "last resort" for correcting DOS diskettes, or to iden-
  283.  tify a particular file containing erroneous data.
  284.  
  285.  After    the  operating    mode has been selected from the main menu,
  286.  depressing the ENTER key will cause  one of several sub-menus    to
  287.  appear.      Each sub-menu contains specifications for parameters
  288.  pertaining to the operating mode selected.
  289.  
  290.  
  291.  SCAN Operation
  292.  
  293.  The SCAN mode sub-menu displays the following options;
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.                   Page 3
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.       DISKETTE UNIT - Selects which diskette unit will be scanned.
  308.        Normally, these appear as A: through D:.   However,    if
  309.        physical unit access has been specified (see "Accessing
  310.        Other  Drives"),  the diskette unit choices will appear
  311.        as 0: through 3:.
  312.  
  313.       PRINTER OUTPUT - If selected,  causes a log to be printed on
  314.        device  LPT1:  during  the SCAN operation.    Otherwise,
  315.        results of the scan are only displayed and not printed.
  316.  
  317.       PAUSE AFTER ANOMALIES -  If  selected,  ANADISK  will  pause
  318.        after an anomalous condition or error occurs.    Press-
  319.        ing any key will cause execution to resume.
  320.  
  321.       SHOW DETAIL MAP AFTER ANOMALIES - If selected,  a map of the
  322.        track will be displayed showing cylinder, head and sec-
  323.        tor    addresses as they occur on the track.    Errors and
  324.        deleted data marks are also noted.    Pressing  any  key
  325.        will cause SCAN operation to resume.
  326.  
  327.       SEARCH  FOR A DATA PATTERN - If selected,     allows specifica-
  328.        tion of a hexadecimal or ASCII  data     value    up  to    20
  329.        bytes in length.   In addition, a hexadecimal selection
  330.        mask may also  be  specified;  '1'  bits  in  the  mask
  331.        specify  positions that are to be considered during the
  332.        search; '0' bits are "don't cares".
  333.  
  334.        For more information on this mode,  see "Searching  for
  335.        Data", below.
  336.  
  337.  SCAN  mode first attempts to determine the characteristics of the
  338.  diskette drive and controller.     As  the  characteristics  of  the
  339.  equipment  found are determined,  they are reported in either the
  340.  left (General Information) or right (Detailed    Information)  win-
  341.  dows.    An attempt is made to determine the following:
  342.  
  343.        1.     If the diskette contains any readable information.
  344.  
  345.        2.     The  data rate (250Kbps,  300Kbps or 500Kbps) used
  346.         to record the information, if applicable.  This is
  347.         reported in terms of the drive type and the  terms
  348.         "high" or "low" density.
  349.  
  350.        3.     The  track density or spacing of the diskette ver-
  351.         sus the normal    recording  track  density  of  the
  352.         drive (48 or 96 tracks per inch).  If the diskette
  353.         appears to be blank,  this is reported and ANADISK
  354.         exits to the main menu.
  355.  
  356.        4.     If the diskette contains 512 byte sectors,  sector
  357.         0,  side 0,  cylinder 0 is read and examined for a
  358.         DOS boot sector.  If one is found, the information
  359.  
  360.                   Page 4
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.         is saved and used in operations involving DOS file
  368.         structure.   Additionally,  a "pop-up" window  ap-
  369.         pears,    showing the information read from the boot
  370.         sector.      Pressing any key causes this    window    to
  371.         disappear.
  372.  
  373.         If no valid boot sector data can be found, a check
  374.         is  made for a File Allocation Table (FAT) present
  375.         on the first track of the diskette.    If  one    is
  376.         found,    the  diskette  is assumed to be a DOS dis-
  377.         kette,    and analysis is conducted based on the FAT
  378.         identification byte located.   Note that either of
  379.         the two FATs may be  intact  (something     that  DOS
  380.         will not look for).
  381.  
  382.        5.     If  a    DOS diskette is detected,  all FAT clusters
  383.         are checked for correct range,    and if both copies
  384.         of  the     FAT can be read,  the two copies are com-
  385.         pared  for  consistency.     Any  differences  are
  386.         reported  and  may  be    repaired  by  means of the
  387.         REPAIR mode or the SECTOR edit mode.
  388.  
  389.         If a DOS diskette cannot be identified, a check is
  390.         made for a few other common diskette  types,  such
  391.         as CP/M-86 system diskettes.
  392.  
  393.         Regardless  of    the  type of diskette,    the entire
  394.         diskette is scanned for structure and readability,
  395.         reporting changes in the overall  format  of  each
  396.         track as well as any errors detected.
  397.  
  398.  
  399.  Searching for Data
  400.  
  401.  A  SCAN  mode    option    allows    a  diskette  to     be searched for a
  402.  specified data value.     If this option is selected  on     the  SCAN
  403.  sub-menu, another menu will appear with the following choices:
  404.  
  405.       SEARCH KEY MODE specifies whether the search key will be en-
  406.        tered in ASCII or hexadecimal.   In either case,  up to
  407.        20 bytes of data may be entered.
  408.  
  409.       SEARCH QUALIFICATION specifies how much 'leeway'  should  be
  410.        given  in  the search.   if NONE is selected,  the data
  411.        value will be located exactly as it is entered.  IGNORE
  412.        CASE will cause upper- and lower-case ASCII letters    to
  413.        be considered as being equivalent.  SPECIFY MASK allows
  414.        specification  of a hexadecimal mask value.     This mask
  415.        value contains '1' bits in those positions of the  data
  416.        value  to be considered in the search.  '0' bits denote
  417.        "don't care" positions.
  418.  
  419.  
  420.                   Page 5
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  When either the search data value or mask is being entered, Alt-X
  428.  (the Alt and 'X" keys depressed simultaneously),  will cause  the
  429.  current  position  to    be  regarded as a "don't care".   That is,
  430.  Alt-X specifies a "wild card" which will not be considered in the
  431.  search.   The first byte of the search data value must not  be     a
  432.  "don't care".
  433.  
  434.  After    the  search  data  value and the qualifying mask have been
  435.  specified,  a normal track-by-track scan is performed of the dis-
  436.  kette.      When a match is found with the specified value,  a "pop-
  437.  up" window gives the location and, if applicable,  the file where
  438.  the match occurred.  ANADISK then pauses until one of the follow-
  439.  ing keys has been pressed:
  440.  
  441.       C        to continue and find the next occurrence of the value.
  442.  
  443.       S        to skip the remainder of the track and continue search-
  444.        ing with the next track.
  445.  
  446.       E        to    enter  SECTOR  EDIT mode with the sector containing
  447.        the data.   When an exit from SECTOR EDIT mode is made,
  448.        the "pop up" window reappears.
  449.  
  450.       ESCape to exit SCAN mode and return to the main menu.
  451.  
  452.  The search for a match on a specified data value continues to the
  453.  end of the diskette.
  454.  
  455.  
  456.  SECTOR EDIT Operation
  457.  
  458.  The  SECTOR  Edit  mode allows diskette data to be altered or in-
  459.  spected on a sector address basis,  as contrasted with     the  FILE
  460.  edit  mode,  which  allows editing of data within a specified DOS
  461.  file.
  462.  
  463.  The SECTOR EDIT sub-menu selects the diskette unit to be used.
  464.  
  465.  Like SCAN mode,  SECTOR Edit mode begins operation by determining
  466.  the diskette type and drive characteristics.  After this is done,
  467.  a prompt is displayed to select the track and side containing the
  468.  sector(s) to be inspected or modified.
  469.  
  470.  The right- and left-cursor keys are used to select the track, the
  471.  up- and down-cursor keys are used to select the head or side con-
  472.  taining the sector.   The "ruler" line shows this position change
  473.  correspondingly.     When the ENTER key is pressed,  the track is
  474.  read for analysis and a track map is displayed.
  475.  
  476.  The desired sector is selected from the displayed  track  map    by
  477.  use of the up- and down-cursor keys. When the sector to be edited
  478.  is highlighted,  the ENTER key is pressed to display the data for
  479.  
  480.                   Page 6
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  that sector.    Note that the sectors are listed in the     order    in
  488.  which they occur on the track,     but that the selection is done in
  489.  strictly numerical order.
  490.  
  491.  The sector data is displayed in hexadecimal  and  ASCII  formats;
  492.  the  current  position     within     the sector data is indicated by a
  493.  highlighted, inverse video block.   Sector data may be changed by
  494.  simply entering new data at the current position or by making use
  495.  of  one of the predefined function keys.   If the sector data has
  496.  been changed,    but not re-written to the disk,     the  word  "SAVE"
  497.  will  appear  in  the    editing menu window as a reminder that the
  498.  data displayed does not yet reflect the actual data on the disk.
  499.  
  500.  The function keys are as follows:
  501.  
  502.       F1    Help key, brings up a help display for editing.
  503.  
  504.       F2    Re-reads the current sector and display its data.
  505.  
  506.       F3    Writes the currently displayed data back  to  the  dis-
  507.        kette.
  508.  
  509.       F4    Toggles the deleted data mark indicator.   If set,    the
  510.        data in the buffer will be written (when  F3     is  used)
  511.        back     to  the  diskette  with a Deleted Data Mark.    If
  512.        clear, no deleted data mark will be set.
  513.  
  514.       F5    Shifts all the currently displayed data  left  one    bit
  515.        from     the  current  position     to the end of the sector.
  516.        High-order bits shifted out of the current position are
  517.        discarded;  zeroes are shifted into the low-order  bits
  518.        of the last byte of the sector.
  519.  
  520.       F6    Shifts  all     the currently displayed data right one bit
  521.        from the current position to the  end  of  the  sector.
  522.        High-order  zeroes  are  shifted into the current posi-
  523.        tion, with low order bits being discarded from the last
  524.        byte of the sector.
  525.  
  526.       F7    Takes the ones' complement (logical NOT)  of  the  cur-
  527.        rently  displayed data from the current position to the
  528.        end of the sector.
  529.  
  530.       F8    Fills the remainder of the currently  displayed  sector
  531.        with the value of the byte at the current position.
  532.  
  533.       F9    Reads the next sector of the current track; if the last
  534.        sector  has    just been read,     "wraps" back to the first
  535.        sector on the track.
  536.  
  537.  
  538.  
  539.  
  540.                   Page 7
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.       F10   Changes  the  display  mode      and    data   entry   from
  548.        hexadecimal    to  ASCII  or  vice-versa.   When in ASCII
  549.        entry mode,    all printable characters (value of a space
  550.        or above) can be entered.
  551.  
  552.       Shift-F2     Performs  a  "diagnostic  read"  of the track.   A
  553.        diagnostic read involves reading the data field of  the
  554.        first  sector  and continues with all fields until 8192
  555.        bytes have been read.    ID fields,    gap bytes and CRCs
  556.        are read indiscriminately; no attempt to re-synchronize
  557.        the    data  separator is made after the first sector has
  558.        been read.    This function allows viewing of     raw  data
  559.        and    may be used to determine the value of a data field
  560.        whose address ID field has been corrupted.
  561.  
  562.       Shift-F3     Performs a read of every  sector  on  the  current
  563.        track and side;  the data is accumulated.  The track is
  564.        then re-formatted and the data rewritten to the  track.
  565.        Before the formatting occurs,  you will be asked to ap-
  566.        prove the formatting - if ESCape is pressed, the opera-
  567.        tion will not be performed.     This function may be used
  568.        to transfer just one track from one diskette to another
  569.        by swapping the source and destination after the prompt
  570.        appears, but before a response is given.
  571.  
  572.       Shift-F9     Reads the previous sector on the track; if already
  573.        at the beginning of the track, "wraps" to the last sec-
  574.        tor on the track.
  575.  
  576.       Shift-F10     Reads the next side; equivalent to exiting back to
  577.        the main display and advancing to the next side.
  578.  
  579.       ESCape - Backs up to the previous display.
  580.  
  581.  In  case  of sector data errors,  ANADISK will attempt to present
  582.  all data recoverable from the diskette.   Some of  the     functions
  583.  just described are intended to assist in recovering data that has
  584.  become     corrupted.   The Shift Right,    Left and NOT functions are
  585.  especially useful in this respect.
  586.  
  587.  If a sector shows up as "missing" or "added" on the track map, it
  588.  cannot be read,  nor  will  it     be  written.     If  any  data    is
  589.  recoverable when a sector is read however,  the sector can be re-
  590.  written and the error condition generally will disappear.
  591.  
  592.  
  593.  FILE EDIT Operation
  594.  
  595.  FILE Edit mode is similar to the SECTOR Edit mode  of    operation,
  596.  with  the  exception that DOS file structure is used as the basis
  597.  for organizing information, rather than the physical organization
  598.  of sectors on the diskette.
  599.  
  600.                   Page 8
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  The opening display for FILE Edit mode presents a  list  of  file
  609.  names contained in the root directory of the diskette.      The cur-
  610.  sor up- and down-arrow keys are used to select     the  file  to    be
  611.  edited;  the  file  name  display may be "paged"  by means of the
  612.  Page Up (PgUp) or Page Down (PgDn) cursor keys.
  613.  
  614.  To examine the files in a particular subdirectory,  position  the
  615.  cursor bar to the subdirectory name and press ENTER.    To go back
  616.  to the parent directory of a subdirectory,  position to the  ".."
  617.  entry and press ENTER.      To begin editing a file, position to the
  618.  file name and press ENTER.
  619.  
  620.  The  editing  display    is  almost identical to that of the SECTOR
  621.  Edit mode, with the following exceptions:
  622.  
  623.       F9    Reads the next sector in the file, rather than the next
  624.        sector on the track.
  625.  
  626.       Shift-F9     Reads the previous sector in the file, rather than
  627.        the previous sector on the track.
  628.  
  629.       Shift-F10     Does not operate in this mode.
  630.  
  631.  Note that the file name and offset from the beginning of the file
  632.  appear in the editing menu window, along with a "SAVE" indication
  633.  if data has been altered.
  634.  
  635.  
  636.  REPAIR Operation
  637.  
  638.  REPAIR mode can be considered to be two functions.   The first is
  639.  a rudimentary DOS diskette check and verify mode; the second is a
  640.  bad  sector  remapping mode.  The bad sector remapping operations
  641.  should be viewed as a "last resort" type of repair as the overall
  642.  structure of the diskette is affected.
  643.  
  644.  REPAIR mode performs the following tasks:
  645.  
  646.       1.    Checks for the presence and agreement of two  File    Al-
  647.        location tables on the diskette.   If a disagreement is
  648.        found,  or one table is absent,  a new copy of the  FAT
  649.        may optionally be rewritten to the diskette.
  650.  
  651.       2.    Scans the entire diskette for unreadable data.   If any
  652.        is found,  the file containing the bad data is located,
  653.        the    cluster     (a  grouping  of sectors used by DOS as a
  654.        "unit" of diskette space) is reassigned to a  different
  655.        area     of  the  diskette and the data (or as much of the
  656.        data that can be read) is written to the newly assigned
  657.        cluster.   The original cluster containing the data    is
  658.        marked as unavailable for future allocation.
  659.  
  660.                   Page 9
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  The  object of REPAIR mode is to produce a readable DOS diskette.
  669.  Missing data or data in error still must  be  corrected  manually
  670.  but  the  structure  and size of files will be correct.   The DOS
  671.  utility CHKDSK can  be useful when checking  the  structural  in-
  672.  tegrity  of  a     diskette and should be used after REPAIR mode has
  673.  been run for a "second opinion".
  674.  
  675.  
  676.  COPY Operation
  677.  
  678.  COPY mode allows the contents of one diskette    to  be    copied    to
  679.  another,  regardless  of  format or DOS orientation.    While COPY
  680.  mode will successfully produce copies of  many     "copy  protected"
  681.  diskettes,  the intent of its function is to enable one to copy a
  682.  diskette which is not copyable using the DOS DISKCOPY function.
  683.  
  684.  A two-drive machine is not necessary for this function;  that is,
  685.  the source and target drives may be the same unit.  If one of the
  686.  drives     is a high-capacity (PC-AT type) drive and normal 40 track
  687.  diskettes are being copied,  the high-capacity     drive    should    be
  688.  designated  as     the source drive and the normal-capacity drive as
  689.  the destination to ensure an accurate, readable copy.
  690.  
  691.  The COPY sub-menu requests specification of the source     and  des-
  692.  tination  drives.    When ENTER is depressed,    the COPY operation
  693.  begins by reading the source diskette.
  694.  
  695.  If the type of the source drive and diskette  is  not    compatible
  696.  with the type of the destination drive,  an error message will be
  697.  issued and ANADISK will exit COPY mode.   For    instance,  a  1.2M
  698.  byte  high-density  diskette  in  a  high-density drive cannot be
  699.  copied to a 360K byte normal-density drive.
  700.  
  701.  A scan of the diskette is performed as the copy proceeds;  errors
  702.  are  noted  in     exactly the same manner and format as in the SCAN
  703.  mode.     Sectors containing data errors are copied  with  the  er-
  704.  roneous  data written as read.      Each track is read back after it
  705.  is written for verification.    The copy process completes when no
  706.  more data can be found on the source diskette.
  707.  
  708.  If the destination and source drives have been selected to be the
  709.  same  unit,  ANADISK  will  prompt  for  disk    changes as needed.
  710.  ANADISK attempts to read as much data as is possible into  memory
  711.  from  the  source diskette before writing to the destination dis-
  712.  kette.      With a 640K system under DOS 3.3,  about 46 double-sided
  713.  tracks can be copied before a disk change is necessary.
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.                   Page 10
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  DUMP Operation
  729.  
  730.  The  DUMP operation specifies that data read during a SCAN opera-
  731.  tion be written to a file.   Either the entire disk or a part    of
  732.  it can be written to the specified file.
  733.  
  734.  The DUMP operation first requests specification of the drive con-
  735.  taining  the diskette to be scanned.    A prompt is then displayed
  736.  for the name of the file  to  contain    the  data  read     from  the
  737.  scanned diskette.   If the ESCape key is pressed at this time, an
  738.  exit is made to the main menu.      Otherwise,  the  named  file    is
  739.  created  and  prompts    are displayed for the cylinder range to be
  740.  written to the file.  If the starting cylinder is specified to be
  741.  greater than the ending cylinder,  no data will be written to the
  742.  file.     Otherwise, a series of records of the following form will
  743.  be written:
  744.  
  745.       1 Byte     The actual (physical) cylinder number.
  746.       1 Byte     The actual head (or side) number; either 0 or 1.
  747.       1 Byte     The cylinder number as read.
  748.       1 Byte     The head or side number as read.
  749.       1 Byte     The sector number as read.
  750.       1 Byte     The length code as read.  Thus, a length code of 1
  751.         implies a sector length of 256 bytes; a code of 2,
  752.         512 bytes; 3, 1024 bytes, and so on...
  753.       2 Bytes     The length of the data read.    This  a     an  Intel-
  754.         style binary word;  that is, the least significant
  755.         byte of the number precedes the     most  significant
  756.         byte.  Thus, a length of 512 bytes (200 hex) would
  757.         appear    as 00 02.   If this quantity is zero,  the
  758.         sector data could not be read.
  759.  
  760.       Then follows the sector data.
  761.  
  762.  All sectors  occurring     on  a    side  will  be    grouped     together;
  763.  however,  they     will appear in the same order as they occurred on
  764.  the diskette.    Therefore,  if an 8 sector-per-track diskette were
  765.  scanned which had a physical interleave of 2:1, the sectors would
  766.  appear in the order 1,5,2,6,3,7,4,8.
  767.  
  768.  
  769.  Accessing External Drives
  770.  
  771.  In  its  normal  operating  mode,  ANADISK uses BIOS interrupt 11
  772.  (hex) to determine the number of diskette drives attached to  the
  773.  computer.    The  ROM BIOS gets this information from the mother-
  774.  board DIP switches (on PC's and XT's), or from the CMOS RAM writ-
  775.  ten by the SETUP program (on AT's).   If a  drive  has  been  in-
  776.  stalled  which     is  not  indicated  by     either of these settings,
  777.  
  778.  
  779.  
  780.                   Page 11
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  ANADISK will need to be told about the total number  of  diskette
  788.  drives     that are actually installed.    This is done by specifying
  789.  the number of drives on the ANADISK command line.  For example,
  790.  
  791.         ANADISK 4
  792.  
  793.  indicates a four-drive system is present.   ANADISK will refer to
  794.  these drives as 0:, 1:, 2: and 3:.
  795.  
  796.  
  797.  Notes on Media Types
  798.  
  799.  ANADISK  contains  code  to recognize single density (FM encoded)
  800.  diskettes if the host diskette controller supports that facility.
  801.  The notation "FM",  rather than "MFM" will appear in the  GENERAL
  802.  INFORMATION window.   All operations (read, write and format) are
  803.  supported.
  804.  
  805.  Additional code has been incorporated in Version 1.31 to  provide
  806.  support  for ATARI ST 3.5" diskettes.   Strictly speaking,  these
  807.  are not DOS diskettes,     but their structure is close  enough  for
  808.  them to be treated as such.
  809.  
  810.  High-density  modes  (1.2Mbyte 5.25" and 1.44Mbyte 3.5") are sup-
  811.  ported only on AT-class computers and Personal System/2 models 50
  812.  and above.
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  Some  of  the    terms  used  in     this  document     are   proprietary
  832.  trademarks of one or more of the following:
  833.  
  834.       International  Business Machines - IBM,  PS/2,  Personal
  835.       System/2, PC AT.    Microsoft - MS-DOS
  836.  
  837.  
  838.  
  839.  
  840.                   Page 12
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.               SYDEX SHAREWARE
  848.  
  849.       CON->FORMAT - Concurrent    "background"  diskette  formatter.
  850.       Features     "pop-up"  operation  and  "hot  key"  activation.
  851.       You've got to see it to believe.   Supports all current  DOS
  852.       formats. $15.00 ($50.00 site) registration fee.
  853.  
  854.       22DISK - Transfer files,    format, examine and erase files on
  855.       "foreign" CP/M diskettes on your PC.   Includes tips on sup-
  856.       porting  8"  and  5.25" single-density diskettes.   Contains
  857.       definitions for over 200 different formats.   $15.00 ($40.00
  858.       site) registration fee.
  859.  
  860.       22NICE  -     A  CP/M 2.2 emulation package.      Supports the NEC
  861.       V-series chips or performs emulation by  software     for  both
  862.       the  8080     and Z80 processors.   Includes terminal emulation
  863.       and diskette handling for common    CP/M  systems.      Includes
  864.       22DISK.  $30.00 ($75.00 site) registration fee.
  865.  
  866.       ANADISK  -  The compleat diskette utility.   Nothing like it
  867.       anywhere else;  scan,  edit,  repair and copy just about any
  868.       kind of diskette.     $15.00 ($50.00 site)  registration fee.
  869.  
  870.       TELEDISK - Turn any diskette into a compressed data file and
  871.       vice-versa.  Allows you to send and receive entire diskettes
  872.       via modem.  Even works with some "copy-protected" diskettes.
  873.       $20.00 ($65.00 site) registration fee.
  874.  
  875.       COPYQM - Cheap diskette duplicator.  Format, copy and verify
  876.       multiple    diskettes  from     a single master.   Implements "no
  877.       keyboard" interaction mode and drive "round  robin"  servic-
  878.       ing.    Supports    all standard DOS formats.   $15.00 ($50.00
  879.       site) registration fee.
  880.  
  881.       FORMATQM - Mass diskette formatter - format a  box  of  dis-
  882.       kettes at a single sitting.  Implements "no keyboard" inter-
  883.       action mode and drive "round robin" servicing.  Supports all
  884.       standard    DOS  formats.     $10.00 ($40.00 site) registration
  885.       fee.
  886.  
  887.               RETAIL SOFTWARE
  888.  
  889.       SIM-CGA  4.2  -  Color  Graphics     Adapter   simulation    on
  890.       monochrome (Hercules-compatible) graphics-equipped machines.
  891.       Available     from better software retailers and distributed by
  892.       CSS, ABCO and American Software Distributors.
  893.  
  894.       SIM-EMS - Simulate Lotus/Intel/Microsoft Expanded Memory    on
  895.       PC-AT  class  machines.    Conforms to EMS 4.0 specification.
  896.       Distributed by CSS and ABCO.
  897.  
  898.  
  899.  
  900.                   Page 13
  901.