f3write
flash drive capacity tester
TLDR
Fill a mounted flash drive with test files
SYNOPSIS
f3write [--start-at=NUM] [--end-at=NUM] PATH
DESCRIPTION
f3write is part of the F3 (Fight Flash Fraud) suite and tests the actual capacity of flash storage devices by filling them with known data patterns. It writes 1GB files named N.h2w (where N is a number) to the target filesystem until the drive is full.
The typical workflow involves writing test data with f3write, then verifying with f3read. If the drive is counterfeit and reports false capacity, f3read will detect data corruption beyond the actual physical capacity.
f3write can operate on a mounted filesystem (writing to a directory) or directly to a raw unmounted device using the -g option.
PARAMETERS
--start-at=NUM
Initial number for file names (default: 1).--end-at=NUM
Final number for file names (default: infinity).-a, --append
Append new files to existing ones on the target device.-b BYTES, --block-size=BYTES
Set I/O block size in bytes (default: 1M).-f, --force
Force writing even if device appears busy or contains data.-g, --full-device
Write to the full raw device (device must be unmounted).-L, --low-memory
Optimize operation for systems with limited memory.-s OFFSET, --start-offset=OFFSET
Starting offset in bytes from device beginning.-S OFFSET, --end-offset=OFFSET
Ending offset in bytes where writing should stop.
CAVEATS
All data on the tested disk will be overwritten. Always backup important data before testing. When using raw device mode (-g), ensure you specify the correct device to avoid destroying data on other drives. The test can take considerable time depending on drive size and speed.
HISTORY
f3write was created by Michel Machado as part of the F3 (Fight Flash Fraud) suite. The tool addresses the widespread problem of counterfeit flash storage that uses modified firmware to report inflated capacities. When users attempt to store more data than the actual capacity, the drive silently corrupts data by overwriting existing content or simply discarding writes.
