What it does
A command-line tool that fills an external USB volume with verifiable test data, reads every byte back, and reports pass or fail. It catches many counterfeit drives that advertise far more space than they actually have.
Features
- Lists external USB volumes on your Mac and asks you to confirm the target.
- Writes test files, then checks checksums and patterns on the way back.
- Reports PASS or FAIL for fake capacity, corruption, or an early write failure.
--quickruns a short smoke test; a full run is the legitimacy check.
See it in action
Simulated Two sample runs against pretend volumes. The tool would erase a real disk.
Set it up
This erases the volume you point it at. Confirm the mount path before you start.
# Full test on a drive you think is 128 GB
~/usb-drive-test/usb-drive-test --mount /Volumes/KINGSTON --size 128GB
# Fast 1 GB smoke test
~/usb-drive-test/usb-drive-test --mount /Volumes/KINGSTON --quick
# Interactive (pick from list)
~/usb-drive-test/usb-drive-testFull instructions live in the repository README.
Security
- A wrong
--mountpath can destroy data on the wrong disk. Prefer an explicit path after you have looked at the volume name. - Do not run as root against raw device names unless you understand them.
- The tool has no network client and stores no secrets.
Report vulnerabilities to Hello@Braddcorp.com, and read the full SECURITY.md for the threat model and operator hygiene.
Known limitations
Destructive by design
Existing files on the target volume are not preserved.
--quick is not complete
A short write will not catch every counterfeit capacity trick.
Pre-1.0
The current tree is aimed at macOS. Only the main branch is supported.
Changelog
No tagged releases yet. The project is pre-1.0 and only main is supported, so this is the commit history.
Commits
Generated at build time from 2 commits on main (db1e766) on 2026-12-06 UTC. Dates are UTC. No requests to GitHub happen when you view this page.
License
MIT, copyright BraddCorp. See LICENSE. Contributions and forks are welcome on GitHub.