An SD card that needs fixing can show many different symptoms: not detected, showing as RAW, asking to be formatted, write-protected, showing 0 bytes, or files disappearing. Each symptom points to a specific fix.
Part 1. Diagnose the SD Card Problem
| Symptom | Likely Cause | Fix |
|---|---|---|
| "You need to format the disk" | RAW file system | Recover files first, then format |
| Card not detected at all | Card reader or lock switch issue | Try different reader |
| Write protected error | Physical lock or software attribute | Check lock switch, use diskpart |
| Shows 0 bytes / empty | Hidden files or corrupted directory | attrib command or CHKDSK |
| Files showing but won't open | File corruption | Recovery software |
| Slow write/read speed | Card nearing end of life | Back up and replace |
⚠️ Important: Before running any repair, recover your files first if the SD card contains important photos or videos. CHKDSK and format operations can permanently erase some file recovery options.
Part 2. Fix on Windows — CHKDSK
chkdsk E: /f /r
Replace E: with the SD card's drive letter. After CHKDSK completes, reconnect the card and test.
If CHKDSK returns "CHKDSK is not available for RAW drives" — skip to Part 4 (TestDisk) or use recovery software.
Part 3. Fix on Mac — Disk Utility First Aid
- Open Disk Utility → select the SD card
- Click First Aid → Run
- After completion, reconnect the card
Part 4. Remove Write Protection With diskpart (Windows)
diskpart
list disk
select disk X
attributes disk clear readonly
clean
create partition primary
format fs=fat32 quick
assign
exit
⚠️ Important:
cleanremoves all data. Only run this after recovering files, or if the card has no data you need.
Part 5. Try a Different Card Reader
Before software fixes: test the SD card in a different reader, different computer, or directly in a camera. If it works in another device, the card reader (not the card) is the problem.
💡 Tip: Old or cheap card readers frequently cause intermittent SD card detection failures. A quality USB 3.0 card reader (with UHS-II support if you use fast cards) prevents most reader-related issues.
🗣️ r/photography user: "SD card kept showing errors on my laptop. Worked fine in the camera. Bought a dedicated USB-C card reader and never had an issue again. The built-in reader was the problem."
🗣️ r/datarecovery tip: "For any corrupted SD card with important photos — recover first, repair second. CHKDSK can make some partially-recoverable files completely unrecoverable."
Part 6. Recover Photos From a Corrupted SD Card With Ritridata
Ritridata recovers photos and videos from corrupted, RAW, and formatted SD cards — with camera-specific algorithms for Canon, Nikon, Sony, and DJI on both Windows and Mac.
Step 1 — Insert the SD card and select it from the drive list
Step 2 — Run a deep scan — reads sectors directly through any file system issue
Step 3 — Preview and recover photos to your computer
FAQ
Can a corrupted SD card be fixed without losing data? Often yes — CHKDSK can fix file system errors without deleting file data. Running recovery software before any repair preserves the most recovery options. Only format as a last resort.
How do I fix a write-protected SD card? Check the physical lock switch on the side of the card — slide it to the unlocked position. If there's no switch or it's already unlocked, use diskpart attributes disk clear readonly in an elevated Command Prompt.
Why does my SD card keep getting corrupted? Repeated corruption usually means the card is nearing its write cycle limit or has developing bad sectors. Cards used intensively in action cameras or drones wear out faster. Replace a card that has corrupted more than twice.
How do I format an SD card after recovering files? On Windows: right-click in File Explorer → Format → Quick Format → exFAT (for cards over 32 GB) or FAT32. On Mac: Disk Utility → Erase → select exFAT or MS-DOS (FAT). Format in-camera after for best camera compatibility.
