home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12379 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.9 KB

  1. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!olivea!charnel!sifon!clouso.crim.ca!hobbit.ireq.hydro.qc.ca!beaurega
  2. From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Unerase - how does it wor
  5. Message-ID: <C1Bryo.69w@ireq.hydro.qc.ca>
  6. Date: 23 Jan 93 21:06:23 GMT
  7. References: <C111JG.H5q@ireq.hydro.qc.ca> <markus.403.727387680@clement.info.umoncton.ca> <dmurdoch.321.727411814@mast.queensu.ca>
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  10. Lines: 45
  11.  
  12. In article <dmurdoch.321.727411814@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  13. >In article <markus.403.727387680@clement.info.umoncton.ca> markus@clement.info.umoncton.ca (PAULIN MARC) writes:
  14. >>In article <C111JG.H5q@ireq.hydro.qc.ca> beaurega@ireq.hydro.qc.ca (Denis
  15. >>Beauregard) writes:
  16. >
  17. >>>Now, about the poster question.  How does UNERASE to retrieve the chain?
  18. >>>It guesses.  A sequential written file (i.e. after saving a text file)
  19. >>>will use the sequential available clusters and the "erased" file entry
  20. >>>still contains the 1st FAT entry position.  
  21. >
  22. >>        Es-tu sur?  It guesses?  You mean it guesses the file position on 
  23. >>the disk?  I doubt it.  What if the file is fragmented?  That's not 
  24. >>sequential.  
  25. >
  26. >Denis was right.  It's easy enough to prove it to yourself:  create two 
  27. >badly fragmented files by writing a program that writes lines to them 
  28. >alternately.  Make sure they're both big, say 100K.  Erase both, and then 
  29. >see if they can be unerased.  Norton will attempt it, but will get them 
  30. >all mixed up.
  31. >
  32. >Your only hope is if you've loaded one of the unerase-helper 
  33. >TSRs or some other program that makes a separate record of erasures
  34. >or of the FAT.
  35. >
  36. >Duncan Murdoch
  37.  
  38. It is not the only hope.  If the erased file is structured and the
  39. unerase program is intelligent enough, it can guess and improves on
  40. probability of a full unerase.  For example, a dBASE file is made of
  41. columns in which most data is written from the left side of columns.
  42. Using this, a unerase file for a dBASE file can more likely select
  43. the right next cluster.  However, I am not sure if such programs exists.
  44. Don't forget a database will often grow randomly.  In other words,
  45. the "next cluster" may be located before the previous one i.e. file
  46. can be at location 100, 102, 101 while a sequentially written file
  47. would be at 100, 101, 102 or 100, 105, 121.  I took the dBASE example
  48. because it is a common format, usually for a large file, and 
  49. more than the average used by computer illiterate, thus a likely
  50. candidate for an "intelligent" unerase.
  51.  
  52. -- 
  53.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  54.  /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
  55. J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
  56. \_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie
  57.