Page 1 of 1

Deleted files using rm -rf /

Posted: 21 Mar 2012, 12:54
by ragnazorg
What happened was my server got compromised.

The hacker did rm -rf /

which resulted to my files being deleted.
I want to restore the files from a user.
Im running in debian squeeze in Xen Server. I have a Vritual drive which it is installed. Now im wondering how can I restore or check the certain files I need. Some files I need are mostly 300mb++ in size.

is it possible to restore them?

Re: Deleted files using rm -rf /

Posted: 25 Mar 2012, 09:42
by cgrenier
Try TestDisk, Advanced, Undelete but usually it only works for ext2.
If it doesn't work, run PhotoRec 6.14-WIP

Code: Select all

wget -N http://www.cgsecurity.org/testdisk-6.14-WIP.linux26.tar.bz2
tar xjf testdisk-6.14-WIP.linux26.tar.bz2
cd testdisk-6.14-WIP
sudo ./photorec_static
Good luck