Support NVME ssd devices better and read Model / Smart values
Submitted by boscowitch
The version specified fails to show the "Model" field and disables SMART options in the menue. (only serialnumber is read correctly)
However it is possible to read those values as smartmontools can read all the infomation from Model to all the SMART values.
And it would be nice to show the most important value
TBW/DUW (total bytes written or data units written) in the main UI since it is the most important information together with temperature for a quick health estimate.
here is an example of the smartmonoutput for a samsung 950 nvme sdd:
sudo smartctl /dev/nvme0 -a smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.9.8-1-ARCH] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION === Model Number: Samsung SSD 950 PRO 512GB Serial Number: S2GMNXXXXXXXXXX Firmware Version: 1B0QBXX7 PCI Vendor/Subsystem ID: 0x144d IEEE OUI Identifier: 0x002538 Controller ID: 1 Number of Namespaces: 1 Namespace 1 Size/Capacity: 518.104.22.1682 [512 GB] Namespace 1 Utilization: 263.815.585.792 [263 GB] Namespace 1 Formatted LBA Size: 512 Local Time is: Sun Feb 19 13:22:10 2017 CET Firmware Updates (0x06): 3 Slots Optional Admin Commands (0x0007): Security Format Frmw_DL Optional NVM Commands (0x001f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Maximum Data Transfer Size: 32 Pages ... ... ...
=== START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff) Critical Warning: 0x00 Temperature: 56 Celsius Available Spare: 100% Available Spare Threshold: 10% Percentage Used: 0% Data Units Read: 21.504.679 [11,0 TB] Data Units Written: 6.064.597 [3,10 TB] Host Read Commands: 298.465.621 Host Write Commands: 139.265.204 Controller Busy Time: 1.501 Power Cycles: 1.177 Power On Hours: 4.569 Unsafe Shutdowns: 160 Media and Data Integrity Errors: 0 Error Information Log Entries: 198
From this only the Serial Number is showed in the gnome-disks utility correctly
Model is shown as "—"
Btw THX for all your good work!