badblocks - search a device for bad blocks
To check the mounted disk for bad blocks run the following command:
# badblocks -sv /dev/sdb
-s Show the progress of the scan
-v Verbose mode
/dev/sdb Disk to be tested
By default only a non-destructive read-only test is done. Check the man page for other options.
# man 8 badblocks