LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Repair Corrupted microSD Card (https://www.linuxquestions.org/questions/linux-hardware-18/repair-corrupted-microsd-card-813643/)

hkothari 06-11-2010 07:22 PM

Repair Corrupted microSD Card
 
So I dropped my blackberry today and the battery fell out, but it appeared to be generally unharmed. I turned it back on and it seemed to work, except for the fact that it said there was an error with the sd card, and that it needed to be inserted into a computer and fixed. So I put it into a windows machine and low and behold, windows acted like nothing was there. So then I tried with my linux machine. I inserted the card and nothing happened, no new device was added, and dmesg did not record anything. Literally nothing. Any idea what's going wrong? Is this card salvageable, is there something I can do? Help is appreciated. Thanks.

Simon Bridge 06-11-2010 07:49 PM

You'd normally expect to see something in the syslog (dmesg) when you insert the card. Check its contacts - but it seems likely that the accident may have jarred internal connections loose. Prognosis - the card is dead. Salvaging would involve physically opening the card up.

hkothari 06-12-2010 06:24 AM

Wait, sorry. I tried again, and I got this as what dmesg recognized now:
Code:

sd 5:0:0:2: [sdd] 1 512-byte logical blocks: (512 B/512 B)
sd 5:0:0:2: [sdd] Write Protect is on
sd 5:0:0:2: [sdd] Mode Sense: 43 00 80 00
sd 5:0:0:2: [sdd] Assuming drive cache: write through
sd 5:0:0:2: [sdd] Assuming drive cache: write through
 sdd:

But when I try to mount it using
mount /dev/sdd /mnt/sdd
mount just stalls. Any ideas?
And if I try to get any information about partitions using fdisk -l it also stalls.

hkothari 06-12-2010 06:32 AM

And after trying to mount and using fdisk -l I get this in dmesg:
Code:

sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
Dev sdd: unable to read RDB block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
sd 5:0:0:2: [sdd] Unhandled error code
sd 5:0:0:2: [sdd] Result: hostbyte=0x00 driverbyte=0x00
sd 5:0:0:2: [sdd] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sdd, sector 0
Buffer I/O error on device sdd, logical block 0
 unable to read partition table


Simon Bridge 06-12-2010 10:06 AM

you can try to run testdisk or magic rescue on sdd.
http://sysblogd.wordpress.com/2008/0...-roms-or-dvds/

business_kid 06-14-2010 12:18 PM

Allow me to repeat the obvious - it's dead :-(. Probably physical damage. Unless you are a very rich guy caught out very badly by this, replace it. This is much more final than a hard disk dying.


All times are GMT -5. The time now is 11:54 AM.