Fake USB drive or microSD card test: check its real capacity
Some USB flash drives and memory cards claim 1 or 2 TB but store far less: anything beyond their real capacity is lost without warning. This test fills the drive with data, reads it back and tells you how much it really holds. Everything happens on your computer: nothing is uploaded.
Your browser does not allow writing to a folder on your computer. The test works in Chrome or Edge on Windows, macOS or Linux (not on phones, Firefox or Safari). In the meantime, you can use H2testw or F3, explained below.
Before you start: copy whatever is on the drive somewhere else. The test does not delete your files, but a fake drive can corrupt them as it fills up.
-
1. Write test data
Create a folder on the USB drive or card (for example, “test”) and choose it. We will fill it with 256 MB test files until nothing else fits (or up to the limit you set).
-
2. Eject and plug it back in
Eject the drive in Windows (the “Safely Remove Hardware and Eject Media” icon) or macOS, unplug it for a few seconds and plug it back in. That way Windows cannot hand us the data from its memory, and we really read what the drive stored.
-
3. Verify
Choose the same folder. We read every file and compare it with what we wrote.
The files are named rpc-test-0001.dat, rpc-test-0002.dat… plus one rpc-test.json. When you are done, you can delete them with the button that appears or by hand.
How the test works
A fake USB drive or microSD card has a smaller memory chip than the capacity it reports. Windows sees, say, 1 TB, but once the data goes past the real capacity, the drive throws it away or overwrites what it already had. That is why copying files “works” and the problem only shows up later, when you try to open them.
The test writes 256 MB files with unique data (every block can be generated again, so there is no need to keep a separate copy), asks you to unplug the drive, and then reads everything back and compares it. If a file does not match, that is where the fake part begins. It is the same method H2testw and F3 use.
- It takes a while: the whole drive has to be written and read. A 64 GB drive that writes at 20 MB/s takes almost an hour for step 1. You can limit the test to a few GB above the capacity you suspect.
- Use a folder: for security, Chrome will not let you pick some system folders; create a new folder on the drive and choose that one.
- If it fills up sooner than the box says, that is a sign too: compare what could be written with the advertised capacity. Keep in mind that Windows shows less than the box says (a 64 GB drive shows up as about 58 GB): we explain why in the drive capacity calculator.
Other tools to test it
- H2testw (Windows, free): developed by Harald Bögeholz of the German magazine c't. Choose the drive, click “Write + Verify” and wait for the report. Download it from heise.de.
- F3 (Linux and macOS, free and open source):
f3writeandf3readrun the same test, andf3probegives a quick result on Linux. Documentation at fight-flash-fraud.readthedocs.io.
Frequently asked questions
Is my USB drive fake if the test shows errors?
If the errors start at one point and continue to the end, it is almost certainly fake, and its real capacity is whatever verified correctly. If there are scattered errors in the middle, the drive may be failing even if it is not fake: either way, do not store anything important on it.
Can a fake USB drive be fixed?
You cannot give it the capacity it promises. On Linux, F3 includes f3fix, which creates a partition of the real size so you can use the part that does work. The safest option is to ask the seller for a refund and show them the test result.
Does the test erase what is on my drive?
It does not delete your files: it only creates new files in the folder you choose. But on a fake drive, filling it up can corrupt files that were already there. That is why you should copy them first.
Does it work for external drives and SSDs?
Yes, it works the same with any drive where you can create a folder, although large drives take a long time. To check the health of an SSD or hard drive, use the SSD health check.
More tools: drive capacity calculator · download time calculator · all tools · en español