2001-04-26 19:05:54

by Samium Gromoff

[permalink] [raw]
Subject: ReiserFS question

Hi People...
got a following "dead of alive" question:
how to find a root block on a ReiserFS partition
with a corrupted superblock?

reiserfsprogs-3.x.0.9j simply writes -2^32
there at start (reset_super_block) and then simply
crashes when attempting to access to such mad place
... got nearly lost my main partition ...


sorry for bad english


2001-04-26 19:21:05

by Chris Mason

[permalink] [raw]
Subject: Re: ReiserFS question



On Thursday, April 26, 2001 11:05:25 PM +0400 Samium Gromoff
<[email protected]> wrote:

> Hi People...
> got a following "dead of alive" question:
> how to find a root block on a ReiserFS partition
> with a corrupted superblock?
>
> reiserfsprogs-3.x.0.9j simply writes -2^32
> there at start (reset_super_block) and then simply
> crashes when attempting to access to such mad place
> ... got nearly lost my main partition ...
>
>

The reiserfsck ---rebuild-tree will find the root block for you. Now that
you've rebuilt the super, run with --rebuild-tree and it should find
everything.

-chris