LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-10-2005, 06:57 AM   #1
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
Question rm -R, lost my files, any way to recover? mm.. :)


mm.. I removed some files I had, mainly some code I had been doing. I had the directory ~/Projects/learn/code/ and then i had a link to "learn" at ~/public_html/programming/ , I for some reason thought that the directory "code" was a link to a directory and not a real directory and i did rm code , didn't work, so i did rm -R code and then it worked, but soon i realized that it wasn't a link and that I had removed all my code..

Is there any way to recover from a rm command? I don't have any backups.
 
Old 05-10-2005, 07:39 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Sorry I didn't paste a link on the previous message. First try the midnight commander program on your system. It has an undelete tool. Also, google for "linux undelete" or "linux recover" for utilities that may do this. It depends on what filesystem you are using. It may or may not be possible.

For text files you may be able to grep for the file on the raw device:
grep -a '#include' /dev/hda1
This may be hit and miss and a lot of work, but it has been done. It helps if you know how they begin. Also, copying the raw device to an image file on another drive, and maybe using split to make the process more manageable may help you recover the information.

Last edited by jschiwal; 05-12-2005 at 05:19 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover lost NTFS files from Linux??? tarwood Linux - Newbie 4 06-30-2005 04:02 PM
recover lost DOS files 90-60-90 General 5 02-16-2005 10:41 PM
Data Lost! Is It Possible To Recover? rddreamz Linux - Newbie 3 11-17-2003 11:15 PM
Recover a lost partition!!!!! Caveman Linux - Newbie 4 09-26-2003 02:10 PM
Recover lost files? chup Linux - General 2 08-23-2003 11:28 AM


All times are GMT -5. The time now is 05:05 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration