• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to repair SD card

lupi

Lifer
Took a bunch of pics this weekend with the camera on a card that had less than 2 dozen prior to starting. Went to toss the card into the computer today to transfer them over and now get the must format card message when trying to access the card. Any program I can use to restore the mbr or fat as I'm sure it's one of those that went bad since the card now shows an incorrect size when inserted.
 
does not report as useable by any device. windows chkdsk can't access the device because it says it is a raw device.
 
does not report as useable by any device. windows chkdsk can't access the device because it says it is a raw device.
Booting from a Knoppix LiveCD still wouldn't allow accessing the card?
 
Last edited:
Tried using ultimatebootcd and got the same results as under windows. Unable to find/recover any partitions, 8gb drive reports as only 1gb. Probably because size report is screwed up, none of the pic recovery programs I've tried can pick up anything.
 
Put it in the camera and see if it sees its own handiwork. If so, then connect the camera via USB to your PC and transfer the files.
 
Camera also gives a format card message. Someone wanted to see the stuff taken last weekend and started to try and watch them on the camera and I said give me the card and ill load them on the computer. Think they didn't turn the camera off first so when it was taken out somehow the fat got nuked. Have tried using testdisk but it says it can't find any partitions even after I correct the incorrect device size. No data recovery programs have found anything so far, most likely due to there only being about 200mb of files on an 8gb drive which is now reporting as 1gb.
 
Last edited:
If that is what happened with the camera, then odds are it is hosed. Not only the FAT got nuked, but everything else as the active card was dragged across active circuits.
 
seems this is a hard failure, can't even attempt a quick format to get the card recognized to attempt post format recovery. anyone have an idea on recovery prices for one of these?
 
Try R Studio data recover or Acronis partition recovery software. The trial versions will suffice to show you if anything is recoverable.

Failing that, open up the raw card in a hex editor and see if there is anything at the start of the media resembling any organized file system. SD cards should be linear and not employ wear leveling or anything complex.

If chkdsk doesn't see anything at all, it's likely mbr/partition table related. Highly unlikely that both copies of the FAT/$MFT just disappeared in an instant; that much data over writing takes time far longer than the split second that caused the problem. NAND flash itself has safeguards to block writes and preserve data on faulty power supply. chkdsk merely follows pointers to the file tables and gives up if invalid, it won't manually scan clusters looking for file system data like the software above will.

Its imperfect piecing files together from what merely appears to be possible random file table structures, but you should still be able to get something. R Studio is pretty good at things like stitching together jpg files from random manually scanned clusters even without a valid file cluster map. Give it a try.

There is one feature of NAND flash that works against data recovery. The ability to erase entire blocks or even the entire chip at once in an instant due to organization of the cells.

If its reporting size incorrectly at the device level, the NAND and or controller got zapped through the power lines.
 
Last edited:
If that is what happened with the camera, then odds are it is hosed. Not only the FAT got nuked, but everything else as the active card was dragged across active circuits.

Doesn't quite work like that. It's a serial bus with a very specific command protocol. Garbage noise on the data lines would be ignored.

Likely it was in the middle of an internal read-modify-write to the FAT or MBR (timestamp or something?) when it lost power, but that would only corrupt the file, not magically delete the entire file system.
 
Last edited:
I tried rstudio and it gave me nothing like the other dozen+ programs I've tried. In explorer it shows as 0gb/0gb while in disk manager and other partition recovery programs I've tried showed it as 1gb. Think that's what is keeping any data recovery from working as with only 100mb of data on an 8gb disk, picking a single 1gb section is likely to be blank. Even on some of the programs that offer full disc scans, the disc size of such scans still seems to be restricted to the 1gb patch as far as I can tell from the sector scan progress.
 
Doesn't quite work like that. It's a serial bus with a very specific command protocol. Garbage noise on the data lines would be ignored.

You mean that if the camera is in the process of writing to the SD, and it is physically pulled out of the camera it would be protected? Interesting. I recall cases of ruined floppies when the disk was ejected during drive activity.
 
Last edited:
that acronis is a neat looking program, but didn't get me another further than the others. guess it's time to open the phonebook and start calling around.
 
You mean that if the camera is in the process of writing to the SD, and it is physically pulled out of the camera it would be protected? Interesting. I recall cases of ruined flppies when the disk was ejected during drive activity.

Not quite. You'd have data corruption because the currently executing write command inside the SD card would be interrupted due to power loss.
 
Only option then is either going to be dumping the whole 8 GB NAND with a logic analyzer or ROM dump tool, or assume that the controller itself was fried and try swapping the NAND into another identical working SD. Hard to say without knowing the vendor's controller and firmware.
 
Last edited:
Not quite. You'd have data corruption because the currently executing write command inside the SD card would be interrupted due to power loss.

I'll buy that. But . . . I have had media, CF and SD that were completely unrestorable. Would not certain corrupted data suggest that the drive needs formatting?
 
it's a pny 8gb class 10 card, I do have another that is the same but wasn't sure about taking it apart to swap controllers as I didn't want to risk that making it unrecoverable from a chip reader.
 
Back
Top