This question already has an answer here:
My USB was in the USB port and at the time I was copying something to my HDD I decided to cancel it. Immediately afterwards I decided to remove the USB but I forgot to press safe eject.
As a result of this, when I re-inserted my flash drive into the USB port, I saw one folder with some files in it which was one of the many folders I had on my USB, and
AUTORUN.INF which wasn't there before. The rest of the files are gone.
The strange thing is that when I check the partition in Gparted it shows that my USB still have some files on it but when I decided to check for hidden files (CTRL+H) there was only one folder .Trash-1000. I also tried to recover some data via Gparted (GPart) but it didn't detect any partitions. According to Gparted the files are still there but I can't see them. I have also checked it on another distro and the results are the same. The file system on my flash drive is FAT32.
What happened to my files and how can I restore them?