SD card not readable

Other talk about Salix
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

SD card not readable

Post 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.
Regards Gruß
jpg
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: SD card not readable

Post 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.)
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: SD card not readable

Post by gapan »

I'm afraid that if the card has gone bad, there is little chance you'll get the data from it.
Image
Image
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: SD card not readable

Post 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.
Regards Gruß
jpg
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: SD card not readable

Post 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.
Image
Image
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: SD card not readable

Post 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:
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: SD card not readable

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: SD card not readable

Post by Akuna »

PhotoRec might be your best shot at recovering your lost data:
http://www.cgsecurity.org/wiki/PhotoRec
Image
What really matters is where you are going, not where you come from.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: SD card not readable

Post 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!
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
jpg153
Donor
Posts: 449
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

Re: SD card not readable

Post 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.
Regards Gruß
jpg
Post Reply