Test harddisk for bad blocks

# 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.

Pass completed, X bad blocks found (R/W/C errors)

The three numbers in the parentheses correspond to:

# smartctl -t long /dev/device

remember no smart on sd cards


Revision #3
Created 2026-04-01 17:15:23 CEST by Philip
Updated 2026-04-13 19:26:17 CEST by Philip