Drive Restorer
Windows 10 & 11 Buy license · $29.95
Troubleshooting

How to Fix a Corrupted SD Card Without Losing Your Photos

How to fix a corrupted SD card without losing data: recover or copy the photos first, then repair or reformat the card, and know when to replace it.

Updated 4 minute read The Drive Restorer team

To fix a corrupted SD card without losing data, get the photos off the card before you repair anything. First try another card reader and copy whatever is readable. If the card shows as RAW, asks to be formatted or has missing photos, scan it with recovery software and restore the files to your PC. Only once your photos are safe should you run CHKDSK or reformat the card, ideally in the camera. Repairs and formats change the card, so doing them first is how photos get lost for good.

Here is how to recognize a corrupted card, rule out simple causes, rescue your files and decide whether the card is still worth using.

Signs your SD card is corrupted

  • The camera shows "Card error", "Cannot read card" or asks you to format.
  • Windows says "You need to format the disk in drive E: before you can use it".
  • The card shows in File Explorer but folders are empty, or photos show gray thumbnails and will not open.
  • File and folder names are garbled, or sizes are wildly wrong.
  • Disk Management shows the card's file system as RAW.
  • Copying stops part way with an error such as "The request could not be performed because of an I/O device error".

If the card does not show up in Windows at all, see SD card not showing up in Windows first. That is a different problem with different fixes.

Step 1: Rule out the reader and the lock switch

  1. Check the lock switch on full-size SD cards and microSD adapters. A locked card is read-only, which is fine for recovery but stops repairs and formats.
  2. Try another reader. Built-in laptop readers and cheap microSD adapters cause a surprising number of "corrupted" cards. A separate USB card reader is a good test.
  3. Try the card in the camera it came from. If the camera shows the photos, copy them using the camera's USB connection.
  4. Clean the contacts gently with a dry, lint-free cloth if they look dirty.

Step 2: Copy everything you can read

If File Explorer shows some photos, copy the whole DCIM folder to your PC straight away. Do not open and edit photos on the card. If a copy fails on one file, skip it and carry on. You can try that file again later with a recovery scan.

Do not click Format disk when Windows offers it, and do not format the card in the camera, until your photos are safe. Click Cancel.

Step 3: Recover photos from the corrupted card

If photos are missing, the card is RAW, or files will not copy, a recovery scan reads the card directly instead of relying on the damaged file system. With Drive Restorer:

  1. Insert the card in a reliable reader and cancel any format prompt.
  2. Select the card. If it shows as RAW or has no drive letter, pick it by its size.
  3. Run a quick scan. If the old FAT32 or exFAT structures are readable, photos come back with their names and folders.
  4. Run a deep scan for anything missing. It reads every sector and recognizes photos, camera RAW files and videos by their content, which works even when the file system is badly damaged.
  5. Filter by type, such as JPG, CR3, NEF, ARW or MP4, and preview the results. The recovery chance rating flags files that are damaged.
  6. Restore to your PC or another drive. Nothing is written to the card during the scan or restore.

A deep scan reads the whole card, which can take a while on a 128 GB or 256 GB card. You can save the scan and resume it later if you need to stop. If the card is very slow or keeps disconnecting, it may be failing: image it first and scan the image so the card is read only once.

Step 4: Repair the card

With your photos safely copied and checked, you can try to make the card usable again.

Option A: CHKDSK, for minor file system errors

  1. Open Command Prompt as administrator.
  2. Type chkdsk E: /f (replace E: with the card's letter) and press Enter.

CHKDSK can fix small inconsistencies, but it may delete damaged entries or move fragments into a FOUND.000 folder. It does not run on RAW cards. If it removed files you needed, see CHKDSK deleted my files.

Option B: Format, the more reliable fix

Formatting gives the card a fresh file system. The best place to do it is in the camera you shoot with, because it sets up the card exactly as that camera expects. On Windows, right-click the card in This PC, choose Format, and pick exFAT for cards over 32 GB or FAT32 for 32 GB and smaller. A quick format is enough for reuse. A full format also writes to every sector, which takes longer but will reveal write errors on a failing card. The trade-offs are covered in quick format vs full format.

Common causes of SD card corruption

CauseHow to avoid it
Removing the card while the camera is still writingWait for the write light to go out, and turn the camera off first
Pulling the card from the PC without ejectingUse Eject in File Explorer before removing it
Battery dying during shooting or recordingSwap batteries before they are nearly empty
Using one card in several cameras or phonesFormat it in each device before use
Worn-out or counterfeit cardsBuy from reputable sellers and retire old cards

Should you keep using the card?

A single corruption caused by a pulled card or a flat battery does not mean the card is bad. After a format in the camera, it is often fine. But if a card corrupts again, shows write errors, or a full format reports problems, replace it. Cards are cheap compared with a lost shoot. For habits that stop this happening at all, read how to avoid losing photos on an SD card.

Frequently asked questions

How do I know if my SD card is corrupted?

Typical signs are a camera showing a card error, Windows asking to format the card, missing or unreadable photos, or the card showing as RAW.

Can CHKDSK fix a corrupted SD card?

It can fix some file system errors, but it may also remove damaged files. Recover the photos before running it.

Should I keep using an SD card that was corrupted?

Once the photos are safe, a full format may make it usable, but a card that fails more than once should be replaced.

Get three guides like this every month, plus software update notices.Subscribe →