Hello all, thanks for the replies to this issue. I currently don't have
the time to delve into this any further, but I did format the card in my
camera and took a few 100 MB of video on it. The video plays back fine
on the camera itself, also after turning the camera off and removing and
re-inserting the card. So the card is OK, it just doesn't work on my
Lenovo T480s in both Debian 11 and Windows 10. I can write data to the
raw device (i.e., /dev/hdb) but it reads back only garbage, without
getting any I/O error. I suspect it has to do with the computer's
hardware. Still weird, given that SDHC cards work fine, and this is a
fairly recent machine with a brand-new BIOS update. I'll procure another
card reader and report back.
Am 26.10.2021 20:08 schrieb Dan Ritter:
Musbur wrote:
Hello,
I'm using a Lenovo Thinkpad T480s. Recently I bought a SanDisk Extreme
Pro 128GB SDXC card for my digital camera, but I quickly found out
that
the system can't work with that card. It show up as /dev/sdb, I can
use
fdisk and everything without error, but when remove and re-insert the
card, the partition table is gone. When I boot the computer in Win10
(latest version), the card shows up as 'SDXC' but cannot be accessed.
The camera can format, read and write just fine.
According to the specs, the builtin card reader of the T480s is SDXC
compatible. Is there a driver for Linux that can make this card work?
The BIOS of the computer has just been updated a week ago. Is the
hardware just not compatible?
Needless to say, my SDHC cards (up to 32GB) work fine in this machine.
It's is quite plausible that you have a counterfeit card, with
an actual capacity of 8-16GB.
Try this (assuming it's still /dev/sdb when you plug it in):
mkfs.ext4 /dev/sdb
mkdir /mnt/tmpcrd
mount /dev/sdb /mnt/tmpcrd
Now download something big, like
wget
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.1.0-amd64-netinst.iso
which is 378MB.
for i in `seq 1 200`; do cp debian-11.1.0-amd64-netinst.iso \
/mnt/tmpcrd/file.$i; done
That will get you 200 files on the SD card, each 378MB, for a total of
about
75,600 MB, which is more than half the capacity of the disk.
Next:
sync
umount /dev/sdb
pull the card out, pop it back in.
mount it at /mnt/tmpcrd again.
Debian says the SHA256 hash of that file is
02257c3ec27e45d9f022c181a69b59da67e5c72871cdb4f9a69db323a1fad58093f2e69702d29aa98f5f65e920e0b970d816475a5a936e1f3bf33832257b7e92
so let's calculate it for the last 20 files:
for i in `seq 180 200`; do sha256sum /mnt/tmpcrd/file.$i; done
You should get 20 copies of the same hash as above. If you don't
-- you have a a defective, possibly counterfeit card.
-dsr-