[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bad superblock [solved]



OK, the problem is solved. If ever you happen to be in the same situation
and have to recover data from a partition with damaged primary superblock,
you can try the following. We use an example where the failing
partition is /dev/hda4 with block size 4kb and an intact backup superblock
at block 32768.
locate the superblock backups with
	mke2fs -n /dev/hda4
which will  write out the location of the superblock backup and the block
size. With that information, you can try to read the data on the device:
	debugfs -b 4096 -s 32768 /dev/hda4
This enters an interactive debugfs-session. From the various commands
available, you will probably use ls -l <file> to locate the data worth
recovering and rdump <directory> <destination> to recursively dump the
contents of directory to destination on a working partition.
If your filesystems happens to be so badly damaged that you cannot boot
the box it resides on, give Knoppix a try. You can save the data on the
ramdisk and send them via network to another computer.



Reply to: