I can not recover files from trash

I accidentally deleted some large files (10gb which is associated with Truecrypt) but I didnt empty the trash. It is inside the trash, when I run BleachBit I see them but I can't recover those files from the trash.

Trash looks empty, 'Restore selected items' looks faded and 'Empty trash' looks highlighted. But I didn't empty it. When I delete other files they disappear but they don't show inside the trash bin.


Normally you'd left-click on the trashcan icon, select the file you want to restore, and click on 'Restore selected items'.

If that's not working for you, try this:

  • Open a terminal (ctrl-alt-t) Type this to go to the trash directory:

    cd .local/share/Trash/files
    
  • To see the files in the trash directory type:

    ls
    
  • If you see the file you need to restore, use the mv command to move it elsewhere in the filesystem:

    mv my-large-file.tc ~/Desktop
    
    • If the file has a strange name you can use quotes around it, like this:

      mv "1940's hits (rock)" ~/Desktop
      

    Alternatively, type mv, then the first characters of the filename (for example, 1940), then press the TAB key to get filename autocompletion, which will take care of adding necessary quoting automatically. If the generated filename has characters like \, it's OK, those are for quoting special characters.


I had the same problem and roadmr's solution didn't work for me either. Then I realized that my files were from USB. When you delete the files on some other media (e.g. USB) it does NOT go to .local/share/Trash but it goes to .Trash* directory on that device.

For example, my USB was mounted on /media/DA6B-3E12 and the files were on: /media/DA6B-3E12/.Trash-1000/files.

You can now use the mv command to restore them.

mv /media/DA6B-3E12/.Trash-1000/files/your_song.mp3 ~/Desktop