[SOLVED] Help, I deleted a file. How do I recover it?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71
Rep:
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.
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.
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.
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.
Distribution: CentOS 5.5 x86_64 (Desktop) & Linux Mint 9 (Netbook)
Posts: 71
Original Poster
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.