Admin-Ahead Community

Linux => General Linux => Topic started by: nirmal on November 17, 2013, 04:16:57 pm

Title: Recover Corrupted Partition From A Bad Superblock
Post by: nirmal on November 17, 2013, 04:16:57 pm
Hi all,

Recover Corrupted Partition From A Bad Superblock

If a filesystem check fails and returns the error message “Damaged Superblock”

Solution:
There are backups of the superblock located on several positions and we can restore them with a simple command. Backup locations are: 8193, 32768, 98304, 163840, 229376 and 294912. ( 8193 in many cases only on older systems, 32768 is the most current position for the first backup )
Now, suppose you get a ¨Damaged Superblock¨ error message at filesystem check ( after a power failure ) and you get a root-prompt in a recovery console, then you give the command:
# e2fsck -b 32768 /dev/hda5
System will then check the filesystem with the information stored in that backup superblock and if the check was successful it will restore the backup to position 0.
If this is not working try using the other copy of Superblock located at the above mention location in.

Thank you