FedoraThis forum is for the discussion of the Fedora Project.
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.
Well, I've done the age-old trick: in a fit of ... something, I moved a few files from a directory in my home directory structure to the KDE trash folder, and then deleted them from the trash folder.
About a minute later I regretted this, and now I'd like to see if there's any way to recover the files.
First, are there any good utilities for restoring accidentally deleted files? If so, where would I look for these files? Does the KDE trash config file actually correspond to a physical directory somewhere, or do the files just remain hidden in their original location?
Most distributions have file recovery software in their repositories.
Look them up and see which suits your setup.
There are general utilities like magicrescue and they get as specific as you like, such as jpegrecover.
Testdisk is really about recovering lost partitions and photorec is about recovering image files - though the site boasts that it recovers other files as well. As usual, look in your repos first, then go for third parties.
We cannot be specific though, because we don't know your file-system and file types. If worst comes to worst you can do file recovery with grep.
However:
You don't have to go anywhere to look for the files, you install the utility and you run it.
The "move to trash" action does move the file to a trash directory. Something like ~/.local/share/Trash ... you realise that the file itself does not have to move in the sense of changing its location in memory?
Last edited by Simon Bridge; 05-28-2010 at 02:36 AM.
Testdisk is really about recovering lost partitions and photorec is about recovering image files - though the site boasts that it recovers other files as well. As usual, look in your repos first, then go for third parties.
Hello,
I've used PhotoRec on various occasions to recover deleted files and it doesn't 'only' recover image files.
@Simon - Sorry, I neglected to say that I'm running 64-bit Fedora 11.
@Eric - Thank. photorec worked pretty well, restoring some 100,000 image files. Unfortunately, the ones I was hoping to recover were not among them, so it appears they are lost forever.
@JZL2401-U - I try to check those out, although as time goes on, I'm getting less hopeful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.