reiserfsck bug
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Vitaly Fertman
Hello,
Quoted 6 lines · Kir Kostuchenko
hi, I've got error message from the reiserfsck 'out of disk space',
in the rebuild tree mode.I think it's a bug of reiserfsck, I can send you bzip2'ed image of
the partition.
Quoted 9 lines
Quoted 3 lines
Please help.
If a file item offset is broken this sometimes looks like some items are lost and the hole is inserted, the needed space is proportional to
the hole size in reiserfs, this is why fsck may run of disk space. The standard solution here is to find a larger partition, zero it (or enlarge the existent one and zero the added part), make a raw copy of the problem partition to it, run reiserfsck --rebuild-sb and then reiserfsck --rebuild-tree.
Thanks.
So, if I only have a file with raw copy of my partition, I should do
something like:
// make 1 gb additional space
# dd if=/dev/zero of=additional_space bs=1000k count=1000
// add to my raw bad partition copy
# cat additional_space >> bad_partition
// map to the loop device
# losetup /dev/loop0 bad_partition
// run reiserfsck with --rebuild-sb
# reiserfsck --rebuild-sb --rebuild-tree /dev/loop0
Am I right?
Quoted 4 lines
Although it could be another reason, if you make the packed metadata:
debugreiserfs -p/dev/xxx| bzip2 -c > xxx.bz2
and provide them for downloading, I will investigate if there is some bug.
If my previous step will cause an error, send metadata to you?
Quoted 20 lines · Kir Kostuchenko
Quoted 11 lines · Vitaly Fertman
Hello,
Quoted 7 lines · Kir Kostuchenko
hi, I've got error message from the reiserfsck 'out of disk space',
in the rebuild tree mode.I think it's a bug of reiserfsck, I can send you bzip2'ed image of
the partition.Please help.
Quoted 7 lines
If a file item offset is broken this sometimes looks like some items are lost and the hole is inserted, the needed space is proportional to the hole size in reiserfs, this is why fsck may run of disk space. The standard solution here is to find a larger partition, zero it (or enlarge the existent one and zero the added part), make a raw copy of the problem partition to it, run reiserfsck --rebuild-sb and then reiserfsck --rebuild-tree.
Quoted 7 lines
Thanks.
So, if I only have a file with raw copy of my partition, I should do
something like:// make 1 gb additional space
# dd if=/dev/zero of=additional_space bs=1000k count=1000
with a file you can
dd if=/dev/zero of=the_copy bs=1k count=1 seek=X
where X=the current size in kilos + 1G.
with a partition:
dd if=/dev/zero of=the_copy bs=1M seek=X
where X=the current size in megabytes (be sure you do not zero some data of the current fs there)
Quoted 5 lines
// add to my raw bad partition copy
# cat additional_space >> bad_partition// map to the loop device
# losetup /dev/loop0 bad_partition
not necessary, you can fsck the file itselt.
Quoted 2 lines
// run reiserfsck with --rebuild-sb
# reiserfsck --rebuild-sb --rebuild-tree /dev/loop0
reiserfsck --rebuild-sb /dev/loop0 | reiserfsck --rebuild-sb the_copy reiserfsck --rebuild-tree /dev/loop0 | reiserfsck --rebuild-tree the_copy
Quoted 8 lines
Am I right?
Quoted 4 lines
Although it could be another reason, if you make the packed metadata:
debugreiserfs -p/dev/xxx| bzip2 -c > xxx.bz2
and provide them for downloading, I will investigate if there is some bug.If my previous step will cause an error, send metadata to you?
yes.
Signature · 2 lines
Thanks, Vitaly Fertman