Skip to content

Instantly share code, notes, and snippets.

@bbarrows
Created December 31, 2018 00:47
Show Gist options
  • Save bbarrows/5ccc8500269e8bce10f83abbf53973d5 to your computer and use it in GitHub Desktop.
Save bbarrows/5ccc8500269e8bce10f83abbf53973d5 to your computer and use it in GitHub Desktop.
Using badblocks tools to verify if an SD Card is broken or not
#/bin/bash
# The -w is using a DESTRUCTIVE WRITE TEST
sudo badblocks -v -s -w /dev/mmcblk0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment