On that topic, a tool named f3 exists to test the capacity of that flash drive/card you just bought from Amazon.
1. yes | openssl aes-256-cbc -e -out /media/drive/testfile
2. eject /media/drive
3. physically reconnect and mount the drive
4. openssl aes-256-cbc -d -in /media/drive/testfile | grep -q '[^y]'