"No matter whether it was your fault or not, things can happen to the data stored on your devices. Hard drives, solid state drives, and removable media can all potentially “lose” files because of numerous different causes. Additionally, sometimes you may delete a file – no matter if on purpose or by accident – and then determine later on that you actually need it.
Instead of freaking out over the fact that the file appears to be gone, it may be a better idea to try a file recovery tool first to recover data on Linux..."This article reviews Safecopy, which works like the Windows freeware Unstoppable Copier, but maybe with more features. It also reviews TestDisk a formidable tool which: "helps recover lost partitions, make disks bootable again, fix the partition table, restore the master boot record, restore boot sectors and file system tables, undelete files from NTFS, FAT, exFAT, and ext2 filesystems, and copy files from deleted NTFS, FAT, exFAT, and ext2/3/4 filesystems." Wow that's a lot and very nice. It's been mentioned in this blog before but described well and succinctly here.
Finally the program PhotRec is reviewed, which is apparently made by the same makers as TestDisk. This app recovers images of many types by looking at the raw data of the disk, ignoring parturition operating systems and the like...