public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem: non-SDHC 2GB SD cards are unreadable
@ 2008-04-13 20:26 Alexia Death
  2008-04-13 20:42 ` Alan Cox
  2008-04-14  0:45 ` Arnd Bergmann
  0 siblings, 2 replies; 14+ messages in thread
From: Alexia Death @ 2008-04-13 20:26 UTC (permalink / raw)
  To: linux-kernel

Hello. 

Ive come across a very annoying problem with these cards and the fat 
filesystem driver.

I recently bought 2 2GB Silicon Power SD cards for my camera(they were the 
smallest available in the store and had reasonable price). Camera was quite 
happy with them but I ran unexpectedly into trouble when trying to put the 
images to my Linux PC. 

It failed to read the cards and seemed to assume that my 2GB cards are 
actually 4GB O_o. I put one card back in to the camera and it was fine. I put 
the card in my photobank and it had no problem coping the images to its 
internal disk. 

Well, that was lame. Simple dumb devices can read the cards but not Linux. So 
I looked into dmesg to see whats up.

Heres what I saw:

[1193601.137141] sd 2:0:0:0: [sdb] Attached SCSI disk
[1193601.137256] sd 2:0:0:0: Attached scsi generic sg2 type 0
[1193601.156992] sd 2:0:0:1: [sdc] Attached SCSI removable disk
[1193601.157115] sd 2:0:0:1: Attached scsi generic sg3 type 0
[1193601.198450] sd 2:0:0:2: [sdd] 1992704 1024-byte hardware sectors (2041 
MB)
[1193601.206767] sd 2:0:0:2: [sdd] Write Protect is off
[1193601.206785] sd 2:0:0:2: [sdd] Mode Sense: 03 00 00 00
[1193601.206793] sd 2:0:0:2: [sdd] Assuming drive cache: write through
[1193601.227218] sd 2:0:0:2: [sdd] 1992704 1024-byte hardware sectors (2041 
MB)
[1193601.236730] sd 2:0:0:2: [sdd] Write Protect is off
[1193601.236745] sd 2:0:0:2: [sdd] Mode Sense: 03 00 00 00
[1193601.236752] sd 2:0:0:2: [sdd] Assuming drive cache: write through
[1193601.236768]  sdd: sdd1
[1193601.248543]  sdd: p1 exceeds device capacity
[1193601.248740] sd 2:0:0:2: [sdd] Attached SCSI removable disk
[1193601.248853] sd 2:0:0:2: Attached scsi generic sg4 type 0
[1193601.258517] sd 2:0:0:3: [sde] Attached SCSI removable disk
[1193601.258639] sd 2:0:0:3: Attached scsi generic sg5 type 0
[1193602.633223] attempt to access beyond end of device
[1193602.633239] sdd: rw=0, want=7970672, limit=3985408
[1193602.633248] Buffer I/O error on device sdd1, logical block 3985088
[1193602.633260] attempt to access beyond end of device
[1193602.633266] sdd: rw=0, want=7970674, limit=3985408
[1193602.633272] Buffer I/O error on device sdd1, logical block 3985089

,,, and so on.

Trying to mount it results in:
[1194411.241063] FAT: logical sector size too small for device (logical sector 
size = 512)

As I understand the above, my cards report hardware sector size 1024-bytes and 
FAT logical block size of 512 but the FAT driver insists on using the 
hardware block size over the logical one... witch obviously results in 
failure.

http://en.wikipedia.org/wiki/Secure_Digital_card#Compatibility_issues_with_2_GB_and_larger_cards
tells me that this is the result of a hack due to the nature of 2GB cards.

Are there any plans to make 2GB SD cards work? I doubt I'm the only one with 
such 2GB SD cards(and a camera) and Id be royally screwed right about now if 
I did not have my photobank and an option to use it as a copy over point...

--
Best, Alexia

PS. Please CC me, I am not subscribed... 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-04-16  2:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-13 20:26 Problem: non-SDHC 2GB SD cards are unreadable Alexia Death
2008-04-13 20:42 ` Alan Cox
2008-04-13 21:32   ` Alexia Death
2008-04-14  0:45 ` Arnd Bergmann
2008-04-14  4:49   ` Alexia Death
2008-04-14  6:48     ` Arnd Bergmann
2008-04-14 11:45       ` H. Peter Anvin
2008-04-14 12:40         ` Arnd Bergmann
2008-04-15 23:23         ` Daniel Barkalow
2008-04-16  2:09           ` H. Peter Anvin
2008-04-16  2:49             ` Roger Heflin
2008-04-14 16:11     ` Lennart Sorensen
2008-04-14  6:08   ` Alexia Death
2008-04-14  9:03     ` Wander Winkelhorst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox