Test harddisk for bad blocks
Appearance
# badblocks -e 10 -s -w /dev/mmcblk0
-e max bad block count
Specify a maximum number of bad blocks before aborting the test. The default is 0, meaning the test will continue until the end of the test range is reached.
-s show progress
-w use write mode
-n Use non-destructive read-write mode.
By default only a non-destructive read-only test is done. This option must not be combined with the -w option, as they are mutually exclusive.
# smartctl -t long /dev/device
remember no smart on sd cards