F3 F3probe
F3 a simple tool that tests flash cards capacity and performance to see if they live up to claimed specifications.
Install
sudo apt-get install f3
Test method
quick method:
- first we need to find the device path, using
lsblk
- If you see a mount point under the memory(like sdb1 under sdb for example), you need to unmount
sudo umount /dev/sdb1
- now it's time to checkit
sudo f3probe --destructive --time-ops /dev/sd<replace_by_your_drive_letter_here>
slow method:
lsblk
again.- You need to mount it this time and use
f3write <your_mount_point>
- wait until f3 finish
- Then,
f3read <your_mount_point>
- after theses test you will show a report, saying how much data was corrupted, changed, or overwritten — a genuine card should show 0 for all of them.
Fix it !
With f3probe, you can find the usable blocks, by using that number as the last sector, you can create a partition that ends where the disk actually ends, this way you can put data in without it being overwritten and corrupted when putting new files in.
sudo f3fix --last-sec=yournumber /dev/sdx