SDHC Card Not Readable - Card and Slot Work Alone

Hi,
I recently bought a Radxa Zero. I have encountered a strange problem. When using a brand new 128 GB MicroSD card (verified size and functionality with h2testw), it is unreadable. The correct size is reported, however, I get input/output errors when attempting to read or write to it, and no partitions are detected. Using a 64 GB SD Card from Samsung presents no issues, however. I can even boot from the 128 GB SD, however, it begins to have read errors a short while after booting. If anyone has any advice, it would be much appreciated! My project would work a lot better with 128 GB of storage, rather than 64.

Sounds to me like a defective card. Can it be used/read normally on other hardware?

Yep! Used perfectly on two other machines, and tested fully with h2testw. Only the Zero is unable to read or write from it.

Interesting. Have you tried using it with the zero via a USB reader? That could help narrow down if it’s a hardware issue or a software issue.

Not yet, I’ll try with two different USB readers and report back.

I just tested with two different USB readers. One is able to read the card perfectly, the other cannot even detect the card.

The first successful reader displays this in the dmesg log:

[128682.625012] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS
[128682.674160] sd 0:0:0:0: Attached scsi generic sg0 type 0
[128682.804420] sd 0:0:0:0: [sda] 244277248 512-byte logical blocks: (125 GB/116 GiB)
[128682.804760] sd 0:0:0:0: [sda] Write Protect is off
[128682.804780] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[128682.805057] sd 0:0:0:0: [sda] No Caching mode page found
[128682.805350] sd 0:0:0:0: [sda] Assuming drive cache: write through
[128682.839928] sda: sda1
[128682.857346] sd 0:0:0:0: [sda] Attached SCSI removable disk

With the second unsuccessful reader displaying this:

[129282.063938] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=0s
[129282.063963] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x2 [current]
[129282.063981] sd 0:0:0:0: [sda] tag#0 ASC=0x3a ASCQ=0x0
[129282.064001] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 0e 8f 5d 60 00 00 08 00
[129282.064020] blk_update_request: I/O error, dev sda, sector 244276576 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[129282.064530] Buffer I/O error on dev sda, logical block 30534572, async page read

This is what the built in SD reader spits out when the card is inserted:

[ 2.777827] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 2.779580] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 2.779762] Buffer I/O error on dev mmcblk1, logical block 0, async page read

The second one is definitely detecting the card, it’s just having trouble reading it. I’d return the card and get another one. If you can’t or don’t want to, you might be able to work around it. The read error is on sector 244276576, which is almost 116.5GB in. If that’s the only bad sector, you could try a bad blocks checker and recreating the filesystem. If there are a bunch of bad sectors and they start at sector 244276576, you could use parted or something similar to resize the partition so it ends before sector 244276576. You’d still be able to use 116GB of the card.

That is the problem, however. Using the integrated flash reader is the only viable solution for my project, and it cannot read or write at all to the disk. I tried formatting it, or simply reading the existing partition table. The odd thing is, one of the USB readers read it with no issue, and I verified all sectors with h2testw. It returned no errors.

The second reader does not indicate that the card is plugged in. With the integrated Zero reader, I can see the card size and details, but not anything else.

I’d replace that card.