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