Checking drive health with smartctl

smartctl can be used for checking the health of your drives (i.e. HDDs, SSDs) and providing general information and statistics such as the firmware version, serial number, power-on hours and so on. 

You must first ensure that your server has smartctl installed, part of the smartmontools package. 

Once installed, a very basic use of the command would be:

smartctl -a /dev/sdb
You can view your partitions with tools such as "fdisk" (i.e. fdisk -l).

A quick and easy way to check the health of /dev/sdb would be as follows:

smartctl -a /dev/sdb | grep result
Example output:

# smartctl -a /dev/sdb | grep result
SMART overall-health self-assessment test result: PASSED

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Running a ClamAV and Maldet scan on cPanel servers

You may be familiar with ClamAV and Maldet (aka Linux Malware Detect). They're widely known as...

What is mysqluserstore?

On cPanel servers, you may come across the process...

Installing the LiteSpeed WHM Plugin

If your server is running cPanel/WHM, simply execute the below commands via SSH (as root):wget...

Changing the timezone

If you're like us, you'll want your server's timezone to match your local time to make log...

Finding the largest files and directories

This nifty command allows you to built up a list of the largest files and...