home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4022 next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.3 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!bs
  2. From: bs@Germany.EU.net (Bernard Steiner)
  3. Newsgroups: comp.unix.bsd
  4. Subject: wd1 bad144 woes & workaround
  5. Date: 12 Aug 1992 12:01:25 GMT
  6. Organization: EUnet Backbone, Dortmund, Germany
  7. Lines: 45
  8. Distribution: world
  9. Message-ID: <16auimINNal@disaster.Germany.EU.net>
  10. NNTP-Posting-Host: walhalla.germany.eu.net
  11.  
  12. Folks,
  13. having installed Tom's patches to the wd & fd driver, I got another
  14. (ESDI) disk hooked up to my system. Since the second drive has rather a lot
  15. of bad blocks I used a hacked wd driver and "dd if=/dev/wd1d of=/dev/null"
  16. to detect them and then bad144'ed them away.
  17.  
  18. I also moved /usr/src and /usr/local to the second drive and added a second
  19. swap partition as wd1b. I started running METAFONT yesterday but then
  20. interrupted it (takes a lot of time, doesn't it :).
  21.  
  22. This morning, on reboot, I got something like
  23. swapon: wd1b: device not configured and mount complained in a very similar
  24. fashion.
  25.  
  26. Hmpf.
  27.  
  28. I re-disklabled wd1 and re-redisklabled it so the disklabel was the original
  29. one again. At that point, fsck on wd1h reported corrupted directories
  30. and asked whether or not to repair. I didn't let it; instead I got the
  31. old bad144 information from wd1 and used "bad144 wd1 0 <list of bad sectors>"
  32. and then everything seemed to be back to normal.
  33.  
  34. Questions:
  35. a) why does this happen at all ?
  36. b) is there a fix ? /* as opposed to my workaround */
  37. c) what *exactly* does the "packid" argument to bad144 do ? Ok, so it's
  38.    supposed to be 0,1,2 or 3 - but what does it do ? Does it have to be
  39.    different from the one to wd0 ?
  40. d) (repeat of earlier article) is there a magic flag to disklabel that makes
  41.    the kernel print out bad sector information for a specific drive ?
  42.  
  43. BTW it's rather useful to save the bad144 information and the disklabel in a
  44. safe place *before* something nasty happens to your second drive.
  45. In particular, keeping that information on the second drive is *not* a good
  46. idea ;-)
  47.  
  48. Chers,
  49.     Bernard
  50. -- 
  51. Bernard Steiner, FB Informatik/IRB, Uni Dortmund,    vox +49 231 755 2444
  52. Postfach 500500, D-W-4600 Dortmund 50, Germany       fax +49 231 755 2386
  53. bs@Germany.EU.net          ...!uunet!unido!bs
  54.  
  55. *III  And they gave it Instructions, but knew it not. } From The Book of Nome,
  56. *IV   It is, they said, a Box with a Funny Voice.     }      Mezzanine v.III-IV
  57.