How to Fix a Corrupted SD Card Without Losing Photos
Your camera says “card error,” your computer says the card needs formatting, or half your photos open as grey blocks. If you’re wondering how to repair a damaged SD card, the order you do things in is everything. Most repair steps write to the card, and writing to a corrupted card can overwrite the very photos you’re trying to save. So the rule is simple: recover first, repair second. This guide covers both, plus how to tell when a card can’t be repaired at all.
Step 1: Stop using the card
The moment you notice a problem:
- Take the card out of the camera, drone or phone. Don’t keep shooting on it.
- Don’t format it, even if the camera or computer asks you to. See SD card needs formatting for why that prompt is a trap.
- Don’t run repair tools yet. CHKDSK, First Aid and “SD card repair” utilities change the card’s contents.
Step 2: Try another reader and another computer
Many “damaged” cards are fine. The reader is the problem.
- Try a different card reader, preferably a simple USB reader rather than a laptop’s built-in slot.
- For microSD cards, try a different adapter. Adapters wear out and fail.
- Try another computer, ideally with a different operating system.
- Check the lock switch on full-size SD cards. If it’s slid down, the card is read-only.
If the card isn’t detected at all, see our guide to an SD card not showing up.
Step 3: Copy everything off the card
If the card mounts and you can see your files, copy everything to your computer right now, before trying any fix. Copy whole folders (usually DCIM, plus any video folders your camera uses), not just the files you remember. Then check that the copies open.
If some files won’t copy, skip them and get the rest first. A card that’s struggling may not mount next time.
Step 4: If the card doesn’t mount, recover from it first
If the computer detects the card but can’t open it (it shows as RAW, asks to be formatted, or shows the wrong size), your files are usually still there. The file system is damaged, not the photos.
The safe approach:
- Make an image of the card (a sector-by-sector copy) where your recovery tool supports it, and work from the image rather than the card.
- Scan the image with photo recovery software and save the results to your computer, never back to the card.
- Check that the recovered files open before doing anything else.
Our guide to recovering deleted files from a USB drive or SD card explains how to choose and use recovery software safely.
Step 5: Now repair the SD card
Once your files are safe, or you’ve accepted they’re not needed, you can repair the card.
Check it in Disk Management (Windows)
Right-click Start and open Disk Management. Find the card by its size.
- No drive letter: right-click the partition, choose Change Drive Letter and Paths, and add one.
- RAW or Unallocated: the file system is damaged or missing. CHKDSK won’t work on a RAW volume (see RAW drive: CHKDSK not available), so formatting is the repair.
- “No Media” or 0 bytes: the reader sees the slot but not the card’s storage. That points to a failing card.
Run CHKDSK (Windows)
If the card has a drive letter and a recognized file system (FAT32 or exFAT), open Command Prompt as administrator and run:
chkdsk E: /f
Replace E: with your card’s drive letter. CHKDSK fixes file system errors, but it can also move damaged files into a FOUND.000 folder or remove them, which is why it comes after recovery, never before.
Use First Aid (Mac)
Open Disk Utility, choose View > Show All Devices, select the card’s volume and click First Aid. As with CHKDSK, only do this once your files are copied.
Reformat the card in the camera
For a card you’ll keep using, the most reliable repair is a fresh format in the camera or device that will use it. That sets up the file system and folders the device expects. On a computer, the SD Association’s SD Memory Card Formatter is a good alternative to the operating system’s built-in format tool.
After formatting, take a few test shots and check that they open on your computer before trusting the card with anything important.
When the card is read-only or write-protected
Sometimes a card mounts and you can read your files, but you can’t delete, edit or format anything. Or changes seem to work and then “come back.” If the lock switch isn’t the cause, the card may have switched itself into read-only mode. Flash memory controllers can do this when the memory is wearing out, to protect the data that’s still there.
That can’t be repaired. Copy your files off right away, then replace the card. Our guide to the disk is write protected covers the checks for the lock switch and Windows settings before you conclude it’s the card.
When the card is physically damaged
Some cards can’t be repaired with software:
- Not detected on any reader or computer
- Cracked, bent or snapped cards, or broken contacts
- Water or heat damage
- Cards that show 0 bytes or the wrong capacity
Many modern SD and almost all microSD cards are monolithic. The controller and memory are packaged together in a single sealed piece, with no separate memory chip to remove. Recovering data from a dead monolithic card means accessing the memory through tiny contact points on the card itself and rebuilding the data. That takes lab equipment and experience. Repeatedly plugging in a failing card or trying more repair tools won’t help and can make things worse.
Keep it from happening again
- Eject the card properly before removing it from a computer.
- Don’t remove a card while the camera is writing or turn the camera off mid-save.
- Format cards in the camera rather than deleting files on a computer.
- Copy photos off regularly and keep a second copy. The 3-2-1 backup rule is a good standard.
- Buy from reputable sellers. Counterfeit cards can report more capacity than they really have and corrupt files once that’s exceeded.
The bottom line
To repair a damaged SD card without losing photos, stop using it, try another reader, and copy or recover every file before doing any repair. Then use Disk Management, CHKDSK or Disk Utility, or simply reformat the card in your camera. A card stuck in read-only mode is wearing out and should be replaced once your files are off. A card that isn’t detected anywhere, or is physically damaged, needs a lab.
If your SD card is physically dead or recovery software can’t find your files, our SD card recovery service can help. It’s one flat $1,200 price for a single device, with free prepaid shipping, and you pay nothing unless the recovery succeeds.
