To check whether a suspect microSD card can store and return data on Linux, use F3’s mounted-filesystem test: back up the card, then run f3write followed by f3read on its mount path.
Protect your files before testing
F3 writes pseudorandom test data and checks whether the card returns it correctly. F3’s usage instructions warn against testing a card that already contains files: a fault can destroy older data. Back up the card before you begin, and use an empty card for the test.
The direct-device tool, f3probe, has an additional risk: its --destructive mode destroys stored data, as the F3 project documentation warns.
Run the file-based test
The card must be mounted so you can use its filesystem path. F3’s documented sequence is f3write first, then f3read.
- Use the card’s mount path. The path in the project’s example is
/media/michel/5EBD-5C80/; replace it with the path where your card is mounted. - Write the test files. Run
f3writewith that path:f3write /media/michel/5EBD-5C80/ - Check the files. Once
f3writefinishes, runf3readwith the same path:f3read /media/michel/5EBD-5C80/
f3write writes the files; f3read checks whether they are present and correct. Together, the commands test capacity and whether written data can be read back.
When to use f3probe
f3probe checks the block device directly rather than testing files through a mounted filesystem. It requires root access and careful identification of the correct device, according to the F3 usage instructions. Don’t guess a device name or copy one from an example: selecting the wrong device risks affecting the wrong storage. Its --destructive mode erases stored data.
What the result tells you
A gap between a card’s advertised capacity and the usable capacity F3 reports is a warning that it may not provide the storage it claims. A passing capacity test, however, does not prove the card is genuine or dependable. FlashCarts.net’s microSD testing guide notes that some low-quality cards can pass such a test and still fail early.
F3’s f3fix can create a partition sized to a fake drive’s actual capacity. That adjusts the partition to the available space; it does not establish that the card is reliable for storing important files.