Fill a drive out with .h2w files to test its real capacity. See also: f3read, f3probe, f3fix. More information: https://oss.digirati.com.br/f3/.
f3read
f3probe
f3fix
f3write path/to/mount_point
f3write --max-write-rate=kb_per_second path/to/mount_point