How to Check a Counterfeit microSD Card on Linux
Fake microSD cards are harder to spot as prices rise. On Linux, dmesg, sysfs, and f3 can check the real capacity.
As storage prices keep climbing, the chance of buying counterfeit storage hardware climbs with them. These fakes are also getting more convincing, so a quick look is no longer enough to tell whether what you are holding is genuine.
On Linux, checking whether a new microSD card really has the capacity printed on it is relatively straightforward. Jason Andress has written a guide to tools that can verify a microSD card and, in some cases, even “fix” certain kinds of fakes.
Clues in the kernel log and sysfs
The first step Jason shows is reading the dmesg output for hints about what is actually inside the card. A modern high-capacity card should appear in the kernel log as UHS (Ultra High-Speed). That sounds promising. If the device is only identified as “high-speed,” the result is likely to disappoint. From there, the /sys filesystem can yield more about the device, including its registers, and turn up contradictions such as an incorrect manufacturer ID.
In the end, a fake card’s real capacity is usually far below the advertised figure. You can resize the partition so the operating system sees a usable volume that matches the hardware. Jason recommends the Fight Flash Fraud suite, f3, which can do that automatically and run several other diagnostic tests.
Some people would rather throw a card that needs this kind of rescue into the bin than plug it into anything.
On the other hand, a genuinely good SD card that has been physically damaged may still be recoverable, if you are willing to put in the work.
Comments
0 comments