Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux

Every current disk includes a built-in monitoring feature known as SMART that keeps track of faults. On Linux, there is a software package called smartmontools that may be used to query the SMART status of the disk to see if it will fail soon.


apt-get install smartmontools


First we need to know the internal device name of the harddisks. For the first SATA disk, this is normally /dev/sda, the second is /dev/sdb etc. If you are unsure about the device names of your computer, then you can get them with:

fdisk -l

The command lists the partitions e.g. /dev/sda1. To get the device name, use the partition name without the number, e.g. the device of partition/dev/sda1 is /dev/sda.

To get a summary of the healt status of the disk, run:

smartctl --health /dev/sda

replace /dev/sda with the device name of the harddisk that you want to query.

The output will look similar to this:

~# smartctl --health /dev/sda
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is

SMART overall-health self-assessment test result: PASSED

To get the full detailed output of all parameters, use this command:

smartctl --all /dev/sda

The post Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux appeared first on FAQforge.

2 thoughts on “Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux”

  1. I want to show some appreciation to this writer just for rescuing me from this type of setting. After searching through the the net and getting ideas that were not pleasant, I thought my entire life was gone. Existing devoid of the strategies to the issues you’ve fixed by way of your main short article is a serious case, as well as the ones that might have badly damaged my career if I hadn’t come across the website. Your personal skills and kindness in maneuvering almost everything was helpful. I don’t know what I would have done if I hadn’t encountered such a point like this. I am able to at this point relish my future. Thanks for your time very much for the impressive and amazing help. I won’t be reluctant to recommend the sites to any person who ought to have care about this situation.

  2. I discovered your weblog web site on google and examine a couple of of your early posts. Continue to keep up the very good operate. I simply additional up your RSS feed to my MSN News Reader. Looking for ahead to reading extra from you in a while!?

Leave a Comment

Your email address will not be published. Required fields are marked *