Skip to contentSkip to conversation

reiserfsck aborts when rebuilding filesystem tree

DISCUSSION Luis Bustamante 3 participants 4 messages Sep 13, 2002 – Sep 14, 2002

lore
Share & tools
lore
#0 lore raw

Hi list,

I got my partition table deleted, but I knew the exact size of each partition, so I created again the table. But I was unable to mount one ReiserFS partition (/home duh!), I got the error "read_super_block:
can't find a reiserfs file system", so I rebuilded the superblock with --rebuild-sb option without problems. After that I'm trying to rebuild the entire filesystem tree using:
reiserfsck --logfile rebuild.log --rebuild-tree /dev/hda8 but it aborts with the message "No reiserfs metadata found". I'm able to dump the metadata with the command:
debugreiserfs -p /dev/hda8 |gzip -c > metadata.gz
and it's about 33Mb compressed. Any ideas why I can't rebuild the filesystem tree? it seems metadata is still there, if you want I can put the dump of debugreiserfs somewhere so you can have a look. I'm using reiserfsprogs 3.6.3 (default Debian unstable package) and kernel 2.4.18.

Cheers,

Signature · 37 lines
Luis Bustamante                       mailto:[email protected]
The Debian Project            http://people.debian.org/~luferbu



Output from reiserfsck:
Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Fri Sep 13 15:59:11 2002
###########

Pass 0:
Loading on-disk bitmap .. ok, 8266 blocks marked used
Skipping 8266 blocks (super block, journal, bitmaps) 0 blocks will be
read

        "r5" hash is selected
Flushing..done
        Read blocks (but not data blocks) 0
                Leaves among those 0
                Objectids found 2

Pass 1 (will try to insert 0 leaves):
Looking for allocable blocks .. ok

Flushing..done
        0 leaves read
                0 inserted
Flushing..done



No reiserfs metadata found


Aborted
#1 lore raw
Quoted 4 lines · Luis Bustamante

Hi list,

I got my partition table deleted, but I knew the exact size of each partition, so I created again the table. But I was unable to mount one

Hi Luis!

Did you reboot after recreating your partition table?! If you knew the exact values for the meant partitions and the table parameters there should be no problem later after reboot (I only worked with Linux fdisk for exactly the same purposes some months ago).

I had lost some filesystems in the beginning of my linux&reiserfs experience until I found that "remarkable advantage of rebooting" ;-) (before reiserfs-team or fdisk included that hint it into their docs and/or program output).

If that doesn't apply to you, I hope the reiserfs guys have more help for you based on your metadata file -- more than/except to http://www.reiserfs.org/support.html (user error?).

Good luck,

Manuel

Quoted 15 lines

ReiserFS partition (/home duh!), I got the error "read_super_block:
can't find a reiserfs file system", so I rebuilded the superblock with --rebuild-sb option without problems. After that I'm trying to rebuild the entire filesystem tree using:
reiserfsck --logfile rebuild.log --rebuild-tree /dev/hda8
but it aborts with the message "No reiserfs metadata found". I'm able to dump the metadata with the command: debugreiserfs -p /dev/hda8 |gzip -c > metadata.gz and it's about 33Mb compressed. Any ideas why I can't rebuild the filesystem tree? it seems metadata is still there, if you want I can put the dump of debugreiserfs somewhere so you can have a look. I'm using reiserfsprogs 3.6.3 (default Debian unstable package) and kernel 2.4.18.

Cheers,

#2 lore raw
In reply to Luis Bustamante

Hello!

Quoted 4 lines · Luis Bustamante

I got my partition table deleted, but I knew the exact size of each partition, so I created again the table. But I was unable to mount one ReiserFS partition (/home duh!), I got the error "read_super_block:
can't find a reiserfs file system", so I rebuilded the superblock with

Well, if you only lost partition table, then all superblocks should have been left intact and after you have restored your partition table (And rebooted) everything should have been ok.
If not, it means you got some partitins wrong.

Quoted 1 line

--rebuild-sb option without problems. After that I'm trying to rebuild

That was bad decision, because superblock should be in place if you did everything correctly.

Quoted 6 lines

the entire filesystem tree using:
reiserfsck --logfile rebuild.log --rebuild-tree /dev/hda8 but it aborts with the message "No reiserfs metadata found". I'm able to dump the metadata with the command:
debugreiserfs -p /dev/hda8 |gzip -c > metadata.gz
and it's about 33Mb compressed. Any ideas why I can't rebuild the

Hm. 32M is journal size, and if you have some binary garbage in there that does not compress well, it might explain the size.

Quoted 4 lines

filesystem tree? it seems metadata is still there, if you want I can put the dump of debugreiserfs somewhere so you can have a look. I'm using reiserfsprogs 3.6.3 (default Debian unstable package) and kernel 2.4.18.

Looks like your case is user error, so you should read our terms for such case at http://namesys.com/support.html

Also double check that you got that partition parameters set correctly.

Bye,
Oleg

#3 lore raw

Hi Oleg!

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Oleg" == Oleg Drokin <[email protected]> writes:

Oleg> On Fri, Sep 13, 2002 at 04:17:53PM -0500, Luis Bustamante wrote:

>> I got my partition table deleted, but I knew the exact size of >> each partition, so I created again the table. But I was unable >> to mount one ReiserFS partition (/home duh!), I got the error >> "read_super_block: can't find a reiserfs file system", so I >> rebuilded the superblock with

Oleg> Well, if you only lost partition table, then all superblocks Oleg> should have been left intact and after you have restored Oleg> your partition table (And rebooted) everything should have Oleg> been ok. If not, it means you got some partitins wrong.

All my ext3 and other ReiserFS partitions worked after I created
them, but not my 8GB home, values should be fine, the partition after and before the bad partition worked without errors. Weird :/

Quoted 2 lines
Quoted 2 lines

--rebuild-sb option without problems. After that I'm trying to rebuild

Oleg> That was bad decision, because superblock should be in place Oleg> if you did everything correctly.

:( I had to do it because it wasn't unable to mount the partition,
superblock was just bad (I grep'ed the first lines of the partition, and it didn't even had a ReIsEr2Fs magic string as should have all ReiserFS partitions, iirc).

Quoted 6 lines
Quoted 6 lines

the entire filesystem tree using: reiserfsck --logfile rebuild.log --rebuild-tree /dev/hda8 but it aborts with the message "No reiserfs metadata found". I'm able to dump the metadata with the command: debugreiserfs -p /dev/hda8 |gzip -c

Quoted 1 line

metadata.gz and it's about 33Mb compressed. Any ideas why I

can't rebuild the

Oleg> Hm. 32M is journal size, and if you have some binary garbage Oleg> in there that does not compress well, it might explain the Oleg> size.

Duh, in fact it is 32M, I misread the `du' output :)

>> filesystem tree? it seems metadata is still there, if you want >> I can put the dump of debugreiserfs somewhere so you can have a >> look. I'm using reiserfsprogs 3.6.3 (default Debian unstable >> package) and kernel 2.4.18.

Oleg> Looks like your case is user error, so you should read our Oleg> terms for such case at http://namesys.com/support.html

I'll do it right now, thanks for your help.

Cheers,

Signature · 2 lines
Luis Bustamante                mailto:[email protected]
CSO, Fluidsignal Group    http://www.fluidsignal.com/~luferbu