home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / hackers / 1668 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.0 KB  |  52 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!sci34hub!gary
  3. From: gary@sci34hub.sci.com (Gary Heston)
  4. Subject: Re: Attempted post
  5. Message-ID: <1992Nov12.174601.10980@sci34hub.sci.com>
  6. Reply-To: gary@sci34hub.sci.com (Gary Heston)
  7. Organization: SCI Systems, Inc., Huntsville, Al.
  8. References: <141238@lll-winken.LLNL.GOV>
  9. Date: Thu, 12 Nov 1992 17:46:01 GMT
  10. Approved: gary@sci.com
  11. Lines: 39
  12.  
  13. In article <141238@lll-winken.LLNL.GOV> sterne@dublin.llnl.gov (Philip Sterne) writes:
  14.  
  15. >ObHack:    Using dd to salvage as much as I could from a disk whose
  16. >          superblock was clobbered in a power outage. 
  17.  
  18. I had a similar situation arise once; the superblock on a systems' root
  19. drive developed a soft error. After fighting with it for a while (fsck 
  20. wouldn't work nothing could read the sector, etc.), I finally came up
  21. with a fairly nifty fix:
  22.  
  23.     Moved the damaged drive to the second position;
  24.  
  25.     Installed another drive of identical type (handy to have those
  26.         around!) in the first position;
  27.  
  28.     Did a core install onto the new drive;
  29.  
  30.     Used dd to read off the corresponding sector from the raw device
  31.         of the new drive, and write it to the damaged one.
  32.  
  33.     Poof! The superblock was now readable, but dirty.
  34.  
  35. Then, fsck would work; after a couple passes over the drive (on those 
  36. systems, I learned to run fsck until I got at least two consecutive
  37. error-free passes before believing it), I shut down, moved the old drive
  38. back to the first position, and it booted fine.
  39.  
  40. The system belonged to a documentation asshole (moved the system in his
  41. office to keep control over it, but put his printer in the lab so he
  42. wouldn't be bothered by the noise--I know not all doc people are like
  43. that), who, of course, hadn't backed it up in months. He was the kind
  44. that we celebrated his departure....
  45.  
  46.  
  47. -- 
  48. Gary Heston    SCI Systems, Inc.  gary@sci34hub.sci.com   site admin
  49. The Chairman of the Board and the CFO speak for SCI. I'm neither.
  50. "Data sheet: HSN-3000 Nuclear Event Detector. The [NED] senses the gamma
  51. radiation pulse [from a] nuclear weapon." As if we wouldn't notice...
  52.