I bought some SD cards off of AliExpress the other day, and, knowing
that the brand names "SanDian" and "Sansumg" were obvious look-alikes
to SanDisk and Samsung, suspected they might be rip-offs. I was going
to see for sure if my 2TB cards were in fact 2TB by crafting my own
`dd` command, when I did a Google search and found out about a project
called F3, "Fight Flash Fraud". It turns out my "2TB" SD cards were
in fact 8GB:
$ sudo f3probe --destructive --time-ops /dev/mmcblk0
F3 probe 8.0
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.
WARNING: Probing normally takes from a few seconds to 15 minutes, but
it can take longer. Please be patient.
Bad news: The device `/dev/mmcblk0' is a counterfeit of type limbo
You can "fix" this device using the following command:
f3fix --last-sec=16292863 /dev/mmcblk0
Device geometry:
*Usable* size: 7.77 GB (16292864 blocks)
Announced size: 1.95 TB
(4194304000 blocks)
Module: 2.00 TB (2^41 Bytes)
Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
Physical block size: 512.00 Byte (2^9 Bytes)
Probe time: 366.7ms
Operation: total time / count = avg time
Read: 86.0ms / 2164 = 39us
Write: 279.9ms / 2155 = 129us
Reset: 0us / 0 = 0us
--Jas E
.
..: