Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have moved some files to the trash and I emptied the trash. I would like to recover the files. I am running Xfce.

I have tried to search in my system with find and locate for the files, without any success.

Is it possible?

share|improve this question

marked as duplicate by terdon, karel, Eric Carvalho, Luis Alvarado Jul 24 '14 at 21:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I don't think the fact that you are using Xfce makes much difference. The files have now been deleted from the file system, so you need to look for recovery solutions for the file system you are using. – David Edwards Mar 24 '14 at 15:43

Neither find nor locate will help you here, you have deleted the files so they are no longer on your file system. You might be able to recover them but it will not be easy.

Files are simply pointers to inodes on the disk. Basically, the file tells the computer which exact part of the disk the data is written to. When you delete a file, the file data are not affected, you can recover it by finding the relevant area of the disk and reading from it. However, since there is no file, there is nothing to stop the computer from writing to that region of the drive. So, to maximize your chances of recovering these files, you need to stop writing to the drive (stop creating new files).

  1. Install a program that can help undelete your files

    sudo apt-get install testdisk
  2. Run it

    sudo testdisk 

You can now use the options presented to you to attempt to undelete your files. I recommend you read the tutorial here to get a better understanding.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.