If Windows asks to format the card or USB drive, select Cancel. Formatting writes new file-system data and can reduce the chance of recovering the original folder structure.
Official Tools#
- TestDisk and PhotoRec official download
- PhotoRec documentation
- TestDisk documentation
- Windows Disk Management
PhotoRec, TestDisk, and QPhotoRec are distributed together by CGSecurity. The stable package is portable and does not require an installer.
Stop for Physical or Electrical Problems#
Do not continue a software scan when:
- the device connects and disconnects repeatedly;
- its capacity changes or appears as 0 bytes;
- the connector is bent, cracked, or hot;
- a full-size SD card has visible physical damage;
- the files are irreplaceable and the device is unstable.
For a microSD card, test one known-good reader. If it remains unstable, stop changing readers and seek professional evaluation when the files matter.
Confirm the Device in Disk Management#
- Connect the card or USB drive.
- Press
Windows + X. - Open Disk Management.
- Identify the device by capacity.
- Do not initialize, format, or create a new volume.
If the correct capacity appears, a read-only recovery scan may be possible. If the capacity is wrong or the device disappears, stop and address hardware first.
Run QPhotoRec#
QPhotoRec is the graphical version included with PhotoRec.
- Download the stable TestDisk and PhotoRec package.
- Extract the archive to the computer’s internal drive or another USB drive.
- Open
qphotorec_win.exeon Windows. - Select the affected physical device by capacity.
- Select the expected partition when it is listed. If no valid partition appears, select the whole physical device only after confirming its capacity.
- For FAT, exFAT, NTFS, HFS+, APFS, and most non-Linux sources, select Other as the file-system family. Choose the ext2/ext3/ext4 option only for those Linux file systems.
- Open File Formats and keep only the types you need.
- Choose Free for files deleted from an otherwise healthy file system. Choose Whole when the file system is corrupted or the device was reformatted.
- Choose a destination on a different physical drive.
- Start the search.
Do not choose a destination folder on the affected card or USB drive.
Choose the Scan Area#
QPhotoRec offers a free-space scan or a whole-partition scan before the search starts.
- Use free space for files deleted from an otherwise healthy file system.
- Use the whole partition when the file system is corrupted or the device was reformatted.
A whole scan takes longer and can produce many unrelated or duplicate files.
Expect Lost Filenames#
PhotoRec recovers files by their internal signatures. It may restore content without the original filename, folder, or date. Results are grouped into recovery folders.
Sort recovered files by type, size, and embedded metadata. Do not rename or delete the only recovered copy until it has been backed up.
If the Partition Is Missing#
TestDisk can search for a lost partition and list files. Start by using its analysis and file-listing functions. Copy important files to another drive before writing any partition-table change.
If the disk layout is unclear, stop before selecting Write. A wrong partition-table write can make later recovery harder.
Inspect the Recovered Set#
- Open a sample of each recovered file type.
- Check full-size photos, not only thumbnails.
- Play videos through the ending.
- Test archives with their integrity function.
- Copy verified files to a second backup.
Replace the card or USB drive when errors repeat, its capacity becomes unstable, verification fails, or a hardware test confirms a media fault. Keep a separate backup even when the device appears normal again.
