April 25, 2009

Recover Corrupted Partition From Bad block !!!

1) # dumpe2fs /dev/sda2 | grep superblock

2) # fsck -b 32768 /dev/sda2

3) Now try to mount file system using mount command:
# mount /dev/sda2 /mnt

4) # mount sb={alternative-superblock} /dev/device /mnt
# mount sb=32768 /dev/sda2 /mnt

5. Try to browse and access file system:
# cd /mnt
# mkdir test
# ls -l
# cp file /path/to/safe/location

No comments:

Post a Comment