LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rm -rf /home (https://www.linuxquestions.org/questions/linux-newbie-8/rm-rf-home-245813/)

plainwlkr8 10-21-2004 11:55 PM

rm -rf /home
 
so while trying to delete something in my home directory, i acutally destroyed my personal folder /home/plainwlkr8 ... quite dumb, now i'll remember to be IN the folder when i do that in root. so anyways. i learned the hard way. my next obious question is... can i recover it in anyway? im running mandrake 10. im guessing hardware isnt an issue here just my os. any reading would be greatly appreciated. im googling as i write this. many thanks

cyberliche 10-22-2004 12:23 AM

Most likely there isn't a way to recover. There are a number of professional recovery tools available, but most are pretty hard to use for the amature. I've used The Coroner's Toolkit with some success in the past. You may also wish to check out The Sleuth Kit .

I wouldn't get your hopes up though. Recovering files is can be difficult undertaking, even for professionals.

darthtux 10-22-2004 12:30 AM

Make regular backups!! Believe me, most people have learned the hard way.

You might search on http://freshmeat.net

DrAxeman 10-22-2004 05:11 AM

Remember, DO NOT USE THAT SYSTEM TO LOOK FOR, OR COMPILE TOOLS! When you delete something what you really are doing is marking that part of the disk as "over-writtable" When you start writting to that partition, you run the chance of the OS writting over that part of the harddrive you want to recover.

When something like that happens the best thing to do is Immediately pull that HD out of use, and leave it unused until you have the tools ready to attempt to recover the data.

Good Luck.

trickykid 10-22-2004 07:15 AM

/me thinks to himself, another good reason to not be logged in as root... ;)

Squall 10-22-2004 08:30 AM

If you were trying to delete something in your home directory, why were you even in root?


All times are GMT -5. The time now is 06:25 AM.