home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / dskutl / disk-fix.lbr / FIX.DZC / FIX.DOC
Encoding:
Text File  |  1987-03-07  |  7.4 KB  |  173 lines

  1. FIX.DOC
  2.  
  3. Fix is a super routine which gives you a lot of direct control over your
  4. disks.  You can, for instance recover a file you have erased.
  5.  
  6. And, you can specifically create files that cannot be accessed from the
  7. keyboard or that cannot be display on the screen.
  8.  
  9. To use the Fix help command (good documentation), just type HELP(COMMAND
  10. NAME)
  11.  
  12. For instance;  HELP(RECOVER ERASED FILES)<CR> or HELP(DIRECTORY)
  13.  
  14. and so on;
  15.  
  16. HELP, by itself display the list of commands.
  17.  
  18. Enjoy this great program.
  19.  
  20.  Commands are:
  21.  
  22. BIOS Select Drive
  23. Block
  24. Directory
  25. Disk Parameters
  26. Erased File Directory
  27. Finished
  28. Fix Bad Spots
  29. Help
  30. Mark Bad Spot
  31. Recover Erased File
  32. Reset Drive
  33. Select Drive
  34. Track and Sector
  35. Turn Off/On Display of Bad Filename
  36. Verify
  37. What Files
  38. Where is File
  39.  
  40. HELP(command)
  41.     Displays all commands or one command in detail.  For instance,
  42.     typing "help" would give you a list of all the commands.  Typing
  43.     "help(list)" would give you a brief description of what the
  44.     command "list" does.  As with the rest of the commands, HELP can
  45.     can be abbreviated (e.g. he, hel, he(di, h(fix), etc.)
  46.  
  47. BIOS SELECT DRIVE(drive,[track,sector])
  48.     Selects drive <drive> directly through the BIOS.  The reason for
  49.     having this function is so you can select a disk with a bad
  50.     directory.  If you use this routine to select the disk, all that will
  51.     happen is the drive will get selected.  CP/M will not know that you
  52.     have selected a new drive, so don't be surprised if DIRECTORY doesn't
  53.     give correct answers.  [track,sector] is optional.  If present,
  54.     track <track> sector <sector> will be read.  Display of bad file
  55.     names is automatically turned off by this command.  Examples:
  56.     BIO sel(B), b s(c,3,21), etc.
  57.  
  58. BLOCK(block number)
  59.     Gives the file name in which the block <block number> occurs.
  60.     Examples: block(15), bl(243, b(10, etc.
  61.  
  62. DIRECTORY
  63.     Gives a sorted directory listing of the currently selected drive.
  64.     This routine will NOT work properly with disks that have more than 512
  65.     directory entries.
  66.  
  67. DISK PARAMETERS
  68.     Displays the disk parameters of the currently selected disk.
  69.     For 1.4 systems, the following parameters are displayed:
  70.     sectors/track, block shift factor, block mask, number of blocks,
  71.     capacity of disk, number of directory entries, directory block
  72.     allocation, and the number of tracks reserved for the operating
  73.     system.  For 2.2 systems, the extent mask and number of checked
  74.     directory entries are also displayed.
  75.  
  76. ERASED FILE DIRECTORY
  77.     Same is DIRECTORY command, but the files displayed are files that
  78.     have been erased.  These files may be recovered using the RECOVER
  79.     ERASED FILE command.
  80.  
  81. FINISHED
  82.     Return to CP/M.
  83.  
  84. FIX BAD SPOTS
  85.     Fix does two things: (1) Displays the track, sector, block and file
  86.     (if any) that contains the bad spot and asks if it should attempt
  87.     to fix it (by reading the sector, writing the sector, and reading it
  88.     again).  (2) Asks if the user wishes to place the bad block a bad spot
  89.     file.  The user may try to fix a sector as many times as he likes
  90.     (through yes or no questions).  *** IMPORTANT ***  The VERIFY command
  91.     must be called before FIX is called.  VERIFY puts all the badspots in
  92.     an array that is in turn used by FIX.  To get back to the main
  93.     program without going through all the badspots, the user can must
  94.     hit the Escape key (ESC) followed by a carriage return when the
  95.     computer asks 'Try to fix it?'
  96.  
  97. MARK BAD SPOT(track,sector)
  98.     Adds the block corresponding to track <track> and sector <sector>
  99.     in BADSPOT.!!! file.  If bad spot file doesn't exist, one is created.
  100.     This command is used when there is a known bad spot on the disk that
  101.     for some reason the VERIFY command doesn't find.  Examples:
  102.     MARK BAD(45,6), mark(23,23), m b s(3,16, etc.
  103.  
  104. RECOVER ERASED FILE(filename)
  105.     This function attempts to recover the erased file given by <filename>.
  106.     A check is made to see if any of the erased file's blocks have been
  107.     re-allocated.  Re-allocation of a block means that a piece of the file
  108.     has been destroyed.  The file will be recovered anyway.
  109.     Examples: RECOVER(D.COM), recov(fix.spl, recov(junk.???), etc.
  110.  
  111. RESET DRIVE(drive)
  112.     This function resets the disk system and selects drive <drive>.
  113.     This enables you to change disks without having to reboot.  A
  114.     typical use for this routine would be if you were verifying
  115.     a bunch of disks and fixing all the errors on them.  Examples:
  116.     reset drive(b), r d(p), reset(A, etc.
  117.  
  118. SELECT DRIVE(drive)
  119.     This selects the disk drive <drive> to which all subsequent disk
  120.     accesses will take place on this drive.  The default drive is whichever
  121.     drive is logged in when this program is run.  Examples: s d(b), sel(c,
  122.     s(a, etc.
  123.  
  124. TRACK AND SECTOR(track,sector)
  125.     Displays the file name of the file containing the track <track>
  126.     and sector <sector>.  Examples: t a s(12,23), t(76,5, t a(34,15,
  127.     etc.
  128.  
  129. TURN OFF/ON DISPLAY OF BAD FILENAME(switch)
  130.     This function is here so that you can control whether or not FIX
  131.     will display the name of a bad file when it encounters a bad sector
  132.     while doing either VERIFY or FIX BAD SPOTS.  When the directory
  133.     of the disk you're checking has a bad sector in it, you should
  134.     turn the display off, otherwise, leave it on.  <switch> is either
  135.     'off' or 'on' (upper or lower case).  The default is ON.  Examples:
  136.     T O D(OFF), T O(off, t off/on(ON, t o(on, etc.
  137.  
  138. >VERIFY(initial track,final track)
  139.     This routine reads every track between the initial track and the
  140.     final track.  If neither the initial track nor the final track are
  141.     specified, all the data from the directory track to the last track is
  142.     verified.  Unless explicitly asked for, VERIFY will not attempt to
  143.     read the system tracks (tracks 0 and 1 usually).  This is because
  144.     track 0 is usually single density and if the rest of the disk is
  145.     double density, FIX thinks that ALL the tracks are double density.
  146.     The current track is always displayed on the screen.  If an error is
  147.     found, it displays the track, sector, and block in which the error
  148.     occurred, and the file name (if any) in which the error exists.
  149.     These are stored in an array that is later used by FIX BAD SPOTS.
  150.     Hitting the Escape key (ESC) at any time will abort.  Examples:
  151.     ver(0,76), verify(45,55, v(34,34, v, verify, etc.
  152.  
  153. WHAT FILES(track,track)
  154.     This command displays the names of all the files that have data
  155.     between the two tracks specified.  Hitting the Escape key (ESC)
  156.     at an time will abort.  Examples: what f(10,11), w f(3,76,
  157.     w files(5,5), etc.
  158.  
  159. WHERE IS FILE(filename)
  160.     Displays all the track, sector, and block numbers that <filename>
  161.     occupies.  For instance, if the file FOO.BAR occupies all of block
  162.     2, the following might appear:
  163.     FOO.BAR: Track:  2, Sector: 20, Block:  2
  164.     FOO.BAR: Track:  2, Sector: 26, Block:  2
  165.     FOO.BAR: Track:  2, Sector:  6, Block:  2
  166.     FOO.BAR: Track:  2, Sector: 18, Block:  2
  167.     FOO.BAR: Track:  2, Sector: 24, Block:  2
  168.     FOO.BAR: Track:  2, Sector:  4, Block:  2
  169.     FOO.BAR: Track:  2, Sector: 10, Block:  2
  170.     Hitting the Escape key (ESC) at any time will abort.
  171.     Examples: w i f(hi.ho), w i(d.com, w i(badspot.!!!, etc.
  172.  
  173.