home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / utility / disk / undelete / undel.doc < prev    next >
Text File  |  1993-01-31  |  3KB  |  66 lines

  1.  
  2.                  undel   -- a file undelete program     This version Jan 93
  3.                  ==================================
  4.  
  5. This program recovers (usually) files that have been accidentally deleted.
  6. I've tried to make it as easy to use as possible:
  7.         1. Select the file you want to undelete from the initial file selector.
  8.            The deleted files are shown with the first letter of their name
  9.            replaced by a sigma character, ie "σ". (Don't alter this).
  10.         2. If undel thinks it can recover the file for you, it shows another
  11.            file selector for you to enter the name of a file to contain a copy
  12.            of your original (deleted) file. It's best if you save this copy
  13.            to another disk.
  14.         3. Check the copy to see if it is ok. There are special cases when
  15.            UNDEL fails (see below). Also saving new data to the disk may
  16.            overwrite your deleted file.
  17.  
  18.  
  19.                          --- DISCLAIMER ---
  20.  
  21. This is public domain software provided to you by various authors and
  22. distributers with no guarantee at all.  You may use this software only
  23. if you take absolute responsibility for all consequences of its use.
  24.  
  25.  
  26.                        --- DESCRIPTION ---
  27.  
  28. You don't need to know about file clusters or the disk structure to use
  29. this program, but here's a quick outline of what goes on.
  30.  
  31. Formatting a disk divides it up into lots of storage areas called clusters,
  32. and creates a File Allocation Table to record which clusters contain a
  33. file's data.
  34. Saving a file to the disk involves writing 3 separate pieces of information:
  35.         1. Writing the file contents into clusters somewhere on the disk.
  36.         2. Writing a directory entry. This contains the file name, size, etc.
  37.            and most importantly where the first cluster of the file is.
  38.         3. Updating the File Allocation Table (FAT). This is an index of which
  39.            clusters contain the file, and which are free.
  40.  
  41. When a file is deleted, the first letter of the directory entry is set to
  42. hex E5 which is displayed as "σ", and the FAT entries are cleared. This means
  43. the clusters containing the file contents become available for reuse, but
  44. THE FILE CONTENTS REMAIN INTACT.  (Also if new files are saved to the disk at
  45. this stage, your deleted file could easily be overwritten).
  46.  
  47. So, we can recover most of the directory entry, but recovering the file
  48. contents is more difficult because we don't know where to look.
  49.  
  50. From the directory entry UNDEL finds where the first cluster is, and uses the
  51. file size to determine how many clusters to find.
  52. Starting from the first cluster, UNDEL finds as many free clusters as it needs
  53. to create a file of the correct size. This explains why UNDEL sometimes
  54. doesn't work: in special cases it might find a cluster that didn't
  55. belong to the original file, or some of the file's clusters might be somewhere
  56. else on the disk ...
  57.  
  58. May you never need to use this program.
  59.  
  60. Trevor Blight
  61. 9 Bridge Terrace
  62. St Ives PE17 4ER
  63. UK
  64.  
  65. -------------------------------------------------------------------------
  66.