LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-03-2005, 06:29 PM   #1
babis
LQ Newbie
 
Registered: Jul 2003
Location: Padova Italy & Athens Greece
Distribution: Slackware 10.2
Posts: 17

Rep: Reputation: 0
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 ?
 
Old 04-03-2005, 07:01 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
try another fsck to see if it can help make it mountable. i dont know how to bypass blocks tho.
 
Old 04-03-2005, 08:04 PM   #3
babis
LQ Newbie
 
Registered: Jul 2003
Location: Padova Italy & Athens Greece
Distribution: Slackware 10.2
Posts: 17

Original Poster
Rep: Reputation: 0
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* ?

Last edited by babis; 04-03-2005 at 08:51 PM.
 
Old 04-03-2005, 09:05 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
nice link, i been looking for something that would ignore errors, thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ReiserFS with bad blocks bruce ford Linux - Software 2 07-23-2005 04:15 AM
Reiserfs, hacker and bad blocks rkane Linux - General 2 01-28-2005 02:58 PM
Corrupted my ReiserFS by fixing it...HELP! pAn1k Linux - Software 7 09-13-2004 12:40 AM
corrupted reiserfs, can't repair antipop Linux - Newbie 8 05-04-2004 09:14 PM
ReiserFS - Bad Blocks - Recovery - HELP! leprechaun Linux - Hardware 1 04-10-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration