using command ‘badbloocks’ check bad b …
using command ‘badbloocks’ check bad block on the device.
$badblocks -c -v /dev/sda1
-c blocks at once
-v verbose mode
in the freebsd system, smart montools can be used:
$cd /usr/ports/sysutils/smartmontools
$make config install clean
$smartctl -a /dev/ad0 // quick checking and check all
$smartctl -t long /dev/ad0 // check and test
