If you are looking for a tool to monitor and display HDD and SSD health and failures under Fedora 21 or older, I suggest that you try Smartmontools which is used to prevent hard disk or SSD failure and it will give you the most accurate disk health rating.

Smartmontools will verify the health status of your hard drive by inspecting the SMART status of the drive. The user will be warned if an error or some unexpected behaviors is detected before it's too late (data loss).

Smartmontools Installation

To install Smartmontools on Fedora 21 or older, open terminal and issue this command:

sudo yum install smartmontools

Once Smartmontools  is installed, you will have these two tools installed as well: Smartctl and smartd. In this tutorial we will only see the Smartctl  tool which requires root privileges to work on your hard drives.

In Terminal, run this command to check your hard disk:

sudo smartctl -i /dev/sda

Note: Replace /dev/sda with your own hard disk (check it using this command: parted -l)

Here is an example of output you may receive:

  • Device Model:     HARDDISK
  • Serial Number:    09497d65-843b8578
  • Firmware Version: 1.0
  • User Capacity:    17,352,228,864 bytes [17.3 GB]
  • Sector Size:      512 bytes logical/physical
  • Device is:        Not in smartctl database [for details use: -P showall]
  • ATA Version is:   ATA/ATAPI-6 published, ANSI INCITS 361-2002
  • Local Time is:    Wed Apr 22 15:00:33 2015 CET
  • SMART support is: Available - device has SMART capability.
  • SMART support is: Enabled

To check the health status of your hard disk, run this command:

sudo smartctl -H /dev/sda

If the test is passed, you may get an output similar to this:

SMART overall-health self-assessment test result: PASSED

If the test fails then you need to backup your data immediately and move them to another disk because your drive is about to fail. For more functions for Smartctl, run this command:

smartctl -h

Post a Comment