What's the command to redirect error messages to a file?
Les Mikesell wrote:
Use smartctl if the drive supports it. If it doesn't, a brute force
nondestructive approach is to 'cat /dev/xxx >/dev/null' to force every
sector to be read and watch for error messages on the screen or logged
to /var/log/messages. Or you could use the 'badblocks' program.