Test harddisk for bad blocks: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
#badblocks -e 10 -s -w /dev/mmcblk0 | # badblocks -e 10 -s -w /dev/mmcblk0 | ||
-e max bad block count<br> | |||
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.<br> | |||
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 | # smartctl -t long /dev/device | ||
remember no smart on sd cards | remember no smart on sd cards |
Revision as of 11:57, 7 May 2025
# 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