hddtemp doesn't work with NVMe drive

Bug #1929856 reported by psl
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
hddtemp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 18.04.5 (Linux Mint 19.3)
hddtemp 0.3-beta15-53, amd64

I see that hddtemp tool cannot work with NVMe (SSD disk).
I test with WD "Blue" SN550 - 1TB, NVMe drive.

$ sudo hddtemp /dev/nvme0
ERROR: /dev/nvme0: can't determine bus type (or this bus type is unknown)

$ sudo hddtemp /dev/nvme0n1
ERROR: /dev/nvme0n1: can't determine bus type (or this bus type is unknown)

hddtemp can report temperature of my SATA drives:

$ sudo hddtemp /dev/sda /dev/sdb
/dev/sda: CHN-25SATAC3-120: 40°C
/dev/sdb: WDC WD5000AAKX-75U6AA0: 41°C

================================================

Utility `smartctl` reports temperature of NVMe drive:

$ sudo smartctl -iA /dev/nvme0
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.0.0-32-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: WDC WDS100T2B0C-00PXH0
Serial Number: 2052FQSECRET
Firmware Version: 211070WD
PCI Vendor/Subsystem ID: 0x15b7
IEEE OUI Identifier: 0x001b44
Total NVM Capacity: 1 000 204 886 016 [1,00 TB]
Unallocated NVM Capacity: 0
Controller ID: 1
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1 000 204 886 016 [1,00 TB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Thu May 27 19:37:08 2021 CEST

=== START OF SMART DATA SECTION ===
SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)
Critical Warning: 0x00
Temperature: 54 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 104 158 [53,3 GB]
Data Units Written: 2 213 638 [1,13 TB]
Host Read Commands: 455 476
Host Write Commands: 2 417 674
Controller Busy Time: 46
Power Cycles: 6
Power On Hours: 2
Unsafe Shutdowns: 2
Media and Data Integrity Errors: 0
Error Information Log Entries: 1
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0

===============================================

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hddtemp (Ubuntu):
status: New → Confirmed
Revision history for this message
Herbert Nees (f0rd-prefect) wrote :

There is already a patch for hddtemp-0.3-beta15 on bugzilla@redhat (Red Hat Bugzilla – Bug 1801116, https://bugzilla.redhat.com/show_bug.cgi?id=1801116).

Please provide this enhancement on ubuntu, too. Thanks!

Revision history for this message
Herbert Nees (f0rd-prefect) wrote (last edit ):

There is a fork already providing support for nvme drives and other enhancements: hddtemp v0.4.3 at https://github.com/vitlav/hddtemp (33 commits ahead),
invoke with sudo hddtemp /dev/nvme0n1

Revision history for this message
Krisztian Poos (rocky-poos) wrote :

I just don't understand why the ubuntu repo cannot have the updated version 0.4.3 as a dep package... Still need to compile that to be able to use...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.