How can I check the SMART status of a drive under 14.04 and beyond? I've seen Checking HD SMART status on a fresh install but it doesn't seem to apply under 14.04 and later.
How can I check the SMART status of a drive under 14.04 and beyond? I've seen Checking HD SMART status on a fresh install but it doesn't seem to apply under 14.04 and later.
Disks Utility
Launch the Disks Utility (If you don't have it already, you can install Disks via the Software Center or open a terminal and issue the command
sudo apt-get install gnome-disk-utility
.Select the drive of interest then click on the menu button at the upper right corner and choose SMART Data & self tests
Note that sometime between 18.10 and 20.04 the menu option has moved from the "hamburger menu" to the 3 vertical dots menu as shown below.
Types of self-tests
How to interpret SMART-Attributes
The most important attribute in terms of failure rates is likely the 196 - Reallocated Sector Count, but considering Google research paper: _"...failure prediction models based on SMART parameters alone are likely to be severely limited in their prediction accuracy, given that a large fraction of our failed drives have shown no SMART error signals whatsoever." However, the majority of the drives (over 60%) in the study that failed did exhibit a smart failure, so as imperfect as it may be, it's still valid indicator.
Note that while the vast majority of recent drives support SMART not all drives do and implementations can vary. For more details on SMART see https://en.wikipedia.org/wiki/S.M.A.R.T.
The commandline version of the
libatasmart
library used by Gnome Disks is calledskdump
part of thelibatasmart-bin
package which is not installed by default. Install by using:Next run the following command to see the SMART information by running the following command in the terminal (replacing
/dev/sda
by the path to your drive):As an alternative the
smartctl
from thesmartmontools
package could be used. Install by using:You will then be able to get information on SMART by running the following command in the terminal (replacing
/dev/sda
by the path to your drive):Note that
smartctl
tends to be overly verbose. Use the-q errorsonly
argument to display only errors:Ubuntu 16.04
This answer is migrated from a duplicate question closed here (What happend to SMART data (disk selftest option)).
The question above has been changed to require Ubuntu versions after 14.04 but the answers haven't changed and don't apply to Ubuntu 16.04. As such it caused confusion as described in the closed question.
Select
Dash
the first option on theLauncher
and typedisks
. Select the icon that appears. If thedisks
program isn't available you need to install it first with:The
disks
main screen looks like this:Notice the "hamburger" menu in the top right corner. Select it to get a drop down menu where you can select the SMART screen shown below:
If you require further explanation please comment below.
SMART option greyed out
In comments it was mentioned the SMART option was greyed out. This can happen with NVMe SSD's. In this case referring to this answer:
You need to first install NVMe SSD specific SMART tools:
Then run the program to report health of drive:
The most important data point is:
When it hits 100% it is time worry about replacing your drive. That said this drive is two years old and still at
0%