Bad blocks - reiserfs corrupted
Hi all, I saw some error messages in dmesg regarding my hard drive.I booted from my slackware CD and used fsck.reiserfs to check what's going on.It found 3 corruptions, repaired 2 of them and for the third corruption required the --rebuild-tree flag . I ran fsck.reiserfs /dev/hda1 --rebuild-tree but the procedure was aborted due to a bad block in 415363 . Now I cannot even mount the drive, I get kernel panic on boot.Is there any way to mount it bypassing the bad blocks and save my data or it's all gone ?
|
try another fsck to see if it can help make it mountable. i dont know how to bypass blocks tho.
|
I have done many fsck attempts but it fails.Anyway, I found the solution, it's a little nice tool called dd_rescue which manages to copy the whole partition even when it encounters I/O errors caused by bad blocks.The output is a file which is the image of the hard disk with the holes from the bad blocks in it but I hope repairable with fsck after all !
http://www.garloff.de/kurt/linux/ddrescue/ edit: Yes, I managed to copy 28 GB of data with dd_rescue, then repaired the image with fsck.reiserfs and finally mounted it with mount -t reiserfs -o loop (must have kernel enebled for loopback device) May I mention I am ...*happy* ? :D |
nice link, i been looking for something that would ignore errors, thanks
|
All times are GMT -5. The time now is 12:48 PM. |