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

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!barsoom!barsoom!tih
  3. From: tih@barsoom.nhh.no (Tom Ivar Helbekkmo)
  4. Subject: Re: 2nd drive file ... (Actually wd ESDI problems)
  5. Message-ID: <tih.713684034@barsoom>
  6. Sender: news@barsoom.nhh.no (USENET News System)
  7. Organization: Norwegian School of Economics
  8. References: <Bsp5D6.B9p@obiwan.uucp> <165f2uINN6an@disaster.Germany.EU.net> <tih.713450893@barsoom> <193@asgard.mlb.dmt.csiro.au>
  9. Date: Thu, 13 Aug 1992 05:33:54 GMT
  10. Lines: 41
  11.  
  12. mjj@mlb.dmt.csiro.au (Murray Jensen) writes:
  13.  
  14. >The area bad144 uses is at the end of *partition C*. It is supposed to use
  15. >only the last track + 126 sectors, but since you usually want filesystems
  16. >to be whole numbers of cylinders you might as well leave the whole last
  17. >cylinder free. The distributed disktab says you should leave 5 cylinders
  18. >for bad sector stuff, but after looking at this a bit I decided it was
  19. >wrong - can someone who knows for sure please comment?
  20.  
  21. You've got it right -- the last track plus the last 126 sectors before
  22. that last track.  In practice, you just leave out the minimal number
  23. of whole cylinders that will leave you with at least that many sectors
  24. unused.
  25.  
  26. >My guess is that the BSD filesystem sector clustering code, which groups
  27. >sectors together to form larger "logical blocks" (I was using 4096 byte
  28. >logical blocks i.e. 8 sectors, in my filesystems - other people use 8192)
  29. >is somehow avoiding the bad144 bad sector forwarding mechanism when it
  30. >does the multiple sector read (or write).
  31.  
  32. Right again -- the bad sector handling code doesn't handle bad sectors
  33. in any but the first of a multiple-sector I/O operation.  I'm already
  34. working on the wd driver to make it correctly handle up to four disks
  35. on two controllers (well, really any number, but that's the practical
  36. limit on a PC), and I will be fixing the bad sector handling too while
  37. I'm at it.  I just need to find and fix one timing and/or reentrancy
  38. problem that shows up when wdopen() calls readdisklabel().
  39.  
  40. For those who have reported lockups and other errors when trying to
  41. enable badsect on the second drive, while it works fine on the first,
  42. one thing to try is to make sure the disks are not fsck'ed at the
  43. same time from /etc/rc.  That is, change the call to fsck in there
  44. from "fsck -p" to "fsck -p -l 1" (I *think* it was "-l", anyway, you
  45. want the option that limits the number of simultaneous checks.  For
  46. some controllers, this will work around the timing/reentrancy bug in
  47. the driver.  Meanwhile, I'm still working on it...
  48.  
  49. -tih
  50. --
  51. Tom Ivar Helbekkmo, NHH, Bergen, Norway.  Telephone: +47-5-959205
  52. Postmaster for domain nhh.no.   Internet mail: tih@barsoom.nhh.no
  53.