Hacker News new | past | comments | ask | show | jobs | submit login

I always use this tool https://github.com/AltraMayor/f3

It fills the entire device with data and then tries to read it all back. It can tell you how many bytes were successfully read, how many were corrupted and how many were written over by other writes.

Even on cards I know are real I still run the test because I have had a card that had a few bytes that got corrupted which caused loads of issues with my rpi.




I usually use f3probe, which IIRC uses some heuristics and trades of accuracy for speed, i.e. it doesn't write to the entire drive.

The docs are lower down the page from the main f3 utils:

https://fight-flash-fraud.readthedocs.io/en/latest/usage.htm...


The test time can be pretty insane on the high capacity cards. I remember it took about 4 hours to test a 256gb card but I find its worth it to check the card just once since it saves a lot of pain later when you find one tiny part of the card is failing.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: