This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

When files disappear, Magic Rescue saves the day

Posted by: Anonymous [ip:] on February 14, 2008 07:50 PM
This could be very hard to use. Say I have a text file I accidentally deleted. I guess for the rules I have to know the beginning text. I am trying this program out it just doesn't seem that useful to me.

I created a file like so
echo Deletetest with more stuff so I can see it working> Deletetest.txt

removed it like so
rm -f Deletetest.txt

used this as the ruleset
echo -e "0 string Deletetest\nextention txt\ncommand safecat \"\$1\" > \$1">rules.txt

created a place to put saved files like so
mkdir /tmp/rescued

then used magicrescue as follows
magicrescue -r rules.txt /dev/VolGroup00/LogVol00 -d /tmp/resuced

Maybe I just don't understand something but it just wasn't working too well.
one of the files it rescues should be right no?


Return to When files disappear, Magic Rescue saves the day