accidentally deleted files--need help restoring on reiserfs
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
accidentally deleted files--need help restoring on reiserfs
I am using MDK 9.1, with reiserfs as my fs. I accidentally deleted some VERY important files, but cannot recover them.
I tried: reiserfsck --rebuild-tree -S -l rebuild.log /dev/hdb6 (this is my /home partition).
This FAILED to recover the files in question, although it DID recover some. If you have ANY suggestions as to what to do. I have had some ppl suggest that I use Midnight Commander, but AFAIK it only works for ext2.
If you really need to undelete a file, that's the way to do it:
grep -a -B[size before] -A[size after] 'text' /dev/[your_partition]
Replace [size before], [size after] and [your_partition] with something meaningfull. Don't know what your partition is? Read the Linux undelete manual!
e.g.: If you want to undelete a letter (+- 200 lines) starting with "Hi mum" which was stored on /dev/hda1 you can try:
grep -a -B2 -A200 "Hi mum" /dev/hda1
Make sure you do this as root (System administrator)
Read the grep manual page for more information!
Read your unix's manual. Perhaps it contains an own undeletion program.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.