Can I fix a corrupted SD card without losing my data?

My SD card suddenly stopped working after I moved photos and videos from my camera, and now it shows as corrupted on my computer and phone. I haven’t formatted it because I’m trying to recover the files without losing anything important. What are the safest ways to repair a corrupted SD card and recover data without making it worse?

I’ve had enough SD cards go sideways over the years that I stopped paying much attention to the scary popup itself. The wording changes. The pattern doesn’t. I saw it on camera cards, drone storage, old Android phones, and a few cards friends handed me after they thought their photos were gone for good.

The biggest mistake I keep seeing is people trying to 'fix' the card first. Bad move, in my experience. A phone or PC will throw up something like “SD card needs to be formatted,” “repair this drive,” or “tap to fix.” It feels like the obvious next step. I ignore it. If your files matter, leave the card alone for a minute. Don’t format it yet.

Formatting often gets the card mounting again, sure. It also makes recovery messier than it needed to be. I treat this as two separate jobs. First, pull your data off. After that, deal with the card.

Get the files off the corrupted SD card first

When corruption hits, I start with recovery software, not repair tools. A lot of the time the files are still sitting there and the file system is what broke.

From the stuff I’ve tried, Disk Drill is usually where I begin. It handled the common messes I ran into, accidental format, RAW card, broken file system, files missing after a transfer stalled out, that sort of thing.

The part I kept coming back to was the byte-for-byte backup option. Some damaged cards get worse the more you poke at them. I learned this the annoying way. Making an image first gives you a copy to work from and leaves the original card untouched. The preview tool helps too. I don’t like recovering a pile of file names only to find half the photos are broken. Previewing first saved me time.

Once your photos, videos, or documents are copied somewhere safe, then start trying to make the card usable again.

1. Run CHKDSK on Windows

This is usually my first repair step. CHKDSK checks the file system and tries to patch errors it finds.

Open Command Prompt as Administrator, then run:

chkdsk X: /r

Swap X for your SD card’s drive letter.

I’ve seen this work on cards where Windows could still detect the storage but kept complaining about errors.

2. Try TestDisk

If the partition is gone, or the card shows up as unallocated, I move to TestDisk.

I’ve used it on cards Windows treated like empty junk. The interface feels old and a bit rough, yeah. Still, it’s good at finding lost partitions and rebuilding partition tables when they get mangled.

If you’re the kind of person who doesn’t mind reading each screen twice before pressing Enter, you’ll be fine.

3. Format the card only after recovery

If CHKDSK doesn’t help and TestDisk doesn’t bring it back, I format the card.

At this stage, your important files should already be stored somewhere else. In File Explorer, right-click the SD card, pick Format, and choose the file system. I usually go with exFAT for modern SD cards since it handles large files and tends to work across more devices.

After formatting, test the card before putting anything important on it. I usually copy a few files over, eject it, reconnect it, and check whether anything weird happens.

One thing I stopped ignoring, repeated corruption usually means the card is on borrowed time. If an SD card keeps failing, I retire it. I don’t trust it with photos, video clips, or anything I’d be mad to lose. Learned tha the hard way.

3 Likes

Don’t try to repair the card first. I know @mikeappsreviewer said CHKDSK is a first stop after recovery, but I’d be even more cautious than that. CHKDSK is fine for a cheap USB stick. On an SD card with photos you care about, it sometimes “fixes” the file system by dropping files into FOUND.000 or trimming broken entries. Great for Windows, not always great for your pics.

What I’d do:

  1. Stop using the card.
    No camera, no phone, no copy attempts. Every write makes recovery harder.

  2. Use a good card reader on a PC.
    Phones are bad for this. Cameras too. A USB reader often sees cards those devices won’t.

  3. Make an image of the card first.
    This matters if the card is failing, not only corrupted. Disk Drill is good here because it can scan the card or its backup image. Work from the image if possbile.

  4. Recover files to a different drive.
    Never save recovered files back to the SD card.

  5. If the card reads slow, disconnects, or size shows wrong, skip repair.
    Those are signs of hardware failure, not only file system damage.

One more thing people miss. Fake or worn-out SD cards are common. After you get your data back, test the card with H2testw on Windows or F3 on Mac/Linux. If it fails, toss it. Don’t trust it again.

Also, this is a solid read for corrupted SD card recovery tips and file rescue steps:
corrupted SD card recovery tips and file rescue steps

If the files matter a lot and the card is not detected at all, stop there. DIY tools won’t help much at taht point. A recovery shop is the safer move.

Yes, sometimes. But the goal right now is not to ‘fix’ the SD card. It’s to get the data off before the card gets worse.

I mostly agree with @mikeappsreviewer and @reveurdenuit, especially on avoiding format/repair prompts. Where I slightly disagree is with people jumping into filesystem repair too soon just because the card is still detected. If the photos matter, recovery first, repair later. Period.

A couple things I’d add that they didn’t really get into:

  • If your camera wrote the files in bursts, some videos may be fragmented. In that case, a basic undelete tool can recover the file but the video may not play right. That’s why I’d use something that can scan by signature and also preview results. Disk Drill is solid for this and pretty easy to use compared to a lot of the old-school stuff.
  • If the card keeps disconnecting, gets super hot, or suddenly shows the wrong capacity, stop messing with it. That’s not ‘corruption’ in the normal sense, that’s a dying card.
  • Put the little lock switch on the SD adapter if you have a full-size adapter. It’s not perfect write protection, but it can prevent accidental writes on some readers.

Also, don’t keep retrying in your phone. Phones are kinda terrible for recovery situations tbh.

If you want a decent roundup of tools, this list is worth skimming:
best SD card recovery software tested for photo and video recovery

Short version:

  1. Stop using the card.
  2. Use a PC and reliable card reader.
  3. Scan or image it with Disk Drill.
  4. Recover files to another drive.
  5. Only after that, decide whether the card is worth reformatting or just tossing.

If the card is not detected at all anywhere, DIY may be over. At that point, lab recovery is the only real optoin.

I’m with @reveurdenuit, @viajantedoceu, and mostly @mikeappsreviewer on one big point: do not format it yet. Where I differ a bit is this: even making multiple recovery passes can be risky on a weak card. If the card is still readable, try to identify whether the problem is logical corruption or physical failure before you hammer it with scans.

A quick reality check:

  • If the card shows the correct capacity and stays connected, your odds are better.
  • If it vanishes mid-read, reports 0 bytes, wrong size, or asks to be inserted again, that is a bad sign.

One thing not mentioned enough: check the Event Viewer on Windows or Disk Utility logs on Mac while connecting it. Repeated I/O errors usually mean hardware trouble, not just a broken file table. In that case, fewer attempts are better.

About Disk Drill, it’s a reasonable option here.

Pros:

  • easy to use
  • can recover from damaged file systems
  • preview support is useful for photos and some videos
  • can work from a disk image instead of the live card

Cons:

  • deep scans can take a while
  • file names/folder structure are not always preserved
  • not magic if the card has controller failure
  • recovery to another drive is required, which some people forget

I would still avoid “repair” tools until after recovery. And honestly, if the files are irreplaceable, don’t turn this into a science experiment. A pro lab costs money, but weddings, travel photos, and client shoots cost more to lose.

After recovery, I’d retire the card even if it seems fine. SD cards that corrupt once after a transfer have a nasty habit of doing it again.