True Capacity 1.0 Stable:
True Capacity is bash script that tests for a fake capacity on flashdrives/memory cards, and provides an approximate of the true capacity. It likely won't work against all fakes, but it's working for one of mine, which is what I hoped to accomplish by writing it. It was written, and tested on Ubuntu 14.04 Desktop AMD64, but provided you install the dependencies (they are listed in the "About.txt" file), and use Bash as your shell, it should work on most distros. Your flashdrive/memorycard must be prepped as described in the "About.txt" file, mounted, and you must have permission to write to it (this is the part that you'll likely overlook).
Please keep in mind that flashdrives/memory cards are solid state storage, which means they have a limited number of writes. True Capacity's tests involve using DD for zeroing nearly the entire device.
Depending on the size and speed of your device, the test may take quite a while. Be patient. If you decide to abort mid way, use "control" + "c", depending how far along you are, this may leave a temporary file on your device that you'll need to delete manually.
Edited by Al1000, 10 September 2016 - 02:00 PM.
update download link