FlashTester0.4.1

Open source, MIT licence

Identify drives and test for fake capacity or data loss

Find out whether a USB stick or SD card really holds what its label says. FlashTester also reads drive IDs and backs up files or whole disks before you change anything.

Windows, Linux and FreeBSD: GUI and command line. Experimental Haiku CLI port.

FlashTester after a 1 GB full test of a 64 GB Verbatim USB stick: verdict OK, 999.3 MB written and read back, block map and speed graph
One file per platform, no installerUSB / SD / SATA / NVMeMIT licence

Download FlashTester

Version 0.4.1, released . Choose your operating system and processor.

Release notes

New in v0.4.1: quick diagnostics now works on Haiku. Since v0.4.0: quick diagnostics of a whole disk in about 3 to 15 minutes, with capacity samples, write-cache size and speed. Reports can leave out serial numbers for sharing.

Run your download
  1. On Windows, open flashtester.exe. The same file accepts commands in PowerShell or Command Prompt.
  2. On Linux, FreeBSD or Haiku, open a terminal in your download folder and make the file executable. For Linux x64: chmod +x flashtester-linux-x86_64 Then start it: ./flashtester-linux-x86_64 Use your downloaded filename on other platforms. On Haiku, add --help to see the commands.
  3. Choose a drive and open its details before starting a test. Whole-disk operations, including read checks, need administrator or root access. Read the platform instructions.
Check a download's SHA-256 hash

Download the checksums above and compare the hash for your filename. In Windows PowerShell, run Get-FileHash .\flashtester.exe -Algorithm SHA256 On Linux x64, run sha256sum flashtester-linux-x86_64 On FreeBSD, use sha256 flashtester-freebsd-x86_64

Drive details and tests

Identification

Drive details info
Model, serial, firmware, device IDs, USB connection and controller hints. Refresh, copy or save details in the main window.
SMART counters smart
Errors, temperature and usage counters where the drive and the connection report them, with a snapshot before and after supported tests. Values are shown as the drive reports them, never turned into a health score.
Offline flash lookup flash-id
Look up a supplied NAND ID in 1,457 records. The CLI can also decode saved controller responses with decode-flash. These commands do not query a drive.

Read-only checks

Read scan scan
Read the whole disk or a chosen size and map unreadable areas. Also available on system drives, without locking or dismounting volumes.
Read speed bench --disk
Measure sequential reads without writing test data. The GUI defaults to a short 256 MiB check on protected drives. Cancel at any time.

Recommended for a whole disk

Quick diagnostics diagnose
Erase the disk, then in about 3 to 15 minutes sample its capacity, find the write-cache size and the speed before and after it, and measure small writes, 4K reads, stalls and SMART changes. It samples; a full test checks every byte.

Capacity and data loss

Full test test
Fill free space or the whole disk, then read the test data back and check for loss, corruption and overwritten blocks.
Quick capacity check probe
Sample positions across the drive to estimate usable capacity. A full test checks the space between samples.
Check saved test data verify
Re-read an earlier FlashTester run or h2testw files to check whether the data survived.

Performance

File write and read speed bench
Create a test file in free space, then read it back. Speed graphs show changes across the tested area.
Random 4K speed iops
Random reads and writes at queue depth 1 and 32, in a test file or on the whole disk.

Reliability

Repeated write test endurance
Write and verify new data each pass. Stop at an error, a pass limit or cancellation.
Many small files small-files
Create, rename, delete and verify thousands of files.
Pull-the-plug test plug-pull
Unplug mid-write; flushed data must survive.

Backup and restore

File backup backup
Save a folder or volume to one ZIP archive with SHA-256 checksums. Restore into a new folder. Preserves file contents, empty folders and modification times, but not permissions or other filesystem metadata.
Disk image backup --disk
Save every sector to an .img file, including partitions and unused space. Keep its .img.json manifest alongside it. Restore validates the image before overwriting the destination, then reads the result back.

Store backups on a different physical disk. System-drive backups are not supported; the system drive can hold backup files. Close programs using the source: file backups are not snapshots. Backup requirements and limits.

Formatting

Resize and format fix
Erase the drive and create a partition within its estimated usable capacity. Does not repair failing flash memory.

Save drive details and results as HTML or JSON. For a refund claim, the one-page evidence sheet sums up a test for the seller. Serial numbers can be left out before you share a report. Reports keep identification and read checks apart from write-and-verify results.

Setting up a 1 GB full test on a USB stick; the system disk is listed but locked
VerdictOK

Example result

USB stick sold as 128 GB, full test on Windows 11.

126.66 GBTested, 0 errors
44 MB/sWrite
131 MB/sRead

Usage

Run without arguments to open the GUI on Windows, Linux or FreeBSD. Select any drive to see its details, then choose a check. Commands work from a terminal.

These examples use Windows disk numbers. On Linux use a device name such as sdb; on FreeBSD, da0. See the command-line guide for more examples.

System drives allow identification, SMART where supported, read scans and read-speed checks. Writes and file-mode tests stay blocked. Reads cannot prove usable capacity, and other programs using the disk can affect speed.

Back up before write tests.

Whole-disk writes erase data. A fake drive can also redirect file-mode writes onto existing files. Read-only checks do not write test data.

List drives
flashtester list
Identify disk 0
flashtester info --disk 0
Read 256 MiB from disk 0 without writing
flashtester bench --disk 0 --size 256MiB
Fill and verify free space on E:
flashtester test E:
Quick probe of disk 3 (erases it)
flashtester probe --disk 3 --destroy
SMART counters
flashtester smart --disk 0
Look up a supplied NAND ID offline
flashtester flash-id "AD D3 10 A6 34 00"

Scripts and AI agents

Commands ask no questions, so a script or an AI agent can run them unattended. Only plug-pull and test --replug wait for a person, because someone has to unplug the drive.

Add --json to get the result as one JSON document on stdout; progress goes to stderr. The verdict is in verdict.status: ok, fake, defective, read-only, unreliable, info, refused, error or cancelled.

The exit code repeats it: 0 OK, 1 problem found, 2 refused, 3 error, 130 cancelled.

Erasing a disk needs --destroy in the command. Without it the command exits with 2 and writes nothing. list --json marks the disks your system runs from as protected, and no option unlocks them for writing. An agent should still show you the drive list and wait for your yes before it adds --destroy.

The same facts as plain text for language models: llms.txt.

Download the latest Linux x64 build
curl -LO https://github.com/Dissimilis/FlashTester/releases/latest/download/flashtester-linux-x86_64
List drives as JSON
flashtester list --json
Probe disk 3 and print the result as JSON (erases it)
flashtester probe --disk 3 --destroy --json
Test 8 GB of free space on E: and save a report
flashtester test E: --size 8G --json --report result.html

Common questions

How can I tell if a USB stick or SD card is fake?

A fake drive reports more space than its flash can hold. Writes past the real capacity wrap around onto earlier data or vanish, so copied files look fine until you open them. Run the full test: it fills the free space with numbered test data, reads it all back and shows how much of the drive actually keeps data. On an empty drive the quick probe gives a faster first answer, but it erases the drive.

Is FlashTester an alternative to h2testw or f3?

Yes. It runs the same kind of fill-and-verify test as h2testw and can re-check the .h2w files h2testw leaves behind. It also runs on Linux and FreeBSD, where f3 is the usual choice, and adds the quick probe, whole-disk tests, speed graphs and saved reports.

Can I test microSD cards?

Yes, through any card reader or adapter. The speeds then include the reader, and a cheap reader can cause errors of its own, so retest a failing card in a second reader before blaming the card.

How long does a full test take?

Every tested byte is written once and read once. The 128 GB stick above took about 48 minutes to write at 44 MB/s and 16 minutes to read at 131 MB/s. Set a size limit for a shorter partial check.

Limits

Does the quick probe check the whole drive?

It samples positions rather than checking every sector. Run a full test to check all available space, or the size you specify.

How exact are quick diagnostics?

They sample. Capacity is checked at spaced positions, and test writes cover at most half of the disk. Cache size and recovery after idle are estimates, less certain when the drive cannot be trimmed. A run that ends before its checks finish is reported as incomplete, not OK. Tested on USB sticks and a USB SSD, not yet on internal SATA or NVMe drives.

Does identification prove the drive is genuine?

No. Device IDs can be copied, controller names may be hints, and a NAND lookup can return several matching parts. Only writing data and reading it back shows whether that space really stores it.

Can I check the system drive?

Yes: view its details, read SMART counters where supported, scan for read errors or measure read speed. Write tests and file benchmarks are blocked. A read check may slow other programs while it runs.

What needs administrator or root?

Whole-disk operations, including read scans and read speed checks, need administrator or root access. So do the capacity probe, formatting and SMART. Ordinary file tests do not.

What does OK mean?

In a write-and-verify test, the tested data came back intact. In a read scan, the scanned area was readable. Neither result predicts remaining drive life, and a read scan does not verify capacity.

What works on FreeBSD?

The GUI and every command except the free-space probe, because FreeBSD cannot report where a file's blocks are on the disk. The GUI needs an X11 desktop. "Restart as root" uses pkexec from sysutils/polkit; without it, the GUI shows the sudo or doas command to run. FreeBSD builds are tested in virtual machines with an emulated USB stick, not yet on physical FreeBSD hardware.

Which features are available on Haiku?

The experimental port is command-line only. File tests require BFS; whole-disk tests use raw devices. Free-space probing and command-line formatting are unavailable.