LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HELP, I entered the wrong command... lost all my files (https://www.linuxquestions.org/questions/linux-newbie-8/help-i-entered-the-wrong-command-lost-all-my-files-799010/)

cricri 03-30-2010 09:38 PM

HELP, I entered the wrong command... lost all my files
 
hello, hrm, i have a major problem

I was tired and went to delete a directory and its content and forgot to speficy the directory name, i entered: rm * -R
Now lost all what was in my home directory :((((

HELP, i must get those files back, what can i do??

TB0ne 03-30-2010 09:45 PM

Quote:

Originally Posted by cricri (Post 3918620)
hello, hrm, i have a major problem

I was tired and went to delete a directory and its content and forgot to speficy the directory name, i entered: rm * -R
Now lost all what was in my home directory :((((

HELP, i must get those files back, what can i do??

There are many thread on here that deal with recovering deleted files on Linux, so they'll be good reading, and probably can't add much to them that hasn't been said. A quick search can turn them up. First thing, though....STOP using the system immediately.

The only other alternative is to restore from backup.

pixellany 03-30-2010 09:45 PM

First, don't do anything that could cause a write to that drive. Ideally, run the computer from another drive---or mount the problem drive into a different computer.

The most often recommended tools are "testdisk" and "photorec"---both from the same author: http://www.cgsecurity.org/

When running a recovery, you need adequate space on a drive (NOT the one you are recovering from)


All times are GMT -5. The time now is 11:07 AM.