在 Linux 下鉴别假冒 microSD 卡Examining Counterfeit Micro SD Cards in Linux


AI free token/AI免费积分

在 Linux 中检查假冒 microSD 卡。

随着存储成本攀升,遇到假冒存储设备的可能性也在增加。

假卡仿真度越来越高,仅凭粗略检查很难判断真伪。

好消息是,如果你使用 Linux,判断新买的 microSD 卡是否真能装下标称容量相当简单。

Jason Andress 撰文介绍了如何用多种工具验证 microSD 卡真伪,甚至“修复”某些类型的假卡。

首先,dmesg 的输出可以提示卡内真实情况:现代大容量卡在内核日志中应显示为 UHS(超高速),而听起来差不多的“高速”设备很可能让人失望。

接着可以查看 /sys 文件系统获取更多设备信息,甚至读取寄存器,从中发现制造商 ID 不符等异常。

结果,假卡的实际容量往往远低于标称值。

此时可以调整分区,让操作系统看到与硬件真实容量相符的可用卷。

Jason 推荐使用名为 Fight Flash Fraud(f3)的工具套件,它能自动完成该过程并执行其他诊断测试。

当然,也可以认为任何需要这类干预才能正常工作的卡,与其放进设备,不如直接丢进垃圾桶。

另一方面,如果你的正版 SD 卡只是物理损坏,愿意花点功夫或许还能修好。

在 Linux 下鉴别假冒 microSD 卡

本文来源:https://hackaday.com/2026/12/04/examining-counterfeit-micro-sd-cards-in-linux/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Examining Counterfeit Micro SD Cards in Linux

As the cost of storage climbs, so to do does the likelihood that you’ll come across counterfeit hardware in the wild. Unfortunately these fake storage devices are also becoming increasingly convincing, so it will take more than a cursory examination to figure out if you’ve got the real deal.

The good news is, figuring out if that new micro SD card you just bought can actually hold as much data as it claims is relatively straightforward if you’re on Linux. [Jason Andress] has written an an article on how you can use various tools to not only verify the legitimacy of a micro SD card, but even “fix” some types of fake cards.

As a first step, [Jason] shows how the output of dmesg can give you a hint about what’s actually inside a micro SD card. Modern high-capacity cards should show up in the kernel logs as UHS (Ultra High-Speed), and despite how it might sound, a device that’s detected as “high-speed” is likely to be a disappointment. One can then look in the /sys filesystem to glean more information about the device, and even start poking at its registers. This can uncover discrepancies such as an incorrect manufacturer ID code.

Ultimately, on a fake card you’re likely to find that the actual capacity of the device is far less than what’s advertised. In such cases, it’s possible to fiddle with the partitions so the OS sees a usable volume that actually matches the capacity of the hardware. [Jason] recommends a software suite called “Fight Flash Fraud” — or f3 that can automate the process and perform other various diagnostic tests. Of course, there’s a case to be made that any card which needs this sort of intervention to work properly is probably better off in the trash than in any of your devices anyway.

On the other hand, if you have a legitimate SD card that’s physically damaged, you might be able to repair it if you’re willing to put the effort in.

本文来源:https://hackaday.com/2026/12/04/examining-counterfeit-micro-sd-cards-in-linux/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry