home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4096 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!crash!fpm
  3. From: fpm@crash.cts.com (Frank Maclachlan)
  4. Subject: 386BSD-0.1 bad144 bad sector handling
  5. Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
  6. Date: 13 Aug 92 10:22:22 PDT
  7. Message-ID: <1992Aug13.102222.20793@crash>
  8. Followup-To: fpm@crash.cts.com (Frank P. MacLachlan)
  9. Summary: It works w/ explanation
  10. Keywords: bad144, defects, ESDI
  11. Sender: fpm@crash.cts.com (Frank P. MacLachlan)
  12. Lines: 34
  13.  
  14. Greetings:
  15.  
  16. Bad144 bad sector handling in the 386BSD-0.1 wd driver is not
  17. broken if you take certain precautions.  My experience is with
  18. a Western Digital WD1007v-se2 ESDI controller and an Imprimus
  19. (aka CDC) 94166-182 drive.
  20.  
  21. When you format the drive, make sure that you mark the defects.
  22. This guarantees that any attempt to read or write a sector
  23. containing a defect will return an error.  The WD1007v on-board
  24. format utility allows defects to be automatically marked from
  25. the the drive's defect list.
  26.  
  27. The wd driver, as noted by others here, checks only if the first
  28. sector in a transfer is in the bad144 table.  If it is, a replace-
  29. ment sector is used.  But what about sectors 2 and beyond in a
  30. mult-sector transfer?  Consider a multi-sector transfer where
  31. one of the sectors other than the first sector is in the bad144
  32. table and has been properly marked as bad.  The driver scans the
  33. bad144 table, doesn't find the sector and a multi-sector transfer
  34. with no sector replacement is started.  The driver transfers the
  35. sectors up to the sector containing the defect and then gets an 
  36. error on the sector containing the defect (note that the sector
  37. has been marked and will *always* return an error).  The driver
  38. sees the error in wdintr and, as part of its error recovery logic,
  39. restarts the transfer at the sector containing the error by calling
  40. wdstart with a single sector transfer request.  The bad sector is
  41. the first (and only) sector in the transfer and is correctly replaced
  42. by the bad144 table lookup code.
  43.  
  44. --
  45. UUCP: {hplabs!hp-sdd ucsd nosc}!crash!fpm
  46. ARPA: crash!fpm@nosc.mil
  47. INET: fpm@crash.cts.com
  48.