LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-22-2010, 12:18 PM   #1
coolgreen1
Member
 
Registered: Nov 2007
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71

Rep: Reputation: 17
Help, I deleted a file. How do I recover it?


Hi,

I deleted a file I need quite badly a couple days ago. I deleted it from GNOME and emptied the trash bin. Will I be able to recover it? It was in my home folder and I have been using that folder quite a bit since then. I need help urgently. I am using CentOS 5.5 x86_64

Any help would be greatly appreciated.

Last edited by coolgreen1; 11-22-2010 at 03:33 PM.
 
Old 11-22-2010, 12:40 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
According to your distro icon you are still working on this machine? Then I doubt that you can recover your file. But you can give it a try. Shutdown your system immediately, best would be to pull the power-plug. Then start fom a live medium like grml and try to recover your file with photorec. It will find many files, you have to search (and pray) that your file is amongst them.
Next time: Backup your important files. If you delete accidently a file, immediately shut down the system, at best with pulling the power plug. Start recovery from a live medium.
 
Old 11-22-2010, 12:47 PM   #3
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Rep: Reputation: 29
Note: He wants you to pulling the power plug, because shutting down the system (killing processes etc.) could possibly overwrite the file. You can avoid this by pulling the power plug.
 
Old 11-22-2010, 12:50 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
A couple days ago ? I doubt you can recover it. Try running photorec as recommended and dump files to a different drive. Do not write any more files to the current drive.

I don't condone the "pull the plug" technique, I don't see how this would help.
 
Old 11-22-2010, 12:50 PM   #5
coolgreen1
Member
 
Registered: Nov 2007
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71

Original Poster
Rep: Reputation: 17
The system as already been shutdown since then. This happened a couple days ago, and I just noticed today I deleted it.
 
Old 11-22-2010, 12:51 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Then chances are very low, but you can still try.
 
Old 11-22-2010, 12:57 PM   #7
coolgreen1
Member
 
Registered: Nov 2007
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71

Original Poster
Rep: Reputation: 17
Well, it says it is recovering a ton of stuff. Does recovered mean deleated or is it also counting still excisting files?
 
Old 11-22-2010, 01:02 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It will "recover" all files, not only the deleted.
 
Old 11-22-2010, 01:56 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <Linux General> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-22-2010, 03:32 PM   #10
coolgreen1
Member
 
Registered: Nov 2007
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71

Original Poster
Rep: Reputation: 17
It appears the file is unrecoverable. I will just have to start over. I have made a folder that will not let me delete it or its contents that I will be saving needed docs in so this will not happen again.
 
Old 11-22-2010, 03:39 PM   #11
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by coolgreen1 View Post
It appears the file is unrecoverable. I will just have to start over. I have made a folder that will not let me delete it or its contents that I will be saving needed docs in so this will not happen again.
You might also want to find a backup solution. I've had luck with BackInTime, which gives you a timeline of past versions of a file. You save the backups to another directory (preferably on an external medium e.g. USB drive etc.). You can schedule the backups to occur at any frequency you desire.
 
  


Reply



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
Trying to recover a deleted file. mckinnon81 Linux - Newbie 1 05-02-2010 10:56 PM
Can I recover a deleted file in Linux ? josedsilva Linux - General 9 01-05-2010 07:49 AM
Need help to recover Deleted file - (file was saved in doc) Pravab Ubuntu 2 08-17-2008 10:57 AM
I have deleted a file thru rm can i recover it ricka343 Linux - General 2 06-27-2006 03:28 AM
How to recover deleted file v1nc3nt Linux - Newbie 5 05-23-2006 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 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
Open Source Consulting | Domain Registration