home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / misc / 6728 < prev    next >
Encoding:
Text File  |  1992-12-28  |  5.2 KB  |  111 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!phoenix.Princeton.EDU!bathurst
  3. From: bathurst@phoenix.Princeton.EDU (Bruce Bathurst)
  4. Subject: Re: What to do with file0000.chk?
  5. Message-ID: <1992Dec28.061711.25696@Princeton.EDU>
  6. Originator: news@nimaster
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: phoenix.princeton.edu
  9. Organization: Princeton University
  10. References: <1992Dec14.194304.57170@ns1.cc.lehigh.edu> <EDWONG.92Dec19132329@acs.nntp-read.bu.edu>
  11. Date: Mon, 28 Dec 1992 06:17:11 GMT
  12. Lines: 97
  13.  
  14. In article <EDWONG.92Dec19132329@acs.nntp-read.bu.edu> edwong@acs.nntp-read.bu.edu (Edward Wong) writes:
  15. >>>>>> On 14 Dec 92 19:43:04 GMT, ky04@ns1.cc.lehigh.edu (KUN YU) said:
  16.  
  17. [SNIP]
  18. >->  the machine. CHKDSK showed lost chains, I used chkdsk/f to recover 
  19. >-> them into files. But when I type file0000.chk, sometimes I can see some
  20. >-> binary codes, sometmes I got "error reading drive C" message. No bad sector
  21. >-> is show on chkdsk.
  22.  
  23. >-> Does that mean file0000.chk is on bad sectors? If true, would  keeping the 
  24. >-> junk file there prevent getting into the bad sectors?
  25.  
  26. >I don't think there is any use for the file that is recovered by chkdsk.
  27. >When the computer checks for data consistency, these data appear at places
  28. >where they shouldn't.  So, the computer has to get rid of it.  the
  29. >file????.chk just link all the problem blocks together and name it
  30. >file????.chk, you can do whatever you want with it.  I would just delete
  31. >it.  But it's up to you, some people may find it useful in some way.
  32.  
  33. If it's huge, it probably is the WINDOWS swap file, and you needn't
  34. worry.  Yes, you're right that file0000.chk will protect a bad sector.
  35. This is too much of a coincidence, though, unless someone tripped over
  36. the power cord.  Many error messages are spurious and just mean "I'm
  37. not well!".  I ad backup repeatedly abort on one bad sector, and
  38. CHKDSK and the Norton Utiities repeatedly reported nothing wrong.  One
  39. surface scanner paused at the sector, but moved on after it passed an
  40. acceptably small number of read attempts.  I had to run the scanner all
  41. night to flag the block.  Can't we have more professional tools?
  42.  
  43. My suggestion of what to do with FILE0000.CHK is to try to identify
  44. each lost piece and repair the file.  If more than one file is
  45. damaged, it may not be worth the effort to reconstruct the files; it
  46. requires a sector editor such as the Norton Utility Editor, some
  47. understanding of disks, and time.
  48.  
  49. You have written the lost pieces on the disk as separate files for two
  50. reasons: you must identify the original file they belong to, and you
  51. must try and reattach them by using the COPY command.
  52.  
  53. The Procedure
  54.  
  55. 1. Identify the original files that FILE0000.CHK belongs to.
  56.  
  57. Today, virtually every file is binary and cannot be read with "type",
  58. "edlin", or "edit".  Microsoft apparently expects every homeowner
  59. (with a computer on his or her desk) to dump the files in hexadecimal
  60. with the DEBUG command.  "Type" is potentially dangerous, and I
  61. suggest you consider investing $15 in Buerg's LIST program.
  62.  
  63. "It's my novel!"
  64.  
  65. 2. If CHKDSK wrote several files, all fragments of one original file,
  66. place the several files in the proper order.  If you defragment your
  67. disk daily, you will have few files to examine.  If you have only one
  68. lost "chain of clusters" (contiguous pieces), repair is a snap.
  69.  
  70. "FILE0000.CHK  FILE0002.CHK  FILE0001.CHK"
  71.  
  72.  
  73. 3. Repair your novel by appending these binary files in their correct
  74. order.
  75.  
  76. "Copy NOVEL.WP  BLIP.WP"
  77. "Copy BLIP.WP + FILE0000.CHK + FILE0002.CHK + FILE0001.CHK  OHPLEASE.WP"
  78.  
  79.  
  80. 4. Try and load the resulting file into  your application and check it
  81. for accuracy.  If it won't load, or pieces are missing, return to step 2.
  82.  
  83. To open a file means to copy the instructions for finding its pieces
  84. on the disk into memory and update these instructions in memory only,
  85. though the data is written to the disk.  Closing a file means writing
  86. the instructions to the disk.  One power blip when a file is open and
  87. the instructions for finding everything written since the file was
  88. last closed is lost, though the data is on disk.
  89.  
  90. FASTOPEN is an instruction killer, as is BREAK ON and "Abort, Retry,
  91. Fail?"  BREAK ON, in addition, kills data being written to disk.
  92.  
  93. P.S. I adjust friends' PC's so CHKDSK is run during a SHUTDOWN.BAT
  94. command, and any orphaned clusters are saved to a directory called L&F
  95. (after UNIX's lostandfound).  Sometimes this requires moving the files
  96. from \root with a MOVE command that doesn't change the file's position
  97. on the disk.  The AUTOEXEC reports the number of file fragments stored
  98. in \L&F, and runs a fast disk defragmenter, such as "the DOG", if no
  99. unresolved fragments are present. In particular, the SHUDOWN.BAT
  100. flushes the cache (if not write-through), closes all files with an
  101. equivalent of the UNIX sync command, runs CHKDSK, and parks the hard
  102. drive (I'm old-fashioned).  The press of a key pops one back to the
  103. home directory (never \root, the directory most sensitive to damage).
  104. Preventive medicine is the best cure.
  105.  
  106. Bruce (Gypsy Scholar)
  107. -- 
  108. Department of Geological and Geophysical Sciences
  109. Princeton University, Princeton, NJ 08544
  110. bathurst@phoenix.princeton.edu bathurst@pucc.bitnet !princeton!phoenix!bathurst
  111.