How to fix a corrupted SD card without formatting: copy the files off first
Copy the files before any repair, because chkdsk and format both write to the card. Flash Drive Recovery opens the card read-only, lists what it finds in a preview and saves the files to a folder on your PC, so the card stays as it was for the fixes that follow.
SLR Lounge's data-first guide for photographers gives the same order: stop using the card, recover to a separate drive, check the files, then troubleshoot or reformat.
Scan the card and save the files to another drive:
Install the program on your PC, not on the card. When it starts, Windows asks for administrator permission. Allow it so the program can read the raw device when the card's volume does not respond. The drive list shows removable media only. Pick the card and run the quick scan first. It reads what is left of the file system and keeps folder names and paths.
If the quick scan comes back empty or with folders missing, switch to the deep scan. It reads every sector and finds files by their signature when no directory is left. Expect it to take about as long as reading the whole card. Our 14.5 GB test stick needed close to 15 minutes at 17 MB/s. Found files appear while the scan runs, and you can open photos and documents in the preview before saving them. Save them to the PC's internal drive, never back to the card.

What came back in our test:
We ran the same engine on a FAT32 USB flash drive and on images of it, using 32 files of eight types (117.2 MB) whose checksums we took first. To the program a card and a stick are the same kind of removable FAT or exFAT media, but the numbers below come from the stick, not from a physical SD card.If you would rather compare tools before choosing one, our roundup of SD card recovery software covers other options.
How to run chkdsk on an SD card and keep your files
Run chkdsk with the /f switch from an administrator Command Prompt, and only after your files are copied. Microsoft's chkdsk reference warns that repairs on FAT file systems usually change the file allocation table and sometimes cause a loss of data.
Type cmd in the Start menu, right-click Command Prompt and choose Run as administrator. Then run the check:
chkdsk E: /f
The /f switch fixes errors and needs the drive locked, so close any File Explorer window that has the card open. Adding /r also locates bad sectors and recovers readable information. It takes much longer, so use it after the files are copied. You can also right-click the card in File Explorer, open Properties > Tools and click Check.
chkdsk repairs corruption that blocks access, but it cannot bring back deleted or missing files. On FAT, the repair itself can lose data.
Command Prompt is also where diskpart lives. Leave its clean command alone unless you have given up on the files, because it wipes the card's partition table.
Why chkdsk is not available for RAW drives, and what to do instead
RAW means Windows found no file system it recognizes on the card, so chkdsk has nothing to repair and stops with "CHKDSK is not available for RAW drives." The card may still be healthy. The files often sit untouched in their sectors, where a recovery scan can find them by file signature.
For a RAW card, run the deep scan, save the files to the PC, open a few of them to check, and then format the card. Skip any tool that offers to rebuild or recreate the partition before your files are out, since that writes to the card first.
How to remove write protection from an SD card
Check the lock switch first. On a full-size SD card or a microSD adapter, slide it up toward the contacts. If Windows still says "The disk is write protected", try a second reader, then clear the read-only flag with diskpart.
The switch is a small plastic slider that tells the reader to block writes, and a loose one can slip back into the lock position. A microSD card has no switch of its own, so with an adapter the adapter's slider is the one that counts.
If both readers agree, open Command Prompt as administrator and type diskpart. Inside it, run these lines one at a time, replacing 2 with the number that list disk shows for your card. Check the size column twice so you work on the card and not on another disk.
list diskselect disk 2
attributes disk clear readonly
Microsoft's attributes disk reference lists the command and its options. When the flag comes back after a restart, or the card refuses writes in every reader with the switch off, treat the card as failing and replace it once the files are off. SanDisk's own community forum has threads on this message, and our guide to the SanDisk USB repair tool covers the same error on their flash drives.
How to format a damaged SD card after the files are copied
Format only after your files are on another drive and open there. The SD Association strongly recommends its SD Memory Card Formatter for every SD card type.
Install the formatter on the PC, select the card by its letter and size, and leave Quick format selected for the first try. Use Overwrite format if a quick format fails or the card keeps showing errors afterwards. It is slower and leaves nothing for a recovery tool to find.

Windows can format the card too. Right-click it in File Explorer, choose Format, pick the file system and keep Quick Format ticked. Under the SD card standard, SDHC cards up to 32 GB use FAT32 and larger SDXC cards use exFAT, and cameras expect the matching one. If the format stops with an error, read the section on dead cards before trying again.
Already clicked Format?
Stop using the card. A quick format writes a new, empty table and leaves the file contents in place until new photos overwrite them. In our exFAT test after a quick format, the scan found 142 of 144 files with their names. Our guide on how to recover a formatted SD card walks through that case step by step.Can a corrupted SD card be fixed? Match the error to the fix
Yes, when the damage is in the file system and the flash chip still works. Then a drive letter or chkdsk brings the card back, and a format does when they fail. A card that no reader detects, or one that stays read-only everywhere, has a hardware fault, and then the goal changes from fixing the card to saving the files.
Find the message Windows shows you in the first column, then read across to see how to fix corrupted SD card errors of that kind.
| What you see | Likely cause | First move | Risk to your files |
|---|---|---|---|
| Card not detected in any reader or PC | Reader, port or failed card | Second reader, another PC | None |
| Listed in Disk Management, no drive letter | Letter not assigned | Add a drive letter | None |
| "You need to format the disk" | Damaged file system | Read-only recovery scan | High if you click Format |
| RAW, chkdsk not available | File system not recognized | Deep scan, then format | High if you rebuild the partition first |
| Folders open, some files give errors | FAT errors | Copy files, then run chkdsk /f | Medium on FAT |
| "The disk is write protected" | Lock switch, reader or worn card | Switch, second reader, diskpart | Low |
| Format fails right away | Failing flash or controller | Copy what still reads, replace the card | The card is near its end |
In both high-risk rows Windows offers a fix that writes to the card.
How to fix a corrupted micro SD card on Android
Take the card out and try it in a PC first. A phone that reports the SD card as corrupted may be failing to read a card that a computer opens without trouble, and on Windows you can copy the photos off before you go near the phone's format option.
Before removing it, restart the phone so it mounts the card again. Then power off, take the card out and check the contacts for dirt or a bent adapter. If the PC reads it, copy the files and follow the Windows steps above. If the PC asks to format it as well, use the same order: micro SD card recovery software first, format last.
Android's own format option erases the card the same way Windows does. Menu names differ between Samsung, Pixel and other phones, so look for SD card or Portable storage under Settings > Storage, and treat any Format button there like the Windows prompt.
What causes SD card corruption?
SD card corruption usually starts with a write that did not finish. The card comes out during a transfer, or the camera battery dies while it is still saving. Worn flash and faulty readers account for most other cases, and they show up as write errors or a card that stops being detected.
A card keeps its file map in a few small areas near the start. A write that stops halfway can leave that map pointing at the wrong clusters while every photo is still intact, which is how one bad eject leaves an SD card corrupted, with a full card looking empty or RAW. Ejecting the card in Windows, or switching the camera off before you pull it, prevents most of these. The same failure modes hit USB sticks, and for a Kingston drive our Kingston USB recovery tool guide covers the vendor's own utility.
Can you fix a corrupted SD card that is physically dead?
Treat the card as failing when no reader or device detects it, when it turns write-protected again after you clear the flag, or when every format fails. At that point stop running repairs, copy whatever still reads and replace the card.
A card that goes read-only on its own is usually failing. Even a clean surface scan does not save it. In one case a 32 GB card refused all writes while a surface scan reported zero bad sectors. A recovery specialist's advice was to recover the files and move them to something more affordable.
If no reader detects the card and the photos matter, a data recovery lab can sometimes read the memory chip directly. That costs far more than a new card, so it has sense only for files you cannot replace. For photos that a reader can still see, try a desktop tool first, and our list of photo recovery software compares the options.
Sources