Your DSLR just threw an "SD Card Error," or your Android phone suddenly declared your MicroSD card "corrupted" and is begging you to format it. The photos aren't gone. In most cases, the physical memory blocks are perfectly intact, but the file system or partition table pointing to them has failed.
Do not hit the format button. Every time you format or write new data to a failing drive, you permanently overwrite the raw data underneath. We are going to bypass the corrupted file system entirely and carve the photos directly out of the flash memory.
Immediately remove the SD card from the camera or phone. Do not take any more photos, and do not attempt to view the gallery. Mount the card to a Windows PC using a physical USB card reader.
1. The Android "Unsupported Card" Scenario
If you use a MicroSD card in an Android & iOS device, the operating system is notoriously fragile when it comes to FAT32 or exFAT file tables. A sudden reboot or a dying battery can corrupt the mounting process. Android will immediately claim the card is "Unsupported" and offer to format it.
Ignore the phone. Pop the MicroSD into a USB adapter and plug it into your PC. Sometimes, Windows can mount the drive natively even if Android refuses to. If Windows prompts you to recover files when the drive needs to be formatted, cancel the prompt. We will run a deep check using the terminal.
# Open CMD as Administrator and type the following.
# Replace "X" with the actual drive letter of your SD card.
chkdsk X: /f /r /x
This command attempts to fix logical errors and recover readable information from bad sectors. If it completes successfully, your photos should be visible in File Explorer again.
2. The Photographer's Method: Carving RAW Files with PhotoRec
If CHKDSK fails, or your camera wiped the header of the SD card, we need to extract the raw data blocks. We will use PhotoRec, a free, open-source data carving tool that ignores the file system entirely and hunts for the specific binary signatures of JPEGs, MP4s, and RAW formats (CR2, NEF, ARW).
- Download TestDisk (which includes PhotoRec) from the CGSecurity website. Extract the ZIP file to your desktop.
- Inside the extracted folder, run
qphotorec_win.exe(the GUI version of PhotoRec). - From the top dropdown, select your corrupted SD card.
- Select the specific partition (usually labeled FAT32 or exFAT). If no partition is visible, select No partition (Whole disk).
- Click File Formats and explicitly check the boxes for the file types you want (e.g.,
jpg,mov,tx?). Deselecting unnecessary files speeds up the scan massively. - Set the destination folder on your computer's hard drive—never save recovered files back onto the corrupted SD card.
- Click Search and let it run.
Info!
PhotoRec will spit out thousands of files with alphanumeric names (like f1234567.jpg) because the original metadata linking the file name was destroyed. You will need to manually sort through them or use an EXIF reader to rename them by date taken.
3. What If the Drive is Completely Dead?
If your PC doesn't even recognize that a USB drive has been plugged in, or it shows up in Disk Management as "No Media" with 0 bytes, the memory controller on the SD card has likely suffered a catastrophic hardware failure. Software cannot fix dead silicon. At this stage, your only option is shipping the card to a clean-room data recovery service, which typically runs upwards of $500.
If you decide to cut your losses, make sure you physically destroy the memory chips inside the card before tossing it, utilizing the same security mindset you'd use to remove personal information from an old Android phone.
Frequently Asked Questions
Can I recover photos if I accidentally formatted the SD card?
Yes, provided you performed a "Quick Format" (which only deletes the index) and haven't shot any new photos since. If you did a "Full Format" on a PC, or recorded new video over the formatted card, the old data is overwritten and permanently gone.
Will these tools work on a corrupted external hard drive?
Yes. PhotoRec and CHKDSK function identically on spinning disk drives, SSDs, and flash drives. However, if you are dealing with a larger mechanical drive, you should review our guide to recovering data from an unreadable external hard drive first, as failing read/write heads require different handling.
Why did my SD card corrupt in the first place?
The most common causes are ejecting the card while it is still writing a file, letting your camera/phone battery die mid-save, or simply exceeding the physical write-cycle limits of cheaper flash memory.
Conclusion
Flash memory is volatile, and SD cards are consumable items. They will eventually fail. Once you successfully extract your photos using the methods above, snap the corrupted SD card in half and buy a new one. Do not attempt to reformat it and put it back in your camera—you are just setting a trap for your future self.
