ReiserFS data recovery
02.05.2005
About ReiserFS
ReiserFS is one of the best journaled file system for Linux Operating system. Main advantage of journaled file system is fast data recovery after power failure. But ReiserFS have more usefull features such as tails (files smaller than one block can be stored together) etc.
Data recovery
Once I had done terrible mistake, unfortunately I tried to erase one partition, but I erased other partition with ReiserFS file system. I have looking around the internet but I was not able to find out accaptable solution to restore data however it is so easy.
reiserfsck /dev/hda1 --rebuild-sb
reiserfsck /dev/hda1 --rebuild-tree
What Reiserfsck do?
Reiserfsck firstly repair superblock (need to identify type of filesystem) and secondly repair partition table. If you rewrite whole partition table (first 100 MB or more) it could take between 10 minutes to one hour to restore whole table. It is perfect result, you can easily without problems recover your losted data. This is the reason why I thing that ReiserFS is one of the best file systems.
References