LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Bad blocks - reiserfs corrupted (https://www.linuxquestions.org/questions/linux-hardware-18/bad-blocks-reiserfs-corrupted-309377/)

babis 04-03-2005 06:29 PM

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 ?

SciYro 04-03-2005 07:01 PM

try another fsck to see if it can help make it mountable. i dont know how to bypass blocks tho.

babis 04-03-2005 08:04 PM

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

SciYro 04-03-2005 09:05 PM

nice link, i been looking for something that would ignore errors, thanks


All times are GMT -5. The time now is 12:48 PM.