Counterfeit sticks and cards
Counterfeit USB sticks and memory cards report more than they store. Writes beyond the real size are lost, or wrap around and overwrite the start: files seem to copy fine and are broken later.
sudo smartdisk capacity disk6How it works
Section titled “How it works”The method is the one H2testw and F3 use:
- Writes every 512-byte sector with a stamp (a marker, this run’s random seed and the sector’s own position) and pseudo-random data derived from both, so a controller cannot compress it.
- Reads everything back. A sector with its own stamp is real storage. One with another sector’s stamp was overwritten by a wrapped write, and the distance shows the real size. Anything else is lost. The sectors that read back correctly are the real capacity.
- Formats the disk as exFAT (
-no-formatleaves it empty). A counterfeit one is formatted only up to where it really stores, so it can be used without losing data.
The result is documented as SmartDisk read it back: reported size, real size, overwritten and lost bytes, and the first problem. A full test writes and reads the whole disk once each; a 32 GB stick on USB 2 takes about an hour.
In SmartDisk for Mac: Read test → Check real capacity….