PhotoRec is safe to use, it will never attempt to write to the drive or memory support you are about to recover lost data from. I dont know anything about that, fstrim or these other applications. PhotoRec ignores the filesystem and goes after the underlying data, so it'll work even if your media's filesystem is severely damaged or formatted.
Testdisk image.dd software#
PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (Photo Recovery) from digital camera memory. PhotoRec is a signature based file recovery utility and may be able to recover your data where other methods have failed. The utility provides command line interface to create disk images in a system running UNIX & LINUX OS. If a lost file is still missing, give PhotoRec a try. Run PhotoRec on a disk image ( image.dd): sudo photorec path/to/image.dd files and directory from FAT12, FAT16 and FAT32 filesystem, files from NTFS partition since version 6.11, files from ext2 filesystem.Run PhotoRec on a specific device: sudo photorec /dev/sdb.My image still was readable, so try choosing 'advanced', 'list', and then you can copy the file to another disk if testdisk can view folders. Recover lost files from harddisk, digital camera and cdrom Examples (TL DR) Once you're there, try selecting the disk, choose the partition table type (for me it was Intel, hopefully it will detect it for you as well) and start your recovery.