Flash Fraud is a real and it affects hundreds of millions… or thousands… well, I have no idea how many people it really effects, but I have been a bitten by either “Flash Fraud” or just bad media more than once which is exceptionally irritating.
What is Flash Fraud? In short the consumer is sold a device of lower capacity than what was advertised. Solid state media comes in many forms, most common consumer forms are SD cards and USB flash drives but can also be, Solid State Drives in other forms like mSATAs or NVMe. It is possible for a seller to take a lower capacity flash drive like a USB drive or SD Card and modify the controller so that it reports that the total capacity is larger than what is reality. You will find these devices sold on discount websites or auction sites like eBay where by the time you write to the device enough, you are well past the return window.

The casual consumer could see a great deal on the Internet, thinking he/she is getting a steal on on 32GB MicroSD Card when it is unknowingly only a 16GB card. Someone may actually go for weeks, months, even a year a while without any problems at all problem will show when the victim takes the 10,401st selfie that over writes the first selfie and the whole file system starts to unravel and corrupt. The average user may not know they are using a faulty drive for months after purchase and well past the 30 day return policy.
Fight Flash Fraud
You can Fight Flash Fraud by checking new devices as soon as you buy them. The tool to do that in Linux is F3. This can be found in the openSUSE Software Service. This is a terminal only program, although there is a User Interface it is not compiled for openSUSE at this time. This is not a problem as the usage of it is really quite easy… and FUN!
The two primary functions you will use are f3write and f3read, that is how you will conduct the test on the drive itself.
Installation
As with everything using the openSUSE Build Service, it is really easy to install just take a quick trip over to the openSUSE Software Service, select your distribution version number, and do the 1 Click Install.
If you prefer the terminal:
sudo zypper install f3
f3write
Since this is only available as a terminal program in openSUSE from the repositories, I will go through using this in the terminal and using KDE as my Desktop Environment.
Insert your USB drive or SD Card, whatever flash medium it is you have that you want to verify.
Mount the drive in the system. I am using KDE but it should work similarly on other Desktops
Open the file location in your file manager, copy the location to your clipboard (ctrl+c) Open a terminal, like Konsole or xterm. On the prompt type in the the command f3write and the location of the mounted drive. It should look something like this:
f3write <location to the media that needs to be checked>
Here is an example of what it looks like:
f3write /run/media/cubiclenate/SMI/
f3read
Very similar to the write command
f3read /run/media/cubiclenate/SMI/
Since I don’t currently have a faulty flash media device, I can’t actually test the f3probe and f3fix functions. Should I come upon a faulty device, I will update this article with my experience on fixing and retesting it.

f3probe
F3 Probe will probe a block device for counterfeit flash memory. If counterfeit, f3probe identifies the fake type and real memory size of the device which is what you need in order to fix the device. In order to use the command, the syntax, according to f3probe help:
f3probe [option...] <DISK_DEV>
Which looks like this if the device you plugged in is sda
sudo f3probe /dev/sda
Here is what it looked like when I probed the USB flash drive I was uncertain about:

This means that it is working just fine and my suspicions were wrong.
f3fix
If you choose to fix the device instead of smash it or return it for a refund, F3 Fix will allow you to edit the partition table of a fake flash drive to have a single partition that fully covers the real capacity of the drive.
Unfortunately, the drives I thought were bad were either not actually bad (maybe dying) or outright dead. If I do come upon another questionable flash device, I will update this portion.
If you happen to find a faulty or fraudulent flash drive, see the project home website for the usage of f3probe and f3fix functions here.
What you should do if you’ve been had?
You certainly should inform the seller you have been sold a faulty or fraudulent flash drive. It is possible, the seller has also been had as well. Even though it is possible to correct the drive controller chip to tell the operating system what the actual size it is you still have a drive that does not match up with your sales description. It would be fair to ask for your money back, if it is too late for that, than at least make the fix and repeat the test.
Final Thoughts
This a utility I wish I had known about years ago. It is really quite empowering to know that I can check to verify the honesty of a seller and not find out that I had been had when the drive fills up and starts to destroy the previously saved content. I like knowing that there is one more place that some fellow isn’t going to slip another one past CubicleNate again.

Leave a Reply to CubicleNateCancel reply