rebuild-tree does not complete: filesystem full
Hi
I'm using the latest reiserfsck (3.6.19),,
My filesystem got corrupted by an unexpected power loss. Initially, I could mount the filesystem read-only with minor problems. As I had nowhere to back it up, I ran reiserfsck --rebuild-tree, which could not complete, as the filesystem was full.
Now it is flagged as unmountable "to prevent further corruption". Is there any way to restore the filesytem to the previous mountable but corrupted state (which would be infinitely more useful)? I imagine either finding the root node again or somehow growing the filesystem (as I have since found enough space to grow it)
Any help would be useful.
alf
Hello
Quoted 6 lines · alftheo potgieter
Hi
I'm using the latest reiserfsck (3.6.19),,
My filesystem got corrupted by an unexpected power loss. Initially, I could mount the filesystem read-only with minor problems. As I had nowhere to back it up, I ran reiserfsck --rebuild-tree, which could not complete, as the filesystem was full.
it is possible to get such a corruption that fsck will need to insert some extra metadata to successfully repair the fs. this process may run out of disk space. I have an improved version of reiserfsck, which detects these corruptions and avoid these metadata insertion. however your fs already has these metadata inserted and there is probably no space to proceed.
I will send you that improved reiserfsck, if it runs out of disk space too, you need to enlarge you partition, enlarge fs, and run reiserfsck again.
If you will need to enlarge the partition, before doing it, please zero the space that will be added into the partition to avoid mixing your reiserfs metadata with another reiserfs metadata.
Quoted 11 lines
Now it is flagged as unmountable "to prevent further corruption". Is there any way to restore the filesytem to the previous mountable but corrupted state (which would be infinitely more useful)? I imagine either finding the root node again or somehow growing the filesystem (as I have since found enough space to grow it)
Any help would be useful.
alf
Signature · 1 line
Vitaly
How do I resize the filesystem while it is corrupted?
Quoted 33 lines · Vitaly Fertman
Hello
Quoted 5 lines · alftheo potgieter
Hi
I'm using the latest reiserfsck (3.6.19),,
My filesystem got corrupted by an unexpected power loss. Initially, I could mount the filesystem read-only with minor problems. As I had nowhere to back it up, I ran reiserfsck --rebuild-tree, which could not complete, as the filesystem was full.it is possible to get such a corruption that fsck will need to insert some extra metadata to successfully repair the fs. this process may run out of disk space. I have an improved version of reiserfsck, which detects these corruptions and avoid these metadata insertion. however your fs already has these metadata inserted and there is probably no space to proceed.
I will send you that improved reiserfsck, if it runs out of disk space too, you need to enlarge you partition, enlarge fs, and run reiserfsck again.
If you will need to enlarge the partition, before doing it, please zero the space that will be added into the partition to avoid mixing your reiserfs metadata with another reiserfs metadata.
Quoted 9 lines
Now it is flagged as unmountable "to prevent further corruption". Is there any way to restore the filesytem to the previous mountable but corrupted state (which would be infinitely more useful)? I imagine either finding the root node again or somehow growing the filesystem (as I have since found enough space to grow it)
Any help would be useful.
alf
Hello
If the partition you have problems with is not the last partition on the disk, you can expand the partition with fdisk. Of course, to do that you will have to delete partition which follows the partition to be expanded.
(Please note that to have new partition table to make an effect you may have to reboot after fdisk if there were mounted partitions of that hard drive.)
Then you have to run
reiserfsck --rebuild-sb
It will ask you whether you ran resizer, and you have to answer No. Then --rebuild-sb will change filesystem's block counting to spread over whole device.
Then you have to run --rebuild-tree.
Quoted 54 lines · Alftheo Potgieter
How do I resize the filesystem while it is corrupted?
Quoted 48 lines · Vitaly Fertman
Hello
Quoted 8 lines · alftheo potgieter
Hi
I'm using the latest reiserfsck (3.6.19),,
My filesystem got corrupted by an unexpected power loss. Initially, I could mount the filesystem read-only with minor problems. As I had nowhere to back it up, I ran reiserfsck --rebuild-tree, which could not complete, as the filesystem was full.it is possible to get such a corruption that fsck will need to insert some extra metadata to successfully repair the fs. this process may run out of disk space. I have an improved version of reiserfsck, which detects these corruptions and avoid these metadata insertion. however your fs already has these metadata inserted and there is probably no space to proceed.
I will send you that improved reiserfsck, if it runs out of disk space too, you need to enlarge you partition, enlarge fs, and run reiserfsck again.
If you will need to enlarge the partition, before doing it, please zero the space that will be added into the partition to avoid mixing your reiserfs metadata with another reiserfs metadata.
Quoted 13 lines
Now it is flagged as unmountable "to prevent further corruption". Is there any way to restore the filesytem to the previous mountable but corrupted state (which would be infinitely more useful)? I imagine either finding the root node again or somehow growing the filesystem (as I have since found enough space to grow it)
Any help would be useful.
alf
This worked ( I actually bought a larger disk). It also asked if something changed with the partition, I said yes.
Quoted 75 lines · Vladimir V. Saveliev
Hello
If the partition you have problems with is not the last partition on the disk, you can expand the partition with fdisk. Of course, to do that you will have to delete partition which follows the partition to be expanded. (Please note that to have new partition table to make an effect you may have to reboot after fdisk if there were mounted partitions of that hard drive.)
Then you have to run
reiserfsck --rebuild-sbIt will ask you whether you ran resizer, and you have to answer No. Then --rebuild-sb will change filesystem's block counting to spread over whole device.
Then you have to run --rebuild-tree.Quoted 49 lines · Alftheo Potgieter
How do I resize the filesystem while it is corrupted?
Quoted 41 lines · Vitaly Fertman
Hello
Quoted 7 lines · alftheo potgieter
Hi
I'm using the latest reiserfsck (3.6.19),,
My filesystem got corrupted by an unexpected power loss. Initially, I could mount the filesystem read-only with minor problems. As I had nowhere to back it up, I ran reiserfsck --rebuild-tree, which could not complete, as the filesystem was full.it is possible to get such a corruption that fsck will need to insert some extra metadata to successfully repair the fs. this process may run out of disk space. I have an improved version of reiserfsck, which detects these corruptions and avoid these metadata insertion. however your fs already has these metadata inserted and there is probably no space to proceed.
I will send you that improved reiserfsck, if it runs out of disk space too, you need to enlarge you partition, enlarge fs, and run reiserfsck again.
If you will need to enlarge the partition, before doing it, please zero the space that will be added into the partition to avoid mixing your reiserfs metadata with another reiserfs metadata.
Quoted 11 lines
Now it is flagged as unmountable "to prevent further corruption". Is there any way to restore the filesytem to the previous mountable but corrupted state (which would be infinitely more useful)? I imagine either finding the root node again or somehow growing the filesystem (as I have since found enough space to grow it)
Any help would be useful.
alf