Thursday, March 31, 2011

Magic Rescue

And here is the useful command to get back your files (depends on the recipes). Please go to /usr/share/magicrescue/recipes to see more recipes.
sudo magicrescue -d ~/output2 -r /usr/share/magicrescue/recipes/msoffice /dev/sdb

Magic Rescue

Magic Rescue scans a block device for file types it knows how to recover and calls an external program to extract them. It looks at "magic bytes" in file contents, so it can be used both as an undelete utility and for recovering a corrupted drive or partition. As long as the file data is there, it will find it.

It works on any file system, but on very fragmented file systems it can only recover the first chunk of each file. Practical experience (this program was not written for fun) shows, however, that chunks of 30-50MB are not uncommon.

(A good tool for recovering lost/corrupted data files using Linux (in my case, Ubuntu)).

http://www.itu.dk/people/jobr/magicrescue/