Today is my bad day. I just by accident typed “rm -rdf *” in my home directory on the server – and all data is gone now.
Unfortunately, my last backup is way too old to be useful…. so, I now have to work out whether I can restore some files from this reiserFS partition.
I found a very good tutorial on how to undelete stuff on a ReiserFS – and also another one about how to recover from a crash.
The log of what I did follows just below!
I started with the second page I linked above (how to recover from a crash), as the tipps there seem to be non-destructive. The first step there is to create an image – which I did onto the USB hdd.
Then, using the loop-driver, I created the node /dev/loop0. After that, I run
reiserfsck --rebuild-sb /dev/loop0
reiserfsck --rebuild-tree -S /dev/loop0
reiserfsck --check /dev/loop0
These steps took an awful lot of time…
After that, I could finally mount the image – and it seems as all (or at least) most of my data can be found within the “lost+found” folder. The folder-names are lost (they have numbers as names), but looking inside them, I could easily determine what belongs where.
Thank God! This took me the whole afternoon, basically, and I had absolute no other stuff I could do (as everything else involves my PC…)














[...] after yesterday’s disaster, I decided that I need a new backup [...]