a hosed reiserfs
OK, I've been hosed. I had a disk crash, and my ReiserFS /home partition doesn't mount (/dev/hdf8 on my machine).
When I ran reiserfsck on it, I got an message saying it's a hardware problem, with an I/O error that it can't read a block (output included below).
I don't really care about the disk (an 80 GB Western Digital), even though I bought it within the past year, but I really want to get the data off of it.
Even though reiserfsck says there's a hardware problem on hdf8, I boot just fine from that disk (using hdf1 and hdf7, my /boot and / partitions, both ext3), and I can also successfully mount and read hdf9, another ReiserFS partion.
I installed a new disk that I'm booting off of until I can figure out how to deal with this and not screw things further.
I tried to follow the instructions in
http://namesys.com/bad-block-handling.html by copying the partition using "dd_rescue /dev/hdf8 /home/bad-partition" (where /home is on the new disk). It ran for a while and created a 4.5 GB file (it's a 20 GB partition, about 15GB used) and then hung my system (completely, couldn't switch VCs, no other shells responding, etc.). After powercycling I did it again, and got the EXACT same behaviour, down to the exact same number of characters copied into the 4.5GB output file.
It also tried giving dd_rescue that byte count as the starting point, but that also hung things.
What can I do to recover my files? Is there something else I can use to dd_rescue the partition prior to running "reiserfsck --rebuild-tree"? Maybe incrementing the byte count by 1K and writing in 1K of 0's? Or another invocation that would get it to read the data?
Or something else that would get the data back?
Also, if anyone has any advice on *things to avoid* that might potentially lower the probability of data recovery, I'd appreciate it. I've been very cautious in what I do so that I don't exacerbate the problem. Thanks.
Bruce
======== reiserfsck output
reiserfsck 3.6.11 (2003 www.namesys.com)
*************************************************************
** If you are using the latest reiserfsprogs and it fails ** ** please email bug reports to [email protected], ** ** 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/hdf8 Will put log info to 'check.log'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):########### reiserfsck --check started at Fri Jun 11 00:15:18 2004
###########
Replaying journal..
0 transactions replayed
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 (4161536): (Input/output error).
******************************************************
* Warning: The dma on your hard drive is turned off. *
* This may really slow down the fsck process. *
******************************************************
Hello,
Quoted 42 lines · Bruce Israel
OK, I've been hosed. I had a disk crash, and my ReiserFS /home partition doesn't mount (
/dev/hdf8on my machine).When I ran reiserfsck on it, I got an message saying it's a hardware problem, with an I/O error that it can't read a block (output included below).
I don't really care about the disk (an 80 GB Western Digital), even though I bought it within the past year, but I really want to get the data off of it.
Even though reiserfsck says there's a hardware problem on hdf8, I boot just fine from that disk (using hdf1 and hdf7, my /boot and / partitions, both ext3), and I can also successfully mount and read hdf9, another ReiserFS partion.
I installed a new disk that I'm booting off of until I can figure out how to deal with this and not screw things further.
I tried to follow the instructions in
http://namesys.com/bad-block-handling.html by copying the partition using "dd_rescue/dev/hdf8/home/bad-partition" (where /home is on the new disk). It ran for a while and created a 4.5 GB file (it's a 20 GB partition, about 15GB used) and then hung my system (completely, couldn't switch VCs, no other shells responding, etc.). After powercycling I did it again, and got the EXACT same behaviour, down to the exact same number of characters copied into the 4.5GB output file.It also tried giving
dd_rescuethat byte count as the starting point, but that also hung things.What can I do to recover my files? Is there something else I can use to
dd_rescuethe partition prior to running "reiserfsck --rebuild-tree"? Maybe incrementing the byte count by 1K and writing in 1K of 0's? Or another invocation that would get it to read the data?Or something else that would get the data back?
Also, if anyone has any advice on *things to avoid* that might potentially lower the probability of data recovery, I'd appreciate it. I've been very cautious in what I do so that I don't exacerbate the problem. Thanks.
Quoted 5 lines
Bruce
======== reiserfsck output
reiserfsck 3.6.11 (2003 www.namesys.com)
It would be better to use a newer version of reiserfsprogs.
Quoted 1 line
bread: Cannot read the block (4161536): (Input/output error).
what do you see in the syslog? any related message about IO error or about an access beyond end of the device? It could also be the case that the partition end is beyond the harddrive size. check it please.
Signature · 2 lines
Thanks, Vitaly Fertman
Am Freitag, 25. Juni 2004 17:52 schrieb Bruce Israel:
Quoted 28 lines
OK, I've been hosed. I had a disk crash, and my ReiserFS /home partition doesn't mount (
/dev/hdf8on my machine).When I ran reiserfsck on it, I got an message saying it's a hardware problem, with an I/O error that it can't read a block (output included below).
I don't really care about the disk (an 80 GB Western Digital), even though I bought it within the past year, but I really want to get the data off of it.
Even though reiserfsck says there's a hardware problem on hdf8, I boot just fine from that disk (using hdf1 and hdf7, my /boot and / partitions, both ext3), and I can also successfully mount and read hdf9, another ReiserFS partion.
I installed a new disk that I'm booting off of until I can figure out how to deal with this and not screw things further.
I tried to follow the instructions in
http://namesys.com/bad-block-handling.html by copying the partition using "dd_rescue/dev/hdf8/home/bad-partition" (where /home is on the new disk). It ran for a while and created a 4.5 GB file (it's a 20 GB partition, about 15GB used) and then hung my system (completely, couldn't switch VCs, no other shells responding, etc.). After powercycling I did it again, and got the EXACT same behaviour, down to the exact same number of characters copied into the 4.5GB output file.
Quoted 7 lines
It also tried giving
dd_rescuethat byte count as the starting point, but that also hung things.What can I do to recover my files? Is there something else I can use to
dd_rescuethe partition prior to running "reiserfsck --rebuild-tree"? Maybe incrementing the byte count by 1K and writing in 1K of 0's? Or another invocation that would get it to read the data?
You can try dd_rescue in revers mode, too.
So you could get your "complete" partition eventually back.
Used that several times (some tries in normal and then some in reverse mode). Then a --rebuild-tree run.
Good luck.
-Dieter
Quoted 59 lines · Vitaly Fertman
Hello,
Quoted 42 lines · Bruce Israel
OK, I've been hosed. I had a disk crash, and my ReiserFS /home partition doesn't mount (
/dev/hdf8on my machine).When I ran reiserfsck on it, I got an message saying it's a hardware problem, with an I/O error that it can't read a block (output included below).
I don't really care about the disk (an 80 GB Western Digital), even though I bought it within the past year, but I really want to get the data off of it.
Even though reiserfsck says there's a hardware problem on hdf8, I boot just fine from that disk (using hdf1 and hdf7, my /boot and / partitions, both ext3), and I can also successfully mount and read hdf9, another ReiserFS partion.
I installed a new disk that I'm booting off of until I can figure out how to deal with this and not screw things further.
I tried to follow the instructions in
http://namesys.com/bad-block-handling.html by copying the partition using "dd_rescue/dev/hdf8/home/bad-partition" (where /home is on the new disk). It ran for a while and created a 4.5 GB file (it's a 20 GB partition, about 15GB used) and then hung my system (completely, couldn't switch VCs, no other shells responding, etc.). After powercycling I did it again, and got the EXACT same behaviour, down to the exact same number of characters copied into the 4.5GB output file.It also tried giving
dd_rescuethat byte count as the starting point, but that also hung things.What can I do to recover my files? Is there something else I can use to
dd_rescuethe partition prior to running "reiserfsck --rebuild-tree"? Maybe incrementing the byte count by 1K and writing in 1K of 0's? Or another invocation that would get it to read the data?Or something else that would get the data back?
Also, if anyone has any advice on *things to avoid* that might potentially lower the probability of data recovery, I'd appreciate it. I've been very cautious in what I do so that I don't exacerbate the problem. Thanks.
Quoted 7 lines
Bruce
======== reiserfsck output
reiserfsck 3.6.11 (2003 www.namesys.com)
It would be better to use a newer version of reiserfsprogs.
Quoted 8 lines
Quoted 3 lines
bread: Cannot read the block (4161536): (Input/output error).
what do you see in the syslog? any related message about IO error or about an access beyond end of the device? It could also be the case that the partition end is beyond the harddrive size. check it please.
Vitaly, hardware errors are only supported by us if they pay the $25...
Quoted 2 lines · Hans Reiser
Vitaly, hardware errors are only supported by us if they pay the $25...
OK, I have no problem paying $25 if you can help me. What should I do?
Bruce
Quoted 5 lines · Vitaly Fertman
Hello,
On Friday 25 June 2004 19:52, Bruce Israel wrote:
It would be better to use a newer version of reiserfsprogs.
OK, when I get home I'll download and install the latest. 3.6.17?
Quoted 8 lines
Quoted 1 line
bread: Cannot read the block (4161536): (Input/output error).
what do you see in the syslog? any related message about IO error or about an access beyond end of the device? It could also be the case that the partition end is beyond the harddrive size. check it please.
No, that's not the case. /dev/hdf8 has the problems, but the partition right after it, hdf9, is also a reiserfs partion, and it doesn't have any problems. The partion table for the disk is below.
I'll check out the logs, though I think I had looked in them at the time and found nothing informative.
Bruce
root@exsolent / # fdisk /dev/hdf
The number of cylinders for this disk is set to 9729. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdf: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdf1 1 13 104391 83 Linux /dev/hdf2 14 75 498015 82 Linux swap /dev/hdf3 76 9729 77545755 5 Extended /dev/hdf5 76 1292 9775521 83 Linux /dev/hdf6 1293 2509 9775521 83 Linux /dev/hdf7 2510 3726 9775521 83 Linux /dev/hdf8 3727 6159 19543041 83 Linux /dev/hdf9 6160 9729 28675993+ 83 Linux
Quoted 14 lines · Bruce Israel
Quoted 3 lines · Hans Reiser
Vitaly, hardware errors are only supported by us if they pay the $25...
OK, I have no problem paying $25 if you can help me. What should I do?
Bruce
www.namesys.com/support.html takes credit cards. Thanks for being our customer.
Hans
Quoted 3 lines · Hans Reiser
www.namesys.com/support.html takes credit cards. Thanks for being our customer.
OK, done.
Here's the current situation:
My partition doesn't mount. reiserfsck says there are bad blocks. The output of 'debugreiserfs' is as follows:
Filesystem state: consistency is not checked after last mounting
Reiserfs super block in block 16 on 0x2148 of format 3.6 with standard journal Count of blocks on the device: 4885760
Number of bitmaps: 150
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 1095151 Root block: 9426
Filesystem is NOT cleanly umounted
Tree height: 4
Hash function used to sort names: "r5"
Objectid map size 602, max 972
Journal parameters:
Device [0x0]
Magic [0x4edee6b]
Size 8193 blocks (including 1 for journal header) (first block 18) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:
sb_version: 2
inode generation number: 2033166
UUID: af13ddfc-8726-4732-bbf5-db17b6c6671d
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
The partition table looks fine (and hasn't changed in the last 6 months or so).
I've tried running dd_rescue to copy the partition over; I've run it both forward and reverse. Whenever I run it, it copies for a while and then hangs my system (Linux 2.6.5-gentoo-r1; also hangs a 2.6.3 kernel).
When I say it hangs, I mean that all other shells and virtual consoles are non-responsive, and the only thing that works is the reset button on the front panel.
I also tried /sbin/badblocks which hung the sytem as well.
When I run dd_rescue forward, it copies about 4.5GB (out of 20GB total), before hanging, resulting in the following file:
4511808 -rw-r----- 1 root 4615569408 Jul 2 23:50 hdf8
I've also run it forward and then reverse on the same file. It seems to only copy about 20 Meg or so in the reverse direction. The most recent effort resulted in:
4520612 -rw-r----- 1 root 20012073984 Jul 4 12:04 hdf8-2
I've tried giving it starting byte counts of the size (or 1K less), but it still hangs, just a lot quicker. Turning on dd_rescue's logging doesn't help; it appears that the system is locked up before anything is either written or flushed.
This is a very slow process since I have to reboot after each time I run it.
What should I do?
Bruce
Quoted 71 lines · Bruce Israel
Quoted 3 lines · Hans Reiser
www.namesys.com/support.html takes credit cards. Thanks for being our customer.
OK, done.
Here's the current situation:
My partition doesn't mount. reiserfsck says there are bad blocks. The output of 'debugreiserfs' is as follows:
Filesystem state: consistency is not checked after last mounting
Reiserfs super block in block 16 on
0x2148of format 3.6 with standard journal Count of blocks on the device: 4885760
Number of bitmaps: 150
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 1095151 Root block: 9426
Filesystem is NOT cleanly umounted
Tree height: 4
Hash function used to sort names: "r5"
Objectid map size 602, max 972
Journal parameters:
Device [0x0]
Magic [0x4edee6b]
Size 8193 blocks (including 1 for journal header) (first block 18) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field:0x0:
sb_version: 2
inode generation number: 2033166
UUID: af13ddfc-8726-4732-bbf5-db17b6c6671d
LABEL:
Set flags in SB:
ATTRIBUTES CLEANThe partition table looks fine (and hasn't changed in the last 6 months or so).
I've tried running
dd_rescueto copy the partition over; I've run it both forward and reverse. Whenever I run it, it copies for a while and then hangs my system (Linux 2.6.5-gentoo-r1; also hangs a 2.6.3 kernel).When I say it hangs, I mean that all other shells and virtual consoles are non-responsive, and the only thing that works is the reset button on the front panel.
I also tried
/sbin/badblockswhich hung the sytem as well.When I run
dd_rescueforward, it copies about 4.5GB (out of 20GB total), before hanging, resulting in the following file:4511808 -rw-r----- 1 root 4615569408 Jul 2 23:50 hdf8
I've also run it forward and then reverse on the same file. It seems to only copy about 20 Meg or so in the reverse direction. The most recent effort resulted in:
4520612 -rw-r----- 1 root 20012073984 Jul 4 12:04 hdf8-2
I've tried giving it starting byte counts of the size (or 1K less), but it still hangs, just a lot quicker. Turning on dd_rescue's logging doesn't help; it appears that the system is locked up before anything is either written or flushed.
Quoted 10 lines
This is a very slow process since I have to reboot after each time I run it.
What should I do?
Bruce
this is in the expertise area of flx and vitaly, so I must let them answer it.
Quoted 22 lines · Bruce Israel
[snip]
I've tried runningdd_rescueto copy the partition over; I've run it both forward and reverse. Whenever I run it, it copies for a while and then hangs my system (Linux 2.6.5-gentoo-r1; also hangs a 2.6.3 kernel).When I say it hangs, I mean that all other shells and virtual consoles are non-responsive, and the only thing that works is the reset button on the front panel.
I also tried
/sbin/badblockswhich hung the sytem as well.When I run
dd_rescueforward, it copies about 4.5GB (out of 20GB total), before hanging, resulting in the following file:4511808 -rw-r----- 1 root 4615569408 Jul 2 23:50 hdf8
I've also run it forward and then reverse on the same file. It seems to only copy about 20 Meg or so in the reverse direction. The most recent effort resulted in:
4520612 -rw-r----- 1 root 20012073984 Jul 4 12:04 hdf8-2
Quoted 7 lines
I've tried giving it starting byte counts of the size (or 1K less), but it still hangs, just a lot quicker. Turning on dd_rescue's logging doesn't help; it appears that the system is locked up before anything is either written or flushed.
This is a very slow process since I have to reboot after each time I run it.
Do you, by any chance, run a system based on the nForce2 chipset? On some boards, issues with the APIC reliably cause lockups under heavy I/O load, such as dd_rescue would create.
If so, try the following:
With kernel version of 2.6.5 or later, try booting with the kernel command line argument 'apic_tack=2'.
Philip Miller