I accidentally ejected my SD card without safely removing it, and now my phone and computer either won’t read it or say it’s corrupted. It has important photos and files on it, so I need help figuring out how to recover the data and repair the SD card without making things worse.
I’ve messed with enough broken SD cards to stop caring about the pop-up text. The message changes. The next step matters more. I’ve seen this with camera cards, drone footage, phones, and a few panic texts from friends who thought years of photos were gone.
The mistake I keep seeing is simple. People try to fix the card first. Bad move, most of the time. Your phone or PC throws out stuff like “SD card needs to be formatted,” “Repair this drive,” or “Tap to fix.” I skip all of it at first. If your files matter, don’t format the card yet.
Formatting might get the card working again. It also makes recovery messier. I treat this as two jobs. First, pull the files off. After that, deal with the card.
Recover data first
When corruption hits, the file system is often the part falling apart, not the files themselves. So I start with recovery software, not repair tools.
Out of the stuff I’ve tried, Disk Drill is usually where I start. It has done well for me with cards showing up as RAW, cards formatted by mistake, files missing after a transfer failed, and the usual “this card looks dead” cases.
The part I care about most is the byte-for-byte backup option. Some damaged cards get worse the more you poke at them. I’ve seen cards read fine for ten minutes, then drop off the system. Making an image first gives you a safer copy to work from. The preview tool helps too. You get to check whether the photos or videos open before you spend time recovering junk file names with ruined contents.
Once your stuff is recovered and copied somewhere safe, then go after the card itself.
1. Try CHKDSK
This is usually my first repair step on Windows. It checks the file system and fixes what it finds.
Open Command Prompt as Administrator, then run:
chkdsk X: /r
Swap X for the drive letter of your SD card.
I’ve had this work on cards with directory errors and ugly file system damage. I’ve also had it do nothing. Still worth the two minutes.
2. Use TestDisk if the partition is gone
If Windows shows the card as unallocated, or the partition vanished, I move to TestDisk.
It looks old and feels old. No point pretending othrwise. Still, it’s one of the few tools I’ve used which finds lost partitions and rebuilds busted partition tables without much drama. If the card looks invisible to normal Windows tools, this is often the next thing I try.
3. Format the card last
If CHKDSK didn’t help, and TestDisk didn’t bring it back, formatting is where I end up.
At this stage, your important files should already be off the card. In File Explorer, right-click the SD card, hit Format, then pick the file system. For most newer SD cards, exFAT tends to be the safe pick since it handles large files and works with a lot of devices.
After formatting, test it before trusting it. Copy a few files over. Delete them. Write again. Read them back. I’ve had cards pass a format and still act weird an hour later.
One thing I learned the annoying way, corruption often shows up before full failure. If a card starts doing this more than once, I stop using it for anything I care about. Photos, video, trip footage, client work, none of it goes back on taht card. I replace it.
Power off the original phone or camera. Reinsert the SD card, then restart the device. If it reads the card, connect the device to your computer with a USB cable. Copy the most important photos first, in small batches of 50 to 100 files.
This avoids removing the card or using repair software. Keep the device plugged into power during transfer. If copying stops, restart once and resume with smaller batches. Save everything to two seperate locations, then replace the card.
Manage your expectations before you start the recovery. Even in a good outcome, you often get the photos back but with scrambled filenames, wrong dates, and folders that make no sense. That’s normal with a busted file system. If you’re picturing the card coming back exactly as it was, organized and tidy, that rarely happens. You get the pixels, not the structure.
@viajeroceleste already flagged the adopted storage trap, and honestly that’s the single most important question here that nobody asked the original poster: was this card set up as internal storage on an Android phone? If yes, a lot of the advice above just won’t apply, because the card is encrypted to that specific phone. Plugging it into a PC will show garbage no matter which reader or recovery tool you use. In that case your best shot is the original phone still being alive, which lines up with what @hidden_gadget said about reading it back through the device over USB.
The thing I’d push back on slightly is the rush to image the card. Imaging is the right call when the card keeps dropping out, no argument. But if the card mounts steadily and you can browse it, dragging your actual keepers to your desktop right now beats spending an hour making a full clone first. A clone of a stable card is just insurance you may not need. Read the room: stable card, grab files. Flaky card, image it.
On the tool itself, Disk Drill earns its spot for one boring reason people skip over. It lets you run the full scan and see what it found before you pay anything, so you’re not gambling money on a card that might be dead. You find out what’s actually recoverable first, then decide.
One thing people forget after all this: the recovered files can be silently broken. A JPEG that ‘recovered’ can still open to half an image or a gray block. Actually open a chunk of them, not just check that the file exists. And whatever you do, never recover onto the same card you’re pulling from. Send everything to a different drive.