Ubuntu: Check disk heath – smartctrl and smartmontools

smartctl is a nice tool to check your hard disk health – it will let you know how many hours your disk have been running , the hard disk serial number, temperature …

by default smartctl is not installed by default, it’s in smartmontools package. To make it ready to use, you must install smartmontools

apt-get install smartmontools

After you install smartmontools you can run this command to check your hard disk health:

smartctl --xall /dev/sda

Here is a sample:

smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-28-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 3.5" DT01ACA... Desktop HDD
Device Model:     TOSHIBA DT01ACA300
Serial Number:    Z7I4R9AKF
LU WWN Device Id: 5 000039 fe6de5435
Firmware Version: MX6OABB0
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Aug 26 17:23:34 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

 

Leave a Reply

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