Bad superblock
Hello,
I'm using ReiserFS 3.6.19 on a partition whose superblock has been swept away due to a sudden attack of bad sectors. I'm wondering if ReiserFS keeps backup copies of the superblock...If yes, then where? Or is there some other means to retrieve the data?
TIA,
Mahmoud
Hello
Quoted 5 lines · Mahmoud Al Gammal
Hello,
I'm using ReiserFS 3.6.19 on a partition whose superblock has been swept away due to a sudden attack of bad sectors. I'm wondering if ReiserFS keeps backup copies of the superblock...If yes, then where?
no, it does not
Quoted 3 lines
Or is there some other means to retrieve the
data?
copy partition with bad blocks to a good one with dd_rescue
reiserfsck --build-sb /dev/good-partition (use default answers if you did not do anything specific with that filesystem like converting 3.5 to 3.6, journal relocation, etc)
reiserfsck --rebuild-tree /dev/good-partition
If this helps you - you may take a look at namesys.com/support.html
Hello
Quoted 15 lines · Vladimir Saveliev
Hello
Quoted 5 lines · Mahmoud Al Gammal
Hello,
I'm using ReiserFS 3.6.19 on a partition whose superblock has been swept away due to a sudden attack of bad sectors. I'm wondering if ReiserFS keeps backup copies of the superblock...If yes, then where?no, it does not
Quoted 3 lines
Or is there some other means to retrieve the
data?
Quoted 5 lines
copy partition with bad blocks to a good one with
dd_rescuereiserfsck --build-sb
/dev/good-partition(use default answers if you did not do anything specific with that filesystem like converting 3.5 to 3.6, journal relocation, etc)
There can be a problem with number of blocks. reiserfsck --build-sb will ask for that, I think.
You should be able to calculate number of blocks in broken filesystem with mkreiserfs /dev/bad-partition. It will report you something like Count of blocks on the device: 4096560
among other lines and ask to continue.
DO NOT LET IT TO CONTINUE. Use this block number in answers to reiserfsck --build-sb.
Quoted 5 lines
reiserfsck --rebuild-tree
/dev/good-partitionIf this helps you - you may take a look at namesys.com/support.html
This actually helped..thanks a ot.
But wouldn't it be useful to keep replicas of the superblock? IIRC, ext3 does that.
Quoted 39 lines · Vladimir Saveliev
Hello
Quoted 15 lines · Vladimir Saveliev
Hello
Quoted 5 lines · Mahmoud Al Gammal
Hello,
I'm using ReiserFS 3.6.19 on a partition whose superblock has been swept away due to a sudden attack of bad sectors. I'm wondering if ReiserFS keeps backup copies of the superblock...If yes, then where?no, it does not
Quoted 3 lines
Or is there some other means to retrieve the
data?Quoted 5 lines
copy partition with bad blocks to a good one with
dd_rescuereiserfsck --build-sb
/dev/good-partition(use default answers if you did not do anything specific with that filesystem like converting 3.5 to 3.6, journal relocation, etc)There can be a problem with number of blocks. reiserfsck --build-sb will ask for that, I think.
You should be able to calculate number of blocks in broken filesystem with mkreiserfs/dev/bad-partition. It will report you something like Count of blocks on the device: 4096560
among other lines and ask to continue.
DO NOT LET IT TO CONTINUE. Use this block number in answers to reiserfsck --build-sb.Quoted 5 lines
reiserfsck --rebuild-tree
/dev/good-partitionIf this helps you - you may take a look at namesys.com/support.html
Hello
Quoted 4 lines · Mahmoud Al Gammal
This actually helped..thanks a ot.
But wouldn't it be useful to keep replicas of the superblock? IIRC, ext3 does that.
reiserfs is frozen more or less. It gets bug fixes only. reiser4 has something like copies of super block.
Quoted 43 lines
Quoted 39 lines · Vladimir Saveliev
Hello
Quoted 15 lines · Vladimir Saveliev
Hello
Quoted 5 lines · Mahmoud Al Gammal
Hello,
I'm using ReiserFS 3.6.19 on a partition whose superblock has been swept away due to a sudden attack of bad sectors. I'm wondering if ReiserFS keeps backup copies of the superblock...If yes, then where?no, it does not
Quoted 3 lines
Or is there some other means to retrieve the
data?Quoted 5 lines
copy partition with bad blocks to a good one with
dd_rescuereiserfsck --build-sb
/dev/good-partition(use default answers if you did not do anything specific with that filesystem like converting 3.5 to 3.6, journal relocation, etc)There can be a problem with number of blocks. reiserfsck --build-sb will ask for that, I think.
You should be able to calculate number of blocks in broken filesystem with mkreiserfs/dev/bad-partition. It will report you something like Count of blocks on the device: 4096560
among other lines and ask to continue.
DO NOT LET IT TO CONTINUE. Use this block number in answers to reiserfsck --build-sb.Quoted 5 lines
reiserfsck --rebuild-tree
/dev/good-partitionIf this helps you - you may take a look at namesys.com/support.html