home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 24 DOS / 24-DOS.zip / ibm.zip / RECOVER.DOC < prev    next >
Text File  |  1995-04-26  |  8KB  |  178 lines

  1.  
  2.                                 Disk Recovery
  3.                                 =============
  4.  
  5.      I sincerely hope that you will never need to use the information in
  6.      this file, but include it just in case any mishaps occur whilst
  7.      SAFEPACK is running.
  8.  
  9.      Due to the way that SAFEPACK is written, disruption of the program
  10.      at any stage should not affect the integrity of your data, but may
  11.      cause minor disruption to the organisation of the disk, such that
  12.      it should be tidied up before further use.  This file contains
  13.      information on how do perform this tidying, and an explanation of
  14.      the error messages that may be encountered.
  15.  
  16.      In the vast majority of cases of interruption to the program,
  17.      including all cases of user break-in with ctrl-break, the disk
  18.      should remain in a perfectly acceptable, usable condition, causing
  19.      DOS no problems.  It may well be even more fragmented than before,
  20.      but that shouldn't cause any problems that another run of SAFEPACK
  21.      wouldn't cure!  In rare cases, however, if the interruption occurs
  22.      while the directories are being written, two types of 'error' will
  23.      be noticed by CHKDSK, namely:
  24.  
  25.      1) Invalid sub-directory
  26.      ------------------------
  27.  
  28.      Despite sounding serious, the form of this error left by SAFEPACK
  29.      is actually very minor, and refers to the fact that the .. entry at
  30.      the start of a sub-directory may not point correctly to the parent
  31.      directory.  Since the parent's entry pointing at the sub-directory
  32.      is correct, CHKDSK can fix this fault easily and automatically if
  33.      run with the /F switch, i.e. CHKDSK drive: /F.
  34.  
  35.      2) 'Lost' clusters
  36.      ------------------
  37.  
  38.      This error can occur as moved clusters at the start of a file are
  39.      allocated together into a chain before the directory entry pointing
  40.      at them is updated, and the originals are only de-allocated after
  41.      the directory is updated.  If, therefore, the defragmentation is
  42.      interrupted in the middle of this process, then one or other of the
  43.      chains will be reported by CHKDSK as 'lost'.  As the contents of
  44.      the chains are identical, either chain is equally valid, and the
  45.      'lost' clusters may safely be freed, making their disk space
  46.      available for re-use.  This is most simply accomplished by running
  47.      CHKDSK with the /F switch, and then answering NO to the question
  48.      about whether to convert lost clusters to files.  Should you have
  49.      any worries about doing this, however, you can easily answer YES to
  50.      this question then copy the files of the form FILExxxx.CHK (all in
  51.      root directory), to another disk before deleting them.
  52.  
  53.      If other errors are reported by CHKDSK, it would be unwise to trust
  54.      the data on the disk, and it is probably best to re-format the disk
  55.      and restore the backup you took before running SAFEPACK.  If any
  56.      such problems occur, please contact the author, with as much detail
  57.      as possible about the circumstances.
  58.  
  59.               --- SAFEPACK Recovery Information --- Page 1 ---
  60.  
  61.  
  62.  
  63.      SAFEPACK Error Messages
  64.      =======================
  65.  
  66.      The majority of SAFEPACK error messages are self-explanatory, and
  67.      most refer to user errors on the command-line such as requesting
  68.      defragmentation of a non-existent disk.  Some, however, require
  69.      more explanation.
  70.  
  71.  
  72.      Multi-tasking environment XXX or FASTOPEN detected
  73.      --------------------------------------------------
  74.  
  75.      It is not safe to defragment a disk from within a multi-tasking
  76.      environment such as Windows, and SAFEPACK contains checks for the
  77.      more common of such environments.  If you encounter this message
  78.      and are running a multi-tasking environment, terminate the multi-
  79.      tasker before re-running SAFEPACK.  If FASTOPEN is found, then it
  80.      is necessary to reboot after removing FASTOPEN from the CONFIG.SYS
  81.      or AUTOEXEC.BAT file. If you really wish to defragment under such
  82.      circumstances and understand what you are doing, or if this error
  83.      occurs without obvious reason, then the checks may be by-passed
  84.      with the /B option.  If this error is reported, no writing to the
  85.      disk will have occurred.
  86.  
  87.  
  88.      Error in the File Allocation Table
  89.      ----------------------------------
  90.  
  91.      SAFEPACK performs a stringent test of the disk's file structure
  92.      before starting to defragment it, and will abort with this message
  93.      if any errors are found, however minor.  Most common errors may be
  94.      fixed by running CHKDSK with the /F switch  - see the DOS manual
  95.      for details.  If this error is reported, no writing to the disk
  96.      will have occurred.
  97.  
  98.  
  99.      Insufficient memory for the program to continue
  100.      -----------------------------------------------
  101.  
  102.      This error is most likely to occur if there are more than about
  103.      8000 files on the disk for each Mbyte of available RAM.  Under some
  104.      circumstances, it may be possible to run SAFEPACK again with the
  105.      same options, with success.  The disk should remain fully usable
  106.      after this error, which is a 'controlled exit'.
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.               --- SAFEPACK Recovery Information --- Page 2 ---
  119.  
  120.      Disk read/write errors
  121.      ----------------------
  122.  
  123.      These may be reported under a variety of names such as write
  124.      protect, drive not ready, data error (CRC), seek error, sector not
  125.      found, write fault, read fault, or general failure. If any of these
  126.      errors occur, then there is likely to be a hardware or magnetic
  127.      surface error on the disk concerned, and SAFEPACK will ask whether
  128.      to retry or to abort - the normal ignore option is not provided, as
  129.      misreads of directory sectors could have disastrous results.  If
  130.      you have a utility to check &/or repair bad sectors then this
  131.      should be used, but otherwise it may be best to reformat the disk,
  132.      and restore your backup.  Note that errors of this type are not
  133.      normally detected by CHKDSK.
  134.  
  135.  
  136.      SAFEPACK Internal errors
  137.      ------------------------
  138.  
  139.      SAFEPACK contains several internal error checks to ensure that it
  140.      is functioning correctly, and if any of these fail then it aborts,
  141.      quoting an error number.  These errors should never be seen by
  142.      users, but can be produced if another program is accessing the disk
  143.      at the same time as SAFEPACK, as can occur if it is used under a
  144.      multi-tasking environment with the /B option.  Should an internal
  145.      error be reported, please check your disk with CHKDSK, and contact
  146.      the author, providing as much detail as possible about the
  147.      circumstances. 
  148.  
  149.      Register Dumps, e.g. with ``General Protection Fault''
  150.      ---------------------------------------------------
  151.  
  152.      As SAFEPACK Version 2.1 runs as a protected mode program,
  153.      protection faults could occur if it attempts to access invalid
  154.      memory locations.  Like the internal errors above, this type of
  155.      error shouldn't occur, but if it does, then I would much appreciate
  156.      full details, and will do my utmost to trace the problem.
  157.  
  158.  
  159.      Conclusion
  160.      ==========
  161.  
  162.      I hope that this file does not scare anyone from using SAFEPACK, as
  163.      I have yet to know it fail, but only a fool would believe himself
  164.      to have created a perfect program, and I believe that an honest
  165.      discussion of potential problems, however unlikely, is better than
  166.      pretending that they do not exist. 
  167.  
  168.      If nothing else, I hope that this document will persuade users to
  169.      perform a full backup of their disk before running ANY
  170.      defragmenter, especially one without SAFEPACK's safety features!
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.               --- SAFEPACK Recovery Information --- Page 3 ---
  178.