Checking drive health with smartctl Print

  • 0

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


Was this answer helpful?

« Back


Ethernet Servers Ltd
124 City Road
London
EC1V 2NX


Registered Limited Company: #09114946
Telephone: +44 330 043 1258
Email: [email protected]

Copyright © 2013 - 2022 - Ethernet Servers Ltd - All Rights Reserved.

Proudly serving customers in 118 countries since September 2013!