fsck fails...help!
Brian Kantor
brian at ucsd.Edu
Mon Sep 18 07:05:27 AEST 1989
A 4.3BSD filesystem will have alternate superblocks; you may be able to
use one of them to get your filesystem back into shape enough to dump it
off to tape. fsck -b is the option. On most of the system I work with
(Vaxen, Suns, etc) the first alternate superblock is at 32; I have seen
it elsewhere (on a Pyramid).
Really heroic measures to recover something you should have been backing
up include using 'dd' to copy the damaged filesystem off to one of your swap
partitions (use conv=noerror), then fsck'ing THAT and copying it back,
or dd'ing it off to tape and back in to rewrite the bad blocks and then
fsck'ing it, etc. The concept is to get it to the point where you can
get the data off to somewhere else and re-mkfs the file system, perhaps
after reformatting the bad spots on the disk.
Then go have a beer and plan a more robust backup scheme.
- Brian
More information about the Comp.unix.wizards
mailing list