cannot read/write SD card after improper format (sector size 0)
Hi all,
I was attempting to reformat a 16GB MicroSD card in my camera when the battery died mid-way. After that, any time I try to read the card in my camera, it gives me a "Card Error" and does not allow me to reformat it in my camera. So, I thought I would plug the camera in to the laptop with it set to host the card as media when plugged in as USB, in an attempt to fix the formatting issue. However, when I plug it in to my linux machine, it does not register as a device (e.g., /dev/sda) due to some errors, therefore I cannot reformat it. Essentially, I think I need to fix the partition table but I'm not sure how to when it doesn't register as a device. Code:
[17179738.056000] usb 5-1: new high speed USB device using ehci_hcd and address 3 |
If you can't mount it, the trick would be to copy the other one same size in it's entirety for safety with dd
dd if=good_drive of=bad_drive && sync might just do it. There could be a tmp file if you have 16 gigs of space somewhere. |
Quote:
|
Quote:
dd if=/dev/sda of=/dev/sdb That should write from sda to sdb. That gets partition table, boot sectors, data, & free space. A 16G write will go on at 12MB/S and will take a _long_time, as it will be reading then writing. You could try with a meg first(in fact 32G@12MB/S) dd if=/dev/sda of=/dev/sdb bs=1M count=1 fdisk /dev/sdb and you might be lucky. Please post the result, as these forums are searched. |
Quote:
|
Why not repartition the bad drive?
Code:
cfdisk ??? Code:
#!/bin/bash Code:
bash name-of-file-containing-above-script |
Quote:
|
OK, Give up. Let me refer you to rule 2 in the main rules of servicing.
1. If it works, don't fix it. 2. If it's not worth it, don't fix it. I don't know whether you broke 1 as well, but if there's no way back, there's no way back. And that's what it sounds like. Last thing worth a shot might be testdisk. Either it finds it or it doesn't. If it doesn't, give up.You're throwing time after money at this stage. |
All times are GMT -5. The time now is 10:55 AM. |