home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / system / 15585 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  3.9 KB

  1. Path: sparky!uunet!olivea!apple!ntg!dplatt
  2. From: dplatt@ntg.com (Dave Platt)
  3. Newsgroups: comp.sys.mac.system
  4. Subject: Re: File copy unsuccessful -- what to do?
  5. Message-ID: <1992Dec29.063750.8213@ntg.com>
  6. Date: 29 Dec 92 06:37:50 GMT
  7. References: <1992Dec27.214806.15452@klaava.Helsinki.FI> <1992Dec28.030856.25495@ntg.com> <1992Dec29.012747.28008@msc.cornell.edu>
  8. Organization: New Technologies Group, Inc.  Palo Alto CA
  9. Lines: 68
  10.  
  11. >My hard drive format util, APS power tools 2.6.4, can be coaxed to print
  12. >what it calls the "P" and "G" lists, which are lists of defects. What's the
  13. >difference between the two? 
  14.  
  15. "P" is the "primary" list - the set of defects which were identified at
  16. the factory when the drive was manufactured.
  17.  
  18. "G" is the "grown" list.  It consists of blocks which were identified as
  19. being bad after the drive was shipped.  There can be at least three ways
  20. that blocks are added to the "G" list - during low-level formatting-
  21. and-verification passes (if the block fails to verify), during normal
  22. operation (if the block cannot be read or written), and at user request
  23. (either by passing the block number as a parameter to the FORMAT
  24. command, or via the REASSIGN BLOCK command).
  25.  
  26. >                       Also it has a feature that will scan the hard
  27. >drive and remap bad sectors to good, without you having to reformat. This
  28. >feature has a lot of problems (chief among them that it only works about
  29. >half the time) but what does it actually do? 
  30.  
  31. Good question.  As far as I know there's no standard method for
  32. un-flawing a block with the disk in use.  The only standard method I've
  33. seen used is one where the program reads the G list, removes some or all
  34. of the blocks from that list, and then reformats the drive with FORMAT
  35. options which mean "Erase the existing G list and replace it by this one
  36. I'm giving you."
  37.  
  38. >                                        My guess is that there is a
  39. >list of bad blocks stored at the start of the disk and the disk driver
  40. >checks this list for every block it is asked to read/write. Is this
  41. >correct?
  42.  
  43. The drive controller itself does this, for all drives with embedded SCSI
  44. controllers (at least, all the ones I've used or heard about).  Most
  45. drives seem to keep a list of known defect positions in nonvolatile
  46. memory (in a reserved cylinder, or in NVRAM) and use this list to
  47. reassign the blocks during formatting.
  48.  
  49. It's quite common for a defective block to be "mapped out" by a
  50. technique known as sector slipping.  The entire track or cylinder
  51. containing the defect is reformatted "on the fly" (the data is copied
  52. safely out of the way first).  The defective sector isn't reformatted in
  53. the usual way... it's just overwritten with a code which means "Don't
  54. look here".  The subsequent sectors on the track (and, sometimes, the
  55. sectors on the rest of the cylinder) are reinitialized with new
  56. logical-block numbers (one less than they had before)... in effect, the
  57. sectors on that track or cylinder simply "slip" backwards in physical
  58. position.  The last sector on that track (or cylinder) "slips" into
  59. position in a spare-sector location which was reserved when the drive
  60. was originally formatted (the number of these spare sectors can usually
  61. be adjusted).
  62.  
  63. >And does anyone know of a formatting utility that WILL deal effectively
  64. >with bad blocks that develop on Syquests. I mean one that will not only
  65. >find them all, but will also tell you which files have been affected and
  66. >should be checked.
  67.  
  68. I'm quite happy with FWB's Hard Disk Toolkit for handling low-level
  69. defect management... it does surface tests (either with or without
  70. automatic block reassignment), lets you reassign blocks manually, and
  71. adjust the spare-sector reservation algorithms before formatting.  I
  72. don't think it IDs the affected files, though.
  73.  
  74.  
  75. -- 
  76. Dave Platt                                                VOICE: (415) 813-8917
  77.               Domain: dplatt@ntg.com      UUCP: ...netcomsv!ntg!dplatt
  78.  USNAIL: New Technologies Group Inc. 2470 Embarcardero Way, Palo Alto CA 94303
  79.