I have two .html files used for bookmark backups from two usb sticks and they were deleted a couple of weeks ago, so I'm trying recovery using both TestDisk (TD) nor PhotoRec (PR), but neither one is working. Due to using Linux, sudo is required and then TD shows the two sticks in the "Select media" list, so one stick is 2G and usb 2.0, while the other is 4 GB usb and I'm not sure if it's 2.0 or 3.0, but TD says G3. If I select the 2GB stick and press Enter to continue, then the next page shows a list of partition types to choose from, so Intel, EFI GPT, Humax, Mac, None for non-partitioned jmedia, Sun and XBox.
I chose Intel and pressed to continue. The subsequent page provides a list of functions to choose from. Analyze is the fist, so I began with it, but it reports one or more errors.
That screen unfortunately doesn't provide a way to return to the selection list for partition type, for I want to try with None, but pressing Q, repeatedly, finally permitted to just get out of TD. I just selected the 2 GB stick and the None option for partition type. This reports the following output from the Analyze function.Disk /dev/sdb - 2008 MB / 1915 MiB - CHS 1020 62 62
Current partition structure:
Partition Start End Size in sectors
check_FAT: Unusual number of reserved sectors 7680 (FAT), should be 1.
Warning: number of heads/cylinder mismatches 16 (FAT) != 62 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 62 (HD)
1 * FAT16 LBA 2 6 5 1020 16 48 3913856
Warning: Bad starting sector (CHS and LBA don't match)
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
>[Quick Search] [ Backup ]
Try to locate partition
A Search option is provided, so I ran this and this found the correct partition type of FAT32. I then had the program continue and eventually was permitted to indicate where the file to be undeleted is located. I then selected the file, which is shown in red, and used the 'c' option to have TD work on only this file. TD then showed my Linux /home directly and said to indicate which one to saved the apparently recovered file. I chose my Documents subfolder and had TD try to save to this. Then I used a file manager to check that folder and it's totally empty. That's also true when trying the ls and "ls -a" commands using a terminal window.Disk /dev/sdb - 2008 MB / 1915 MiB - CHS 1020 62 62
Current partition structure:
Partition Start End Size in sectors
P Unknown 0 0 1 1020 16 48 3921920
>[Quick Search]
Try to locate partition
So, I went back to the file selection screen to try the recovery operation one more time, finding the list of files were now headed, saying, with the following message:
Why am I not seeing the file where I told TD to save the copy to?Copy done! 1 ok, 0 failed