LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-26-2005, 03:17 PM   #1
gattumarrudu
LQ Newbie
 
Registered: Mar 2004
Location: Sardinia (Italy)
Distribution: Gentoo / SuSE
Posts: 15

Rep: Reputation: 0
How to rescue partition? (Bad block in disk, reiserfsck stops)


I was working on some files on my remote server through a windows (SMB) client, as I had a problem saving a file. So I unmounted the data partition (Reiser) on my server and ran a reiserfsck --check. This is the output:

Code:
reiserfsck 3.6.9 (2003 www.namesys.com)

*************************************************************
** If you are using the latest reiserfsprogs and  it fails **
** please  email bug reports to reiserfs-list@namesys.com, **
** providing  as  much  information  as  possible --  your **
** hardware,  kernel,  patches,  settings,  all reiserfsck **
** messages  (including version),  the reiserfsck logfile, **
** check  the  syslog file  for  any  related information. **
** If you would like advice on using this program, support **
** is available  for $25 at  www.namesys.com/support.html. **
*************************************************************

Will read-only check consistency of the filesystem on /dev/hdc5
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):###########
reiserfsck --check started at Fri Aug 26 21:10:18 2005
###########
Replaying journal..

The problem has occurred looks like a hardware problem.
If you have bad blocks, we advise you to get a new hard
drive, because once you get one bad block that the disk
drive internals cannot hide from your sight, the chances
of getting more are generally said to become much higher
(precise statistics are unknown to us), and this disk drive
is probably not expensive enough for you to risk your time
and data on it. If you don't want to follow that advice,
then if you have just a few bad blocks, try writing to the
bad blocks and see if the drive remaps the bad blocks (that
means it takes a block it has in reserve and allocates it
for use for requests of that block number).  If it cannot
remap the block, this could be quite bad, as it may mean
that so many blocks have gone bad that none remain in 
reserve to allocate.

bread: Cannot read the block (22): (Input/output error).
So it seems to be a hardware problem. After unmounting the partition I cannot even mount it again. I get a generic "bad superblock, etc." error.

I thought about doing a reiserfsck --rebuild-tree, but I fear I could lose my data on it. Is there a way to access the disk to rescue the integer data at least? I have a LOT of work data on that partition!

Thanks
 
Old 08-27-2005, 12:20 PM   #2
thedeadhead
LQ Newbie
 
Registered: Aug 2005
Location: Somewhere in one of the continents
Posts: 22

Rep: Reputation: 15
Don't worry! There is hope yet

Try a live CD like knoppix, and you can save you data that way, copy it onto a CD or something, either than that I'm not sure I know a way to fix it, sorry.

thedeadhead
 
Old 08-27-2005, 12:35 PM   #3
gattumarrudu
LQ Newbie
 
Registered: Mar 2004
Location: Sardinia (Italy)
Distribution: Gentoo / SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Exclamation

The system is perfectly bootable, the root partition is OK. The problems concern the user data partition, so Knoppix doesn't look necessary.
I copied all my data on two partitions with ddrescue (splitting the data as the damaged partition is bigger than any other). But how can I handle and copy the data from the image?
Also, reiserfsck fails even with --rebuild-tree option.
 
Old 10-22-2008, 03:50 AM   #4
kurianthayil
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
Hi,

I have a problem with Reiserfsck. We have a logical drive (raid 1+0) enabled with 210 GB and is formatted with ReiserFS. Recently, we got an error which is given below:
ReiserFS: cciss/c0d1p1: warning: vs-13060: reiserfs_update_sd: stat data of object [8210 8809 0x0 SD] (nlink == 1) not found (pos 1)
and we lost almost 75 GB of freespace.

So we did reiserfsck --check [device] and it suggested to use --rebuild-tree.

Doing reiserfsck --rebuild-tree [device] corrected the error and we regained the lost space. Now, since --rebuild-tree covers only data blocks (blocks only with data), we thought of checking the complete partition. Hence we used,

reiserfsck --rebuild-tree --scan-all-partition [device].

This started scanning and after PASS 2, it has given a message:

Quote:
vpf-10260: The file we are inserting the new item (2 8280 0x17a1b8001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17a5ac001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17a9a0001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17ad94001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17b188001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17b57c001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17b970001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17bd64001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17c158001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17c54c001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17c940001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17cd34001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x17d128001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
vpf-10260: The file we are inserting the new item (2 8280 0x170001 IND (1), len 4048, location 48 entry count 0, fsck need 0, format new) into has no StatData, insertion was skipped
left 82, 73 /sec
Now, Its almost 21.5 hours and there is no progress (no message in console). I am not in a position to kill this process, as killing reiserfsck during --rebuild-tree will make the device unmountable to prevent further data corruption.

I checked the ps aux|grep reiserfsck using a different console, then I came to know, that it is using a significant amount of CPU (94%) and STAT as R+. Will this process take this much amount of time or should I kill this process and start this again. How critical is it to kill this process. Please do shed some light on this. Thanks in advance.

Regards,

Kurian Mathew Thayil.
 
Old 06-29-2010, 02:47 PM   #5
jwngator
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Did you ever figure this out? I am seeing this problem now myself.
 
  


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
grub won't load fedora 4, rescue disk says partition is unformatted! bean.art Linux - Software 29 12-01-2005 07:33 AM
Reiserfsck root partition through SSH (Gentoo) Mil0 Linux - General 3 08-09-2005 01:13 PM
reiserfsck questions - have bad block on /dev/hda7 appleg8 Linux - Newbie 0 02-20-2005 05:43 PM
reiserfsck and cannot read block solex Linux - General 6 09-03-2004 06:52 PM
Hard disk now displaying "not a valid block device" when booting in rescue mode alphasure Linux - Hardware 4 06-05-2003 08:49 AM


All times are GMT -5. The time now is 11:35 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration