Spot a fake microSD card from Linux: dmesg, the sysfs registers and the f3 tool that measures real capacity
Storage prices are climbing and counterfeit microSD cards are getting harder to spot by eye. Hackaday rounds up Jason Andress's write-up on checking a suspect card with nothing but a Linux box, useful for anyone who feeds cards to a Raspberry Pi, a dashcam, a 3D printer or a camera.
The first tell is in dmesg: a modern high-capacity card should enumerate as UHS, and one that shows up merely as high-speed is probably not what the label claims. Digging into /sys exposes the card's registers, where a manufacturer ID that does not match the brand gives the game away. For the real answer, the f3 suite (Fight Flash Fraud, on GitHub) writes and reads back the whole card to find its true capacity, and can repartition a fake so the OS only sees the space that exists. The article's own advice stands: a card that needs that treatment belongs in the bin.
Tools
- linux computer
- card reader
- f3 (Fight Flash Fraud)
0 comments
Log in or sign up to join the discussion.