LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2010, 10:38 PM   #1
cricri
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 0
Unhappy 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??
 
Old 03-30-2010, 10:45 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,316

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by cricri View Post
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.
 
Old 03-30-2010, 10:45 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeat last entered command ? Vilius AIX 17 08-12-2011 07:54 AM
find -name command finds the wrong files Snouser Linux - Software 2 08-01-2008 10:45 PM
Recovering files lost by mount command thirumalesh Linux - General 2 06-09-2008 04:22 AM
Tried to set time with hwclock and entered something wrong! Rhiaanon Linux - Newbie 8 05-21-2007 05:52 PM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration