1

This question already has an answer here:

Recover Deleted Fils in Ubuntu 14.04

Last night I made a horrible mistake on my Ubuntu 14.04 machine and I deleted the directory that contained my project's Javascript files. All the files where in .js format. I've searched the web for a solution and I tried every tool out there.

Some of the tools I have tried so far are: photorec(testdisk), foremost, ext4magic, extundelete but no chance! None of them have found anything. It seems like they don't find .js files.

I don't know what I'm going to do without my codes. Please help.

marked as duplicate by G-Man, Anthony Geoghegan, Michael Homer, sebasth, Romeo Ninov Jan 22 '18 at 8:33

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.

  • 5
    now you know why it is routinely and very strongly recommended to back up your data. if you don't have a backup and none of the "this might, under some circumstances, be able to recover some of your data" tools do anything useful, then the data is gone and can not be recovered. – cas Jan 20 '18 at 7:42
  • @cas you're right. it was such a stupid mistake... – m7majidi Jan 20 '18 at 8:25
  • If you can't find it with the undelete tools, can it be that you moved or renamed files? What command have you used to delete files? Small comment, if there is still the chance that you find other tools over internet which will help you to recover the files it is better to minimize using the file system to prevent overwriting the blocks. – Sasha Che Jan 20 '18 at 15:14
  • You may also want to read this post: unix.stackexchange.com/questions/91297/… – Sasha Che Jan 20 '18 at 15:24
0

If you are having trouble finding something, it may be because it is in a hidden directory. If you deleted something, then it went to your 'Trash' in Ubuntu, unless you specified otherwise. If you haven't tried it already, I would check to make sure you have the option 'Show Hidden Files' enabled when searching through Directories and check out the 'Trash' Directory with it enabled.

Sometimes I've been able to get lucky and recover something that way but it's usually right after something was deleted and if you don't have an automatic purge cycle set.

You can read more into Hidden Files with the link below, if you are not familiar with it.

https://help.ubuntu.com/stable/ubuntu-help/files-hidden.html

  • unfortunately, they are permanently deleted, and there is nothing in trash – m7majidi Jan 20 '18 at 8:24

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