Skip to contentSkip to conversation

Reiserfs Data Recovery

DISCUSSION Nick Vahalik 4 participants 9 messages Mar 10, 2004 – Mar 15, 2004 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

'lo All,

I've been doing some reading through some of the "hidden features" in the source code...

Are these features tested? Is there any more documentation on them besides just what's in the comments? Are there any good sites to read up some more on reiserfs v3.6 internals? I've become determined to get this data back. I've got a couple ideas that I'd like to try but look at some of these commands I see that some of the things I'd like to access may already be written.

If the problem is that there are sections of my tree missing, why can't we just chop the bad sections off and salvage the data that is still there? Are there any tools that do this?

Nick Vahalik

#1 lore raw

Hello

Quoted 6 lines · Nick Vahalik

'lo All,

I've been doing some reading through some of the "hidden features" in the source code...

Are these features tested?

Most of these things were added quickly to solve certain user problems. To use them one is to understand what they were created for.

Quoted 2 lines

Is there any more documentation on them
besides just what's in the comments?

no.

Quoted 2 lines

Are there any good sites to read
up some more on reiserfs v3.6 internals?

namesys.com had description of reiserfs internals. But now it does not. read source code instead

Quoted 9 lines

I've become determined to get
this data back. I've got a couple ideas that I'd like to try but look at some of these commands I see that some of the things I'd like to access may already be written.

If the problem is that there are sections of my tree missing, why can't we just chop the bad sections off and salvage the data that is still there? Are there any tools that do this?

did you try reiserfsck?

Quoted 2 lines

Nick Vahalik

#2 lore raw
Quoted 9 lines · Vladimir Saveliev
Quoted 3 lines

Are these features tested?

Most of these things were added quickly to solve certain user problems. To use them one is to understand what they were created for.

And I guess that isn't documented....

Quoted 8 lines
Quoted 3 lines

Is there any more documentation on them besides just what's in the comments?

no.

Quoted 9 lines
Quoted 4 lines

Are there any good sites to read
up some more on reiserfs v3.6 internals?

namesys.com had description of reiserfs internals. But now it does not. read source code instead

Is there a reason? I grabbed a copy of the whitepaper from archive.org and started reading it last night. Is that information out of date... or is it taken down pending the release of Reiserv4?

Quoted 8 lines
Quoted 5 lines

I've become determined to get this data back. I've got a couple ideas that I'd like to try but look at some of these commands I see that some of the things I'd like to access may already be written.

If the problem is that there are sections of my tree missing, why can't we just chop the bad sections off and salvage the data that is still there? Are there any tools that do this?

did you try reiserfsck?

Yes... with --rebuild-tree, and it aborts after Pass0 every time. It fixes... maybe 10 leaves... and then it finds a bad pointer (or something) and dies every time it runs.

Nick Vahalik

#3 lore raw

Hello

Quoted 27 lines · Nick Vahalik
Quoted 9 lines · Vladimir Saveliev
Quoted 3 lines

Are these features tested?

Most of these things were added quickly to solve certain user problems. To use them one is to understand what they were created for.

And I guess that isn't documented....

Quoted 14 lines
Quoted 4 lines

Is there any more documentation on them
besides just what's in the comments?

no.

Quoted 4 lines

Are there any good sites to read
up some more on reiserfs v3.6 internals?

Quoted 8 lines
Quoted 4 lines

namesys.com had description of reiserfs internals. But now it does not. read source code instead

Is there a reason? I grabbed a copy of the whitepaper from archive.org and started reading it last night. Is that information out of date... or is it taken down pending the release of Reiserv4?

I have no idea why it was removed. I will try to find out.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I've become determined to get
this data back. I've got a couple ideas that I'd like to try but look at some of these commands I see that some of the things I'd like to access may already be written.

If the problem is that there are sections of my tree missing, why can't we just chop the bad sections off and salvage the data that is still there? Are there any tools that do this?

Quoted 7 lines
Quoted 3 lines

did you try reiserfsck?

Yes... with --rebuild-tree, and it aborts after Pass0 every time. It fixes... maybe 10 leaves... and then it finds a bad pointer (or something) and dies every time it runs.

Are you using reiserfsck from ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.13.tar.gz?

If yes - please run
debugreiserfs -p /dev/problemdevice | bzip2 -c > problemdevice.bz2 and make problemdevice.bz2 available for downloading.

It should allow us to fix reiserfsck bug.

If you are using older rieserfsck (reiserfsck -V), please try with the one of ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.13.tar.gz

Quoted 2 lines

Nick Vahalik

#4 lore raw
Quoted 7 lines · Vladimir Saveliev

Are you using reiserfsck from ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.13.tar.gz?

If yes - please run
debugreiserfs -p /dev/problemdevice | bzip2 -c > problemdevice.bz2 and make problemdevice.bz2 available for downloading.

Quoted 7 lines

It should allow us to fix reiserfsck bug.

If you are using older rieserfsck (reiserfsck -V), please try with the one of ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.13.tar.gz

root@bardiel:~/reiserdata# debugreiserfs -V
debugreiserfs 3.6.13 (2003 www.namesys.com)
root@bardiel:~/reiserdata# debugreiserfs -p /dev/sda1 | bzip2 -c > devsda1.bz2
debugreiserfs 3.6.13 (2003 www.namesys.com)

Loading on-disk bitmap .. 38677079 bits set - done
super block..ok
bitmaps..(1228).. ok
journal (from 18 to 8210)..ok
Super block, bitmaps, journal - 9422 blocks - done, 38667657 blocks left
0%....20%....40%....60%....80%....100% left 0, 15211 /sec
Packed 66463 blocks:
compessed 63534
full blocks 2929
leaves with broken block head 55
corrupted leaves 83
internals 672
descriptors 0
data packed with ratio 0.09

The meta-data info can be downloaded at http://24.162.126.168:8080/devsda1.bz2
~5.3 MB

Thanks

Nick Vahalik

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 4 lines · Vitaly Fertman

Hello,

Quoted 11 lines
Quoted 5 lines

The meta-data info can be downloaded at
http://24.162.126.168:8080/devsda1.bz2
~5.3 MB

I have tried fsck on these metadata and had no problems. Did you compile progs on the same conputer where you run it?

Yes, I did.

#7 lore raw
In reply to Vladimir Saveliev
Quoted 2 lines · Vladimir Saveliev

namesys.com had description of reiserfs internals. But now it does not. read source code instead

Is it possible to get all of these documents back and in a nice, central location? Historical documents can be quite interesting, especially in trying to understand the design process of modern file systems.

Signature · 2 lines
Stewart Smith ([email protected])
http://www.flamingspork.com/

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]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw

Re: Reiserfs Data Recovery (SOLVED)

Alright, so apparently it was the hardware... I'm not quite sure how, exactly, but something appears to be up. I borrowed a 200 G drive and just dd'ed /dev/sda to /dev/sdb, and then reiserfscked /dev/sdb1... it took a lot longer, but when It finished it got through pass 4 completely and had finished. It had 6430 leaves it couldn't place, so they were put in lost+found, and most (85%) of the files are completely intact, but some of the bigger ones (divx/iso) were pretty tore up. I also have a couple of files that nautilus thinks are 1.5 exabytes, yes exabytes.

It still amazes me that even after both the drives completely passed the DFT, they are still acting strange. Heh, silly Hitachi drives.

Thanks for your time, guys.

Nick Vahalik

#12 lore raw

Re: Reiserfs Data Recovery (SOLVED)

Quoted 8 lines · Nick Vahalik

Alright, so apparently it was the hardware... I'm not quite sure how, exactly, but something appears to be up. I borrowed a 200 G drive and just dd'ed /dev/sda to /dev/sdb, and then reiserfscked /dev/sdb1... it took a lot longer, but when It finished it got through pass 4 completely and had finished. It had 6430 leaves it couldn't place, so they were put in lost+found, and most (85%) of the files are completely intact, but some of the bigger ones (divx/iso) were pretty tore up. I also have a couple of files that nautilus thinks are 1.5 exabytes, yes exabytes.

It is legal to have a file with the size greater then the real file body size. But if you do not want it, there is an option in reiserfsck --adjust-size that allows you to adjust the file size fo the real file body size.

Quoted 6 lines

It still amazes me that even after both the drives completely passed the DFT, they are still acting strange. Heh, silly Hitachi drives.

Thanks for your time, guys.

Nick Vahalik

Signature · 2 lines
Thanks,
Vitaly Fertman