Skip to content

Instantly share code, notes, and snippets.

@ZekunZh
Created December 10, 2021 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZekunZh/23382d3e0e08fd397a5de6f7470d87f9 to your computer and use it in GitHub Desktop.
Save ZekunZh/23382d3e0e08fd397a5de6f7470d87f9 to your computer and use it in GitHub Desktop.
sudo umount /dev/mmcblk0
sudo badblocks -n -v /dev/mmcblk0

A flash based medium should normally never give errors while using badblocks to the OS/application. If it does it means that:

It is worn out to the point the wear-leveling doesn't have enough room anymore. (part of) the flash memory itself is faulty. The controller chip is bad. Any combination of the above can also occur. All variants are equally lethal to the integrity of your data.

Source1

Source2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment