Skip to contentSkip to conversation

help recover filesystem corrupted by failing ide controller

DISCUSSION Pierre Abbat 4 participants 10 messages Mar 15, 2003 – Mar 16, 2003

lore
Share & tools
lore
#0 lore raw

Wednesday evening, my computer started giving weird errors. ls in a busy directory showed lots of garbled filenames. Within an hour it was unbootable. I called a friend and we went and swapped drives around; the computer wouldn't recognize either drive, and he suspected a motherboard problem. Today I got a loaner and put the drives in it; it recognized them both and booted right up. reiserfsck -x, however, showed lots of crosslinked files and other errors I don't understand. Attempting to cat .procmailrc hung cat. So I ran reiserfsck --rebuild-tree, which has worked for me before, and it made the filesystem unbootable. -x claims that lots of bitmaps are wrong. I haven't yet gotten the latest reiserfsck. The one I have is 3.x.0i from Mandrake 8.0 or 8.1. The reiserfs version in the kernel is 3.6.25; the filesystem is 3.5.x. Can I use debugreiserfs -p to dump the tree and recreate the filesystem on another disk?

phma

Signature · 2 lines
.i toljundi do .ibabo mi'afra tu'a do
.ibabo damba do .ibabo do jinga
#1 lore raw
Quoted 3 lines · Pierre Abbat

Wednesday evening, my computer started giving weird errors. ls in a busy directory showed lots of garbled filenames. Within an hour it was unbootable. I called a friend and we went and swapped drives around; the computer wouldn't recognize either drive, and he suspected a motherboard problem. Today I got a loaner and put the drives in it; it recognized them both and booted right up. reiserfsck -x, however, showed lots of crosslinked files and other errors I don't understand. Attempting to cat .procmailrc hung cat. So I ran reiserfsck --rebuild-tree, which has worked for me before, and it made the filesystem unbootable. -x claims that lots of bitmaps are wrong. I haven't yet gotten the latest reiserfsck. The one I have is 3.x.0i from Mandrake 8.0 or 8.1. The reiserfs version in the kernel is 3.6.25; the filesystem is 3.5.x. Can I use debugreiserfs -p to dump the tree and recreate the filesystem on another disk?

phma

If you already did a --rebuild-tree with that _old_ (~2years!!!) reiserfsck I pray you have a backup somewhere.

Try the latest -pre-release ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.6.5-pre2.tar.gz

that is said to have some bug fixes against the latest reiserfsprogs release ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.4.tar.gz

and a plus of performance and this release link is only given in case you believe in release numbering itself.

If you have problems with internet downloads I can send the package by mail to you.

Try the prerelease reiserfsck /dev/disk/you/have and follow the instuctions. And, please, report back if errors remain.

Best wishes,

Manuel

#2 lore raw
Quoted 2 lines · Manuel Krause

If you already did a --rebuild-tree with that _old_ (~2years!!!) reiserfsck I pray you have a backup somewhere.

If I couldn't cat a single file without the cat hanging, how could I make a backup?

Quoted 9 lines

Try the latest -pre-release ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.6.5-pre2.tar.gz

that is said to have some bug fixes against the latest reiserfsprogs release ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.4.tar.gz

and a plus of performance and this release link is only given in case you believe in release numbering itself.

I have 3.6.4 on this laptop. I can modify the spell and recast it. Is it OK to copy the binary to the other box (they're both AMD processors) and run it? (The laptop is running Source Mage, the box with the trashed filesystem is running Mandrake.)

#3 lore raw
Quoted 7 lines · Pierre Abbat
Quoted 2 lines · Manuel Krause

If you already did a --rebuild-tree with that _old_ (~2years!!!) reiserfsck I pray you have a backup somewhere.

If I couldn't cat a single file without the cat hanging, how could I make a backup?

Sorry, Pierre, you should have done it 1 min. before this happened, err, regularily. I feel with you. Try upgrading the kernel when this is fixed and check your hardware is o.k., before.

Quoted 7 lines
Quoted 7 lines

Try the latest -pre-release ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.6.5-pre2.tar.gz

that is said to have some bug fixes against the latest reiserfsprogs release ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.4.tar.gz

Quoted 6 lines
Quoted 2 lines

and a plus of performance and this release link is only given in case you believe in release numbering itself.

I have 3.6.4 on this laptop. I can modify the spell and recast it. Is it OK to copy the binary to the other box (they're both AMD processors) and run it? (The laptop is running Source Mage, the box with the trashed filesystem is running Mandrake.)

Modify spell? Recast? Source Mage? Mmh.

You can try running the old binary. Depending on the corresponding libs it will work. If not - try a new thing.

And don't use it on the old system before you are sure to have the failures' reason: old old kernel, old old FS etc.

I refer to the following mail on this list I'll cite below mostly for the compiler-flag you'll need for a possibly needed independent binary -- so, choose your poison!

Manuel

---->

Quoted 12 lines · Francois-Rene Rideau

Dear all,

to determine whether my DMA problem was due to the disk or the motherboard, I moved the disk to another machine, where I could successfully hdparm -Tt /dev/hdc without crashing linux while in udma2. However, when I put the disk back into its rightful place, linux died horribly with lots of error messages from reiserfs. I booted on /boot where I had kept a minimal runtime, and used reiserfsck. Reiserfsck reported an inconsistency that required using --rebuild-tree. And after approximately two hours, reiserfsck --rebuild-tree entered an endless loop, printing
do_pass_2: The block (27179935) is in the tree already. Should not happen.

looks like progs were compiled with other libs. Could you rebuild progs where you booted again or link them statically:
make LDFLAGS='-static'
and try agan.

Quoted 10 lines

Is there anything I can do about that, to put it in working order, or should I reformat and restore what I can from backup?

I've got a distinct feeling this disk will soon go back to MAXTOR, just like its twin brother.

[ Fran?ois-Ren? ?VB Rideau | Reflection&Cybernethics |
http://fare.tunes.org ] [ TUNES project for a Free Reflective Computing System | http://tunes.org ] http://Bastiat.org/ - debunking economic sophisms since 1845.

-- Thanks, Vitaly Fertman

<----

#4 lore raw
In reply to Pierre Abbat

Hello!

Quoted 4 lines · Pierre Abbat
Quoted 2 lines

If you already did a --rebuild-tree with that _old_ (~2years!!!) reiserfsck I pray you have a backup somewhere.

If I couldn't cat a single file without the cat hanging, how could I make a backup?

You could have made a copy of whole partition with dd.

Quoted 2 lines

I have 3.6.4 on this laptop. I can modify the spell and recast it. Is it OK to copy the binary to the other box (they're both AMD processors) and run it?

We saw some reports about problems arising if glibc is notably different. So you should either gave statically linked reiserfsck or run in on the system close to one where reiserfsck was built.

Bye,
Oleg

#5 lore raw
In reply to Manuel Krause
Quoted 9 lines · Manuel Krause

Try the latest -pre-release ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.6.5-pre2.tar.gz

that is said to have some bug fixes against the latest reiserfsprogs release ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.4.tar.gz

and a plus of performance and this release link is only given in case you believe in release numbering itself.

I just compiled the prerelease and will try it first on /var, which is equally corrupted (the computer was getting a lot of mail and I use Maildir). The glibc versions differ, so I'd like to build it statically. How do I do this?

#6 lore raw
Quoted 5 lines · Pierre Abbat
Quoted 3 lines · Manuel Krause

Try the latest -pre-release ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.6.5-pre2.tar.gz

Quoted 8 lines
Quoted 6 lines

that is said to have some bug fixes against the latest reiserfsprogs release ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.4.tar.gz

and a plus of performance and this release link is only given in case you believe in release numbering itself.

I just compiled the prerelease and will try it first on /var, which is equally corrupted (the computer was getting a lot of mail and I use Maildir). The glibc versions differ, so I'd like to build it statically. How do I do this?

I wanted to have written this in my mails yesterday night.

You'll need to process

make LDFLAGS='-static'

or have this LDFLAGS set somewhere in the Makefile what I can't tell anything more about. Maybe Oleg & Company can if that command doesn't work.

Best wishes,

Manuel

#7 lore raw
Quoted 6 lines · Manuel Krause

You'll need to process

make LDFLAGS='-static'

or have this LDFLAGS set somewhere in the Makefile what I can't tell anything more about. Maybe Oleg & Company can if that command doesn't work.

Did that and had to scp it because the programs were too big for a floppy. It said:

reiserfs_open_journal: journal parameters from super block does not match to journal parameters from journal.

As I can mount /var, what's wrong? Does reiserfsck 3.6 not work on a 3.5 filesystem?

phma

Signature · 2 lines
.i toljundi do .ibabo mi'afra tu'a do
.ibabo damba do .ibabo do jinga
#8 lore raw

Hi,

Quoted 2 lines

reiserfs_open_journal: journal parameters from super block does not match to journal parameters from journal.

There is a new check for journal parameters were added which helps to recover fs with relocated journal and in a few other cases. These parameters were not stored correctly in old kernels before relocated journal appeared. This is nothing to worry about, and you can fix with fsck --rebuild-sb help - say there to fix parameters in the jouranl by ones from the super block.

Signature · 2 lines
Thanks,
Vitaly Fertman
#9 lore raw
Quoted 11 lines · Vitaly Fertman

Hi,

Quoted 2 lines

reiserfs_open_journal: journal parameters from super block does not match to journal parameters from journal.

There is a new check for journal parameters were added which helps to recover fs with relocated journal and in a few other cases. These parameters were not stored correctly in old kernels before relocated journal appeared. This is nothing to worry about, and you can fix with fsck --rebuild-sb help - say there to fix parameters in the jouranl by ones from the super block.

Thanks. I successfully refscked /var and /home and the computer is up and running.

phma

Signature · 2 lines
.i toljundi do .ibabo mi'afra tu'a do
.ibabo damba do .ibabo do jinga