cgrenier wrote: 13 Nov 2017, 20:31
Try PhotoRec 7.1-WIP to recover your data. It will not recover the original filenames but it's better than nothing.
It is still readable in Linux so if nothing else works then I'd rather use rsync to copy everything to another drive. That way I can keep the file names.
However, I think I figured out the reason TestDisk was having trouble with the clone drive. The cloning software I used showed the clone has a partition ID of 0x7 (NTFS, exFAT) and the original flash drive had a partition ID of 0xb (FAT32). Seems like the cloning software had no trouble finding the lost partition on the original drive but was setting the wrong partition ID on the clone. I changed the clone partition to 0xb. The software also has an option for changing a partition from extended to primary so I used that on the clone. Changing the partition ID and making it primary didn't make the file system readable so I started TestDisk. I selected disk /dev/sdc, Intel, Advanced, Boot,
selected Rebuild BS, some scanning happened and I was able to browse the file system.
Then I selected Write, quit TestDisk, removed the drive and reconnected it. Rebuilding the BS worked. Now Windows Disk Management shows I have a primary partition and chkdsk finds no issues with the filesystem.