Test If Linux Server SCSI / SATA Hard Disk Going Bad

in Categories CentOS, Debian Linux, File system, Gentoo Linux, Howto, Linux, Linux distribution, Sys admin, Tips, Troubleshooting, Ubuntu Linux last updated August 3, 2017

One of our regular reader sends us a question:
   How can I test if my hard disk is going bad? I see few errors in /var/log/messages file.
I/O errors in /var/log/messages indicates that something is wrong with the hard disk and it may be failing. You can check hard disk for errors using smartctl command, which is control and monitor utility for SMART disks under Linux / UNIX like operating systems.