Page 1 of 3

SD card not readable

Posted: 10. Aug 2010, 19:45
by jpg153
Hi all,

although posted in the german forum...maybe its better to ask the whole community...

My daughter has taken holiday pictures with digital camera which stored the images on a SD-Card.
After a while, the camera refused to accept the card.

I tried to read the card under Salix, but it doesnot recognise the card at all.
One Win XP machine assignes a drive letter but wants to format the card (medium is not formatted).
A second XP machine tries to read and hangs up the whole card reader when accessing the card.

Is there a way to get the card to life under Salix 13.0 ?

Thanks.

Re: SD card not readable

Posted: 10. Aug 2010, 20:05
by damNageHack

Code: Select all

tail -f /var/log/messages
Unplug your card and plug it in again. See what happens to the log.
https://bugzilla.redhat.com/show_bug.cgi?id=609387
(w/o advertisement for Fedora etc.)

Re: SD card not readable

Posted: 10. Aug 2010, 20:19
by gapan
I'm afraid that if the card has gone bad, there is little chance you'll get the data from it.

Re: SD card not readable

Posted: 10. Aug 2010, 20:36
by jpg153
ok,

result from log:

Code: Select all

root[jpg]# tail -f /var/log/messages
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] Sense Key : 0x6 [current] 
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] ASC=0x28 ASCQ=0x0
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] Attached SCSI removable disk
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: Attached scsi generic sg2 type 0
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] 3889917952 512-byte hardware sectors: (1.99 TB/1.81 TiB)
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] Write Protect is off
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] 3889917952 512-byte hardware sectors: (1.99 TB/1.81 TiB)
Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] Write Protect is off
Aug 10 22:30:56 jpg153zen kernel:  sdb: unknown partition table
How to fix a partition table which is corrupted?

Thanks.

Re: SD card not readable

Posted: 10. Aug 2010, 20:38
by gapan
You can use cfdisk to recreate the partition table, but you need to know exactly how it was before in order to make it the same. cfdisk doesn't actually change any of the data on the drive.

Re: SD card not readable

Posted: 10. Aug 2010, 20:40
by damNageHack
You should be able to try with different file system types without risk of data loss. Though and previously, a raw backup can be made with dd.

EDIT:
jpg153 wrote: Aug 10 22:30:56 jpg153zen kernel: sd 20:0:0:0: [sdb] 3889917952 512-byte hardware sectors: (1.99 TB/1.81 TiB)
That means, your card is detected as a drive with 2 Terrabytes space :!: I do not know any card with that size available yet on the market :shock:

Re: SD card not readable

Posted: 10. Aug 2010, 21:05
by thenktor
I'd recommend to make a backup with dd first. After that you should try some windows tools to recover the data. I know there are some, but I don't know the names.

Re: SD card not readable

Posted: 11. Aug 2010, 07:07
by Akuna
PhotoRec might be your best shot at recovering your lost data:
http://www.cgsecurity.org/wiki/PhotoRec

Re: SD card not readable

Posted: 11. Aug 2010, 11:35
by thenktor
Akuna wrote:PhotoRec might be your best shot at recovering your lost data:
http://www.cgsecurity.org/wiki/PhotoRec
Looks promising and there is a Linux version available, too!

Re: SD card not readable

Posted: 11. Aug 2010, 21:04
by jpg153
Hi,

thanks for the tips.
As already posted in the german forum, photorec did not do the job.
Problem is with the lost partition table.
I will try to make a new partition table (formatting) and the try photorec again.