Skip to contentSkip to conversation

Problem with my HDD

DISCUSSION Cookie-Monster 7 participants 17 messages May 29, 2002 – Jun 2, 2002 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi everybody

I hope you can help me. I formated on of my Server-HDDs with ReiserFS version, which has been distributed in SuSE Linux 7.3. Sorry, but I don't know the version, cause I'm know running SuSE Linux 8.0.

My Problem is, that the HDD cannot be mounted anymore:

1. fileserver:/ # mount /dev/sda1 /ftp/apps/
2. mount: Not a directory

The first line is the command and the second one is what "mount" tells me about my HDD.
After this problem I ran reiserfsck:

fileserver:/ # reiserfsck /dev/sda1
reiserfsck 3.x.1b (2002)
Will read-only check consistency of the filesystem on /dev/sda1 Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes
###########
reiserfsck --check started at Wed May 29 19:22:53 2002
###########
Replaying journal..
0 transactions replayed
Checking S+tree..

Bad root block 4294967295. (--rebuild-tree did not complete)

Aborted

So then I started reiserfsck with option --rebuil-tree as the manpage says:

fileserver:/ # reiserfsck /dev/sda1 --rebuild-tree reiserfsck 3.x.1b (2002)
**********************************************************
** This is an experimental version of reiserfsck, **
** !! MAKE A BACKUP FIRST !! **
** Don't run this program unless something is broken. ** ** Some types of random FS damage can be recovered from **
** by this program, which basically throws away **
** the internal nodes of the tree and then reconstructs ** ** them. This program is for use only by the desperate, ** ** and is of only beta quality. If you are using the ** ** latest reiserfsprogs and it fails please email **
** bug reports to [email protected]. **
**********************************************************

Will rebuild the filesystem (/dev/sda1) tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Wed May 29 19:27:02 2002
###########

Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 693365 blocks marked used
Skipping 8486 blocks (super block, journal, bitmaps) 684879 blocks will be read
0%....20%....40%....60%... left 171398, 4754 /sec

The check goes on til there are 171398 (more than 60%) blocks left then it hangs up for a while before continueing. From this point on it continues very slow only. From 150xxx it continues fast til 13039.
At this point the program quits without saying anything and the HDD is hung up. The old version of reiserfsck, in the SuSe Linux 7.3 Edition gave out a lot of "Block could not be read" or something like this and the HDD hung up.

So I can't get the files on this HDD and my life depends on them, so can someone HELP ME PLEASE?
I really need the data! Is there any possibilty of deleating the unreadable blocks and rebuuilding the tree then? When this works, I can get SOME of the information on the HDD back, because there are only 2-3GB data on it and only 900MB of the data is really important. But this 900MB are some of the last files I saved on the HDD.

I would be very happy, if someone has any idea of what I can do.

Jesse Schlüter

p.s.: The HDD is a IBM DRHS36V (36GB U2W-SCSI) if that is important.

--
Cookie-Monster
[email protected]
http://www.starfall.de/

#1 lore raw

Have you tried a later version of reiserfs tools? Still, I'd wait for some second or third suggestions.

//Anders

Quoted 95 lines

Hi everybody

I hope you can help me. I formated on of my Server-HDDs with ReiserFS version, which has been distributed in SuSE Linux 7.3. Sorry, but I don't know the version, cause I'm know running SuSE Linux 8.0.

My Problem is, that the HDD cannot be mounted anymore:

1. fileserver:/ # mount /dev/sda1 /ftp/apps/
2. mount: Not a directory

The first line is the command and the second one is what "mount" tells me about my HDD.
After this problem I ran reiserfsck:

fileserver:/ # reiserfsck /dev/sda1
reiserfsck 3.x.1b (2002)
Will read-only check consistency of the filesystem on /dev/sda1 Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes
###########
reiserfsck --check started at Wed May 29 19:22:53 2002
###########
Replaying journal..
0 transactions replayed
Checking S+tree..

Bad root block 4294967295. (--rebuild-tree did not complete)

Aborted

So then I started reiserfsck with option --rebuil-tree as the manpage says:

fileserver:/ # reiserfsck /dev/sda1 --rebuild-tree reiserfsck 3.x.1b (2002)
**********************************************************
** This is an experimental version of reiserfsck, **
** !! MAKE A BACKUP FIRST !! **
** Don't run this program unless something is broken. ** ** Some types of random FS damage can be recovered from **
** by this program, which basically throws away **
** the internal nodes of the tree and then reconstructs ** ** them. This program is for use only by the desperate, ** ** and is of only beta quality. If you are using the ** ** latest reiserfsprogs and it fails please email **
** bug reports to [email protected]. **
**********************************************************

Will rebuild the filesystem (/dev/sda1) tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Wed May 29 19:27:02 2002
###########

Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 693365 blocks marked used
Skipping 8486 blocks (super block, journal, bitmaps) 684879 blocks will be read
0%....20%....40%....60%... left 171398, 4754 /sec

The check goes on til there are 171398 (more than 60%) blocks left then it hangs up for a while before continueing. From this point on it continues very slow only. From 150xxx it continues fast til 13039.
At this point the program quits without saying anything and the HDD is hung up. The old version of reiserfsck, in the SuSe Linux 7.3 Edition gave out a lot of "Block could not be read" or something like this and the HDD hung up.

So I can't get the files on this HDD and my life depends on them, so can someone HELP ME PLEASE?
I really need the data! Is there any possibilty of deleating the unreadable blocks and rebuuilding the tree then? When this works, I can get SOME of the information on the HDD back, because there are only 2-3GB data on it and only 900MB of the data is really important. But this 900MB are some of the last files I saved on the HDD.

I would be very happy, if someone has any idea of what I can do.

Jesse Schlüter

p.s.: The HDD is a IBM DRHS36V (36GB U2W-SCSI) if that is important.

--
Cookie-Monster
[email protected]
http://www.starfall.de/

#2 lore raw
In reply to Cookie-Monster
Quoted 10 lines · Cookie-Monster

Hi everybody

I hope you can help me. I formated on of my Server-HDDs with ReiserFS version, which has been distributed in SuSE Linux 7.3. Sorry, but I don't know the version, cause I'm know running SuSE Linux 8.0.

My Problem is, that the HDD cannot be mounted anymore:

1. fileserver:/ # mount /dev/sda1 /ftp/apps/
2. mount: Not a directory

try

# ls -la /ftp/apps
# mkdir /ftp/apps
and say what happens

Also, try

# dmesg
and see if there are any read errors on your drive. if there are, you're out 
of luck... get a new drive

Cheers, Kuba

#3 lore raw
In reply to Cookie-Monster
Quoted 2 lines · Cookie-Monster

So I can't get the files on this HDD and my life depends on them, so can someone HELP ME PLEASE?

Ok, it's too late to point out the virtue of backups (this time). From your description I'm personally suspecting a hardware issue with the drive but it's orth ruling out all other alternastives before accepting this.

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:

dd if=/dev/sda1 of=/bigfilesystem/diskimage

I don't believe it will be necessary to set a particular blocksize for the dd here but perhaps others might comment.

Keep this image aside (put it on another box infact).

You may find it is actually impossible to get much of an image from the drive.

Now the main reason I posted was this: If you find that all else has failed (and if I were you I'd wait for a few more suggestions from the learned people here to come in) then there are companies who will attempt data recovery even on physically broken drives. These companies have decent success rates with respect to data recovery but be prepared to pay $$$. The things they do to the drive are often time consuming and costly resource-wise.

Ask local computer experts for a local establishment which would do this. Rob

-- Robert Brockway B.Sc. email: [email protected] ICQ: 104781119
Linux counter project ID #16440 (http://counter.li.org)
blake: up 1 day, 3:50, 4 users, load average: 0.49, 0.47, 0.61 "The earth is but one country and mankind its citizens" -Baha'u'llah

#4 lore raw
Quoted 5 lines · Cookie-Monster
Quoted 3 lines

So I can't get the files on this HDD and my life depends on them, so can someone HELP ME PLEASE?

Quoted 8 lines

Ok, it's too late to point out the virtue of backups (this time). From your description I'm personally suspecting a hardware issue with the drive but it's orth ruling out all other alternastives before accepting this.

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:

dd if=/dev/sda1 of=/bigfilesystem/diskimage

I've heard of something called dd_rescue, but "dd if=/dev/sda1 of=/path/image conv=sync,noerror" should do the trick. The sync and
noerror causes the disk-copy to continue when there are read errors
and fill in with blanks instead. If you don't do this you will end up with offset errors - the image will be shorter than the original drive, and it would be impossible to fix.

IF you have damaged sectors you will need alot of time, perhaps many hours, or even days to copy a bigger disk.

//Anders

Quoted 23 lines

I don't believe it will be necessary to set a particular blocksize for the dd here but perhaps others might comment.

Keep this image aside (put it on another box infact).

You may find it is actually impossible to get much of an image from the drive.

Now the main reason I posted was this: If you find that all else has failed (and if I were you I'd wait for a few more suggestions from the learned people here to come in) then there are companies who will attempt data recovery even on physically broken drives. These companies have decent success rates with respect to data recovery but be prepared to pay $$$. The things they do to the drive are often time consuming and costly resource-wise.

Ask local computer experts for a local establishment which would do this. Rob

-- Robert Brockway B.Sc. email: [email protected] ICQ: 104781119
Linux counter project ID #16440 (http://counter.li.org)
blake: up 1 day, 3:50, 4 users, load average: 0.49, 0.47, 0.61 "The earth is but one country and mankind its citizens" -Baha'u'llah

#5 lore raw

Hello!

Quoted 5 lines · Anders Widman
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

I've heard of something called dd_rescue, but "dd if=/dev/sda1 of=/path/image conv=sync,noerror" should do the trick. The sync and

Our attempts show that dd (even with conv=sync,noerror,notrunc) does not help and produces broken images, where no data inserted in image for sectors that cannot be read.

dd_rescue is shipped with SuSE.
Also it can be obtained from here:
http://www.garloff.de/kurt/linux/ddrescue/

Quoted 2 lines

noerror causes the disk-copy to continue when there are read errors
and fill in with blanks instead. If you don't do this you will end up

No, for some reason it does not fills the blanks.
At least for us.

Quoted 2 lines

with offset errors - the image will be shorter than the original drive, and it would be impossible to fix.

This is also not true, it will be possible to fix, but that would be more expensive ;)

Bye,
Oleg

#6 lore raw
Quoted 24 lines · Oleg Drokin

Hello!

Quoted 5 lines · Anders Widman
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

I've heard of something called dd_rescue, but "dd if=/dev/sda1 of=/path/image conv=sync,noerror" should do the trick. The sync and

Our attempts show that dd (even with conv=sync,noerror,notrunc) does not help and produces broken images, where no data inserted in image for sectors that cannot be read.

dd_rescue is shipped with SuSE.
Also it can be obtained from here:
http://www.garloff.de/kurt/linux/ddrescue/

Quoted 2 lines

noerror causes the disk-copy to continue when there are read errors
and fill in with blanks instead. If you don't do this you will end up

No, for some reason it does not fills the blanks.
At least for us.

Quoted 8 lines
Quoted 2 lines

with offset errors - the image will be shorter than the original drive, and it would be impossible to fix.

This is also not true, it will be possible to fix, but that would be more expensive ;)

Bye,
Oleg

I've suffered a very similar problem and posted to the list earlier, I did, dd_resuce -l dd.log /dev/hdd5 ./hdd5 and winded up w/ this:
dd_rescue: (info): ipos: 0.0k, opos: 0.0k,
xferd: 0.0k
errs: 0, errxfer: 0.0k,
succxfer: 0.0k
+curr.rate: 0kB/s, avg.rate: 0kB/s,
avg.load: 0.0%

it never changed, the file created hdd5 was 65536 bytes large. The log file was empty. Am I doing something wrong? Any info would be appreciated. Thanks in advance.

#7 lore raw

Hello!

Quoted 11 lines · Billy Transue

I've suffered a very similar problem and posted to the list earlier, I did, dd_resuce -l dd.log /dev/hdd5 ./hdd5 and winded up w/ this:
dd_rescue: (info): ipos: 0.0k, opos: 0.0k,
xferd: 0.0k
errs: 0, errxfer: 0.0k,
succxfer: 0.0k
+curr.rate: 0kB/s, avg.rate: 0kB/s,
avg.load: 0.0%
it never changed, the file created hdd5 was 65536 bytes large. The log file was empty. Am I doing something wrong? Any info would be appreciated. Thanks in advance.

I'd suggest you to write to Kurt Garloff, since this looks like a bug.

Bye,
Oleg

#8 lore raw
In reply to Robert Brockway

Hello!

Quoted 3 lines · Robert Brockway

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

Bye,
Oleg

#9 lore raw
Quoted 10 lines · Oleg Drokin

Hello!

Quoted 3 lines · Robert Brockway

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

Yeah, I know but I figure that a partial recovery is better than none at all. You could always go through a binary dump or pay $$$ for a professional data recovery group to do a professional job of it. Cheers,
-Rob

-- Robert Brockway B.Sc. email: [email protected] ICQ: 104781119
Linux counter project ID #16440 (http://counter.li.org)
blake: up 1 day, 3:50, 4 users, load average: 0.49, 0.47, 0.61 "The earth is but one country and mankind its citizens" -Baha'u'llah

#10 lore raw
In reply to Oleg Drokin
Quoted 6 lines
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

If it stops at the first read error, can I put this image back onto the formatted disk, so I have left the working blocks?

--
Cookie-Monster
[email protected]
http://www.starfall.de/

#11 lore raw
In reply to Oleg Drokin

Hi,

Quoted 6 lines
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

I made an image of the disk. It's 3GB. Can I do anything with this thing now? i.e.: formatting the HDD and putting the image back on it. Then there would be no unreadable blocks anymore.

--
Cookie-Monster
[email protected]
http://www.starfall.de/

#12 lore raw
Quoted 6 lines

Hi,

Quoted 3 lines
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

Quoted 6 lines
Quoted 2 lines

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

I made an image of the disk. It's 3GB. Can I do anything with this thing now? i.e.: formatting the HDD and putting the image back on it. Then there would be no unreadable blocks anymore.

Formatting would not repair the broken sectors. If the drive itself has spare sectors left, then they would be used instead.

If there are bad sectors you should really have this disk replaced. IBM has 5 years warranty on all SCSI drives. You can fill out a RMA form at http://www.storage.ibm.com/hdd/support/index.htm

And, as Oleg wrote, use ddrescue to make a complete backup of your harddrive. Make a backup of that image too, so you can recover data from one of the images.

//Anders

Quoted 4 lines

--
Cookie-Monster
[email protected]
http://www.starfall.de/

#13 lore raw
In reply to Cookie-Monster
Quoted 6 lines · Cookie-Monster

Hi,

Quoted 3 lines
Quoted 3 lines

If you can I'd consider getting an image of the drive. It may help with data recovery later. something like:
dd if=/dev/sda1 of=/bigfilesystem/diskimage

Quoted 6 lines
Quoted 2 lines

That does not work on bad hard drives, resulting image would be almost useless. BTW, this way it stops on first read error.

I made an image of the disk. It's 3GB. Can I do anything with this thing now? i.e.: formatting the HDD and putting the image back on it. Then there would be no unreadable blocks anymore.

I would keep the original disk in its current state until you get all the data back you can. If you think you've got a good copy, take the original out of the machine and put it somewhere safe.

I'd start by running the copy through the latest version of reiserfsck.

-chris

#14 lore raw
Quoted 9 lines · Chris Mason
Quoted 3 lines

I made an image of the disk. It's 3GB. Can I do anything with this thing now? i.e.: formatting the HDD and putting the image back on it. Then there would be no unreadable blocks anymore.

I would keep the original disk in its current state until you get all the data back you can. If you think you've got a good copy, take the original out of the machine and put it somewhere safe.

I'd start by running the copy through the latest version of reiserfsck.

This is addresses mainly to the original poster: One of the great things about this approach is that you can mount the image loopback & test your progress at recovering data, while not risking further damage to the original data source.

Good luck with the recovery & keep us posted.

Btw, at this point I'd like to thank all the reiserfs developers. It is a great filesystem, and I personally believe will end up being the defacto standard for Linux within a few years despite all of the competing journalling filesystems out there at the moment. Diversity is great of course - keeps everyone on their toes, and there will be room for all of the filesystems in the Linux distros of the future. I was a bit sad when xiafs was dropped from the kernel, but I didn't worry too much about the passing of extfs :)

Cheers,
-Rob

-- Robert Brockway B.Sc. email: [email protected] ICQ: 104781119
Linux counter project ID #16440 (http://counter.li.org)
blake: up 1 day, 3:50, 4 users, load average: 0.49, 0.47, 0.61 "The earth is but one country and mankind its citizens" -Baha'u'llah

#15 lore raw
In reply to Cookie-Monster

Hello!

Quoted 7 lines · Cookie-Monster

I hope you can help me. I formated on of my Server-HDDs with ReiserFS version, which has been distributed in SuSE Linux 7.3. Sorry, but I don't know the version, cause I'm know running SuSE Linux 8.0. My Problem is, that the HDD cannot be mounted anymore:
1. fileserver:/ # mount /dev/sda1 /ftp/apps/
2. mount: Not a directory

      Bad root block 4294967295. (--rebuild-tree did not complete)

Well, so you in fact run reiserfsck --rebuild-tree before. What caused you to run it for the first time?

Quoted 7 lines

The check goes on til there are 171398 (more than 60%) blocks left then it hangs up for a while before continueing. From this point on it continues very slow only. From 150xxx it continues fast til 13039.
At this point the program quits without saying anything and the HDD is hung up. The old version of reiserfsck, in the SuSe Linux 7.3 Edition gave out a lot of "Block could not be read" or something like this and the HDD hung up.

what does 'dmesg' output says after this?
If you have read errors, then namesys can help you only based on http://namesys.com/support.html terms.

Quoted 2 lines

I really need the data! Is there any possibilty of deleating the unreadable blocks and rebuuilding the tree then? When this works, I

This is possible, but all the data that was contained in these blocks would be lost.

Quoted 1 line

p.s.: The HDD is a IBM DRHS36V (36GB U2W-SCSI) if that is important.

Hm, I thought that only IBM DTLA-307040 and IC40... were subject to quick death.

Bye,
Oleg

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]