Code Monkey home page Code Monkey logo

hddtemp's People

Contributors

guzu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hddtemp's Issues

Add Western Digital SN850X NVME Drive

Running default, I can only see my SATA SSDs:

$ sudo hddtemp
/dev/sda: Samsung SSD 870 EVO 2TB: 31°C
/dev/sdb: Samsung SSD 870 EVO 2TB: 30°C

I am able to get hddtemp to display the NVME drive and temp properly if I specify the drive:

$ sudo hddtemp /dev/nvme0n1
/dev/nvme0n1: WD_BLACK SN850X 4000GB: 39°C
$ sudo hddtemp /dev/nvme1n1
/dev/nvme1n1: WD_BLACK SN850X 4000GB: 42°C

However when I try set this up as a daemon and poll for the temperature it doesn't report properly:

$ netcat localhost 7634
|/dev/sda|Samsung SSD 870 EVO 2TB|31|C||/dev/sdb|Samsung SSD 870 EVO 2TB|30|C||/dev/nvme0n1|WD_BLACK SN850X 4000GB|UNK|*||/dev/nvme1n1|WD_BLACK SN850X 4000GB|UNK|*|

Running hddtemp --debug, I don't see temperature data:

$ hddtemp --debug /dev/nvme0n1

================= hddtemp 0.3-beta15 ==================
Model: WD_BLACK SN850X 4000GB


If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

$ hddtemp --debug /dev/nvme1n1

================= hddtemp 0.3-beta15 ==================
Model: WD_BLACK SN850X 4000GB


If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

I'm not sure how to get the SMART attribute number for temperature, but it is present:

$ sudo smartctl -a /dev/nvme0n1
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.4-200.fc39.x86_64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       WD_BLACK SN850X 4000GB
Serial Number:                      23322S800017
Firmware Version:                   624331WD
PCI Vendor/Subsystem ID:            0x15b7
IEEE OUI Identifier:                0x001b44
Total NVM Capacity:                 4,000,787,030,016 [4.00 TB]
Unallocated NVM Capacity:           0
Controller ID:                      8224
NVMe Version:                       1.4
Number of Namespaces:               1
Namespace 1 Size/Capacity:          4,000,787,030,016 [4.00 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            001b44 8b4a214c61
Local Time is:                      Sat Dec 16 14:45:22 2023 EST
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x00df):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp Verify
Log Page Attributes (0x1e):         Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg Pers_Ev_Lg
Maximum Data Transfer Size:         128 Pages
Warning  Comp. Temp. Threshold:     90 Celsius
Critical Comp. Temp. Threshold:     94 Celsius
Namespace 1 Features (0x02):        NA_Fields

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     9.00W    9.00W       -    0  0  0  0        0       0
 1 +     6.00W    6.00W       -    0  0  0  0        0       0
 2 +     4.50W    4.50W       -    0  0  0  0        0       0
 3 -   0.0250W       -        -    3  3  3  3     3100   11900
 4 -   0.0050W       -        -    4  4  4  4     3900   45700

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        40 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    104,276 [53.3 GB]
Data Units Written:                 828,999 [424 GB]
Host Read Commands:                 1,181,171
Host Write Commands:                4,726,290
Controller Busy Time:               15
Power Cycles:                       14
Power On Hours:                     3
Unsafe Shutdowns:                   4
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

Error Information (NVMe Log 0x01, 16 of 256 entries)
No Errors Logged

Read Self-test Log failed: Invalid Field in Command (0x4002)

I tried adding the NVME drive to /usr/share/misc/hddtemp.db with various SMART attribute numbers but that didn't work.

Please advise if there's something else I should try.

Add WDC WD10EZEX-60M2NA0 (Western Digital Blue 1TB)

WARNING: Drive /dev/sdb doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me ([email protected]).
WARNING: See --help, --debug and --drivebase options.
/dev/sdb: WDC WD10EZEX-60M2NA0:  no sensor
================= hddtemp 0.3-beta15 ==================
Model: WDC WD10EZEX-60M2NA0

field(1)	 = 0
field(3)	 = 249
field(4)	 = 49
field(5)	 = 0
field(7)	 = 0
field(9)	 = 198
field(10)	 = 0
field(11)	 = 0
field(12)	 = 18
field(183)	 = 0
field(184)	 = 0
field(187)	 = 0
field(188)	 = 20
field(190)	 = 29
field(192)	 = 241
field(193)	 = 196
field(196)	 = 0
field(197)	 = 0
field(198)	 = 0
field(199)	 = 0
field(200)	 = 0

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.
=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue
Device Model:     WDC WD10EZEX-60M2NA0
Serial Number:    ***
LU WWN Device Id: 5 0014ee 20b6f93d6
Firmware Version: 03.01A03
User Capacity:    1,000,204,886,016 bytes [1.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:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Feb 10 23:18:35 2022 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

190 Airflow_Temperature_Cel 0x0022 071 053 040 Old_age Always - 29 (Min/Max 29/29)

Add TOSHIBA HDWN180

Field 194 seems to be correct. It started with 20 when attaching the drive and since then has slowly risen to 28. The other fields have remained unchanged.

# hddtemp --debug /dev/sde

================= hddtemp 0.3-beta15 ==================
Model: TOSHIBA HDWN180

field(1)         = 0
field(2)         = 0
field(3)         = 50
field(4)         = 2
field(5)         = 0
field(7)         = 0
field(8)         = 0
field(9)         = 0
field(10)        = 0
field(12)        = 2
field(191)       = 0
field(192)       = 0
field(193)       = 2
field(194)       = 28
field(196)       = 0
field(197)       = 0
field(198)       = 0
field(199)       = 0
field(220)       = 0
field(222)       = 0
field(223)       = 0
field(224)       = 0
field(226)       = 48
field(240)       = 0
# smartctl -i /dev/sde
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.14.8-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA HDWN180
Serial Number:    Z7E3K2J5FP9E
LU WWN Device Id: 5 000039 83b801797
Firmware Version: GX2M
User Capacity:    8.001.563.222.016 bytes [8,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Mar 26 00:00:33 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

New active upstream

Hi, Emmanuel!
I would like to maintain the project upstream if you have no free time for it. Will you allow me?
I have committed all patches from Debian, Fedora, and ALT Linux, fix some bugs and made the new release:
https://github.com/vitlav/hddtemp

Add Seagate ST31000528AS

# smartctl /dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0:0 -a -d usbsunplus |grep Temp
190 Airflow_Temperature_Cel 0x0022   071   043   045    Old_age   Always   In_the_past 29 (Min/Max 29/50 #5)
194 Temperature_Celsius     0x0022   029   057   000    Old_age   Always       -       29 (0 3 0 0 0)

However there is another issue as hddtemp can't read the file path at all:

# ls -al /dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0:0 
lrwxrwxrwx 1 root root 9 Aug 17 08:38 /dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0:0 -> ../../sdc

# hddtemp /dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0\:0 
0: open: No such file or directory

# hddtemp /dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0:0 
0: open: No such file or directory

# hddtemp '/dev/disk/by-id/usb-TrekStor_DS_maxi_m.u_00E913cb-0:0' 
0: open: No such file or directory

# hddtemp /dev/sdc
/dev/sdc: TrekStorDS maxi m.u: S.M.A.R.T. not available

From the smart header, connected via USB (Bus 001 Device 005: ID 1e68:000f TrekStor GmbH & Co. KG)

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.12
Device Model:     ST31000528AS
Serial Number:    9VP0ZYJM
LU WWN Device Id: 5 000c50 01543cd93
Firmware Version: CC35
User Capacity:    1.000.204.886.016 bytes [1,00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Thu Aug 17 11:24:37 2017 CEST

Add "Samsung SSD 840 Series" drive to the hddtemp.db?

Hi Emmanuel,

could you please add
Samsung SSD 840 Series
drive to the hddtemp.db?

hddtemp.db line:
"Samsung SSD 840 Series" 190 C "Samsung SSD 840 Series"
Thanks!
Jirka

Drive details:
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 840 Series
Serial Number: S14GNEACA04974N
LU WWN Device Id: 5 002538 5500081f1
Add. Product Id: 00000000
Firmware Version: DXT06B0Q
User Capacity: 250 059 350 016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Jan 3 22:54:04 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===

Vendor Specific SMART Attributes with Thresholds:
190 Airflow_Temperature_Cel 0x0032 066 050 000 Old_age Always - 34

Add WDC WD1600BEVS-08RST2

Please add the following hard disk to hddtemp.db:

"WDC WD1600BEVS-08RST2" 194 C "Western Digital Scorpio Blue SATA 160GB 5400RPM 8MB"
# hddtemp /dev/sda --debug

================= hddtemp 0.3-beta15 ==================
Model: WDC WD1600BEVS-08RST2

field(1)         = 0
field(3)         = 247
field(4)         = 6
field(5)         = 0
field(7)         = 0
field(9)         = 201
field(10)        = 0
field(11)        = 0
field(12)        = 214
field(192)       = 42
field(193)       = 193
field(194)       = 20
field(196)       = 0
field(197)       = 0
field(198)       = 0
field(199)       = 0
field(200)       = 0

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.
# smartctl -i /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.13.5-gnu] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Scorpio Blue Serial ATA
Device Model:     WDC WD1600BEVS-08RST2
Serial Number:    WD-WXC108D16354
LU WWN Device Id: 5 0014ee 2abbf3a28
Firmware Version: 11.01G11
User Capacity:    160,041,885,696 bytes [160 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Sun Oct 29 22:07:52 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

See also https://bugs.gentoo.org/635836.

some others drives

Please add :

"WDC WD10EZEX-60ZF5A0"         190 C "Western Digital Caviar Blue 1TB SATA3 (SATA 6Gb/s)"
"WDC WD10EZEX-00WN4A0"         194 C "Western Digital Caviar Blue 1TB SATA3 (SATA 6Gb/s)"
"SA400S37120G"                 194 C "KINGSTON KINGSTON 120GB SATA 3.2 6.0Gb/s"
"Samsung SSD 860 EVO 250G B"   190 C "Samsung SSD 860 EVO 250G B"

Thanks

PS : Author in man page has incorrect email : [email protected] (unknown user)

www.guzu.net is down. Please update the link to hddtemp.db in the README file

as stated the original site is down and information that was moved to savannah is hard to find now hence getting the latest version of hddtemp.db is a bit of a pain.
I would suggest to update the README file and maybe add the hddtemp.db to the repository or create a new repo containing this database.
thanks for this nice utility

Add SAMSUNG MZ7PA256HMDR-010H1

# smartctl /dev/disk/by-id/ata-SAMSUNG_MZ7PA256HMDR-010H1_S0NVNEAB900378 -a |grep Temp
190 Airflow_Temperature_Cel 0x0022   076   076   ---    Old_age   Always       -       24

Sabrent EC-SNVE USB-C to NVMe/SATA enclosure

hddtemp doesn't show the temperature for the Sabrent EC-SNVE USB-C to NVMe/SATA enclosure but smartctl can see it:

# hddtemp /dev/sdb
/dev/sdb: Sabrent:  drive supported, but it doesn't have a temperature sensor.
# hddtemp -D /dev/sdb

================= hddtemp 0.3-beta15 ==================
Model: Sabrent


If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.
# smartctl -x /dev/sdb
smartctl 7.2 2021-01-17 r5171 [x86_64-linux-5.11.20-300.fc34.x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KBG30ZMV256G TOSHIBA
Serial Number:                      XXXXXXXXXXXX
Firmware Version:                   ADHA0102
PCI Vendor/Subsystem ID:            0x1179
IEEE OUI Identifier:                0x00080d
Controller ID:                      0
NVMe Version:                       1.2.1
Number of Namespaces:               1
Namespace 1 Size/Capacity:          256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            00080d 040097e394
Local Time is:                      Wed May 19 17:33:44 2021 CDT
Firmware Updates (0x12):            1 Slot, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x0017):     Comp Wr_Unc DS_Mngmt Sav/Sel_Feat
Log Page Attributes (0x02):         Cmd_Eff_Lg
Maximum Data Transfer Size:         512 Pages
Warning  Comp. Temp. Threshold:     82 Celsius
Critical Comp. Temp. Threshold:     85 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     3.30W       -        -    0  0  0  0        0       0
 1 +     2.70W       -        -    1  1  1  1        0       0
 2 +     2.30W       -        -    2  2  2  2        0       0
 3 -   0.0500W       -        -    4  4  4  4     8000   32000
 4 -   0.0050W       -        -    4  4  4  4     8000   40000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 -    4096       0         0
 1 +     512       0         3

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        53 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    4%
Data Units Read:                    6,640,478 [3.39 TB]
Data Units Written:                 7,421,250 [3.79 TB]
Host Read Commands:                 125,097,961
Host Write Commands:                57,274,232
Controller Busy Time:               647
Power Cycles:                       24,574
Power On Hours:                     1,391
Unsafe Shutdowns:                   119
Media and Data Integrity Errors:    0
Error Information Log Entries:      503
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               53 Celsius

Warning: NVMe Get Log truncated to 0x200 bytes, 0x200 bytes zero filled
Error Information (NVMe Log 0x01, 16 of 64 entries)
No Errors Logged

Add Seagate Barracuda 2TB 7200rpm SATA3

Please add the following hard disk to hddtemp.db:
"ST2000DM006-2DM164" 194 C "Seagate Barracuda 2TB SATA3 7200RPM 64MB"

# hddtemp /dev/sdb --debug

================= hddtemp 0.3-beta15 ==================
Model: ST2000DM006-2DM164

field(1)         = 208
field(3)         = 0
field(4)         = 5
field(5)         = 0
field(7)         = 113
field(9)         = 35
field(10)        = 0
field(12)        = 5
field(183)       = 0
field(184)       = 0
field(187)       = 0
field(188)       = 0
field(189)       = 2
field(190)       = 37
field(191)       = 0
field(192)       = 2
field(193)       = 85
field(194)       = 37
field(197)       = 0
field(198)       = 0
field(199)       = 0
field(240)       = 24
field(241)       = 241
field(242)       = 11

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

# smartctl -i /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.16.1-gentoo] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 3.5
Device Model:     ST2000DM006-2DM164
Serial Number:    Z560QPTV
LU WWN Device Id: 5 000c50 0b02d1030
Firmware Version: CC26
User Capacity:    2,000,398,934,016 bytes [2,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:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr  9 18:39:49 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled`

See also https://bugs.gentoo.org/652806

Add "Samsung SSD 830 Series" drive

SAMSUNG MZMPC128HBFU-000 在使用hddtemp的时候报no sensor,但在Windows下能正常获取温度信息。
Samsung mzmpc128hbfu-000 reports no sensor when using hddtemp, but it can normally obtain temperature information under windows.

root@pve:~# hddtemp /dev/sd?
WARNING: Drive /dev/sda doesn't seem to have a temperature sensor.
WARNING: This doesn't mean it hasn't got one.
WARNING: If you are sure it has one, please contact me ([email protected]).
WARNING: See --help, --debug and --drivebase options.
/dev/sda: SAMSUNG MZMPC128HBFU-000 : no sensor

How i should add my hard drives to database?

Hi there i just want to know why is the correct way to add information for database, i want to add my hdds, but with /dev/sda & /dev/sdc i see WARNING and i am not secure if that values are correct or not

su -c "hddtemp /dev/sd{a,b,c}" root

WARNING: Drive /dev/sda doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sda: SAMSUNG HD322HJ ��: 37°C or °F

/dev/sdb: ST3750640AS P ��: 50°C

WARNING: Drive /dev/sdc doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sdc: WDC WD800BB-75JHC0 ��: 42°C or °F

You can tell me which commands i should use for extract all technical information can be usefull for devs of hddtemp.

Add Hitachi HTS727575A9E364

# smartctl /dev/disk/by-id/ata-Hitachi_HTS727575A9E364J3340084K1RA3A -a |grep Temp
190 Airflow_Temperature_Cel 0x0022   058   056   045    Old_age   Always       -       42 (Min/Max 26/43)

hddtemp returns "Success" instead of value

One of my drives takes a long time to response and hddtemp sometimes returns "Success" instead of the actual value.

hddtemp -D /dev/sde

================= hddtemp 0.3-beta15 ==================
Model: ST2000DM001-1CH164

/dev/sde: Success

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

Sometimes it returns correct output:

hddtemp -D /dev/sde

================= hddtemp 0.3-beta15 ==================
Model: ST2000DM001-1CH164

field(1)         = 120
field(3)         = 0
field(4)         = 122
field(5)         = 112
field(7)         = 251
field(9)         = 208
field(10)        = 0
field(12)        = 123
field(183)       = 7
field(184)       = 0
field(187)       = 23
field(188)       = 162
field(189)       = 1
field(190)       = 27
field(191)       = 0
field(192)       = 106
field(193)       = 123
field(194)       = 27
field(197)       = 56
field(198)       = 56
field(199)       = 0
field(240)       = 70
field(241)       = 154
field(242)       = 226

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.
hddtemp  /dev/sde
/dev/sde: ST2000DM001-1CH164: 27?C

something removes hddtemp package

openSUSE Tumbleweed

Since 2022-08-13 something removes hddtemp package.

I reinstall hddtemp then next day I check that hddtemp is removed.

It seems that updating the OS removes hddtemp. The OS is updated each day.

Add support for enclosure bypass to drive SMART attributes?

Add support for enclosure bypass to drive SMART attributes?

Maybe have hddtemp call smartctl from SmartMonTools, to achieve this? In my case, the enclosure does not support SMART, but the drives installed do:

# smartctl -d sat -a /dev/sdi | grep 194
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 31 (Min/Max 16/55)

So if hddtemp could use SmartMonTool smartctl, that would be wonderful for my use case. And, if you added this feature, hddtemp could update its own db file over time!

Add WDC WD30EZRZ-00Z5HB0

Please add the following drive to hddtemp.db:

"WDC WD30EZRZ-00Z5HB0" 194 C "Western Digital Blue 3TB SATA3 5400RPM 64MB"

See also: https://bugs.gentoo.org/635832.

# hddtemp /dev/sda --debug

================= hddtemp 0.3-beta15 ==================
Model: WDC WD30EZRZ-00Z5HB0

field(1)	 = 0
field(3)	 = 28
field(4)	 = 95
field(5)	 = 0
field(7)	 = 0
field(9)	 = 33
field(10)	 = 0
field(11)	 = 0
field(12)	 = 95
field(192)	 = 14
field(193)	 = 203
field(194)	 = 28
field(196)	 = 0
field(197)	 = 0
field(198)	 = 0
field(199)	 = 0
field(200)	 = 0

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.
# smartctl -i /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.13.9-gnu] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue
Device Model:     WDC WD30EZRZ-00Z5HB0
Serial Number:    WD-WCC4N1ZXL7DN
LU WWN Device Id: 5 0014ee 20e60f733
Firmware Version: 80.00A80
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Oct 29 22:02:49 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Samsung SSD 850 EVO 250GB

"Samsung SSD 850 EVO 250G B*" 190 C "Samsung Evo 850"

sudo hddtemp --debug /dev/sda

================= hddtemp 0.3-beta15 ==================
Model: Samsung SSD 850 EVO 250G B �@

field(5) = 0
field(9) = 148
field(12) = 22
field(177) = 26
field(179) = 0
field(181) = 0
field(182) = 0
field(183) = 0
field(187) = 0
field(190) = 33 <--
field(195) = 0
field(199) = 0
field(235) = 12
field(241) = 234

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

sudo smartctl -x /dev/sda

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.34-1-pve] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 850 EVO 250GB
Serial Number: S2R6NX0J734418T
LU WWN Device Id: 5 002538 d421abcec
Firmware Version: EMT02B6Q
User Capacity: 250,059,350,016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Aug 1 00:00:02 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Unavailable
Rd look-ahead is: Enabled
Write cache is: Enabled
DSN feature is: Unavailable
ATA Security is: Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 133) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct PO--CK 100 100 010 - 0
9 Power_On_Hours -O--CK 095 095 000 - 23444
12 Power_Cycle_Count -O--CK 099 099 000 - 22
177 Wear_Leveling_Count PO--C- 098 098 000 - 26
179 Used_Rsvd_Blk_Cnt_Tot PO--C- 100 100 010 - 0
181 Program_Fail_Cnt_Total -O--CK 100 100 010 - 0
182 Erase_Fail_Count_Total -O--CK 100 100 010 - 0
183 Runtime_Bad_Block PO--C- 100 100 010 - 0
187 Uncorrectable_Error_Cnt -O--CK 100 100 000 - 0
190 Airflow_Temperature_Cel -O--CK 066 053 000 - 34
195 ECC_Error_Rate -O-RC- 200 200 000 - 0
199 CRC_Error_Count -OSRCK 100 100 000 - 0
235 POR_Recovery_Count -O--C- 099 099 000 - 12
241 Total_LBAs_Written -O--CK 099 099 000 - 27707773994
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning

General Purpose Log Directory Version 1
SMART Log Directory Version 1 [multi-sector log support]
Address Access R/W Size Description
0x00 GPL,SL R/O 1 Log Directory
0x01 SL R/O 1 Summary SMART error log
0x02 SL R/O 1 Comprehensive SMART error log
0x03 GPL R/O 1 Ext. Comprehensive SMART error log
0x06 SL R/O 1 SMART self-test log
0x07 GPL R/O 1 Extended self-test log
0x09 SL R/W 1 Selective self-test log
0x10 GPL R/O 1 NCQ Command Error log
0x11 GPL R/O 1 SATA Phy Event Counters log
0x13 GPL R/O 1 SATA NCQ Send and Receive log
0x30 GPL,SL R/O 9 IDENTIFY DEVICE data log
0x80-0x9f GPL,SL R/W 16 Host vendor specific log
0xa1 SL VS 16 Device vendor specific log
0xa5 SL VS 16 Device vendor specific log
0xce SL VS 16 Device vendor specific log
0xe0 GPL,SL R/W 1 SCT Command/Status
0xe1 GPL,SL R/W 1 SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
255 0 65535 Read_scanning was never started
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
SCT Status Version: 3
SCT Version (vendor specific): 256 (0x0100)
Device State: Active (0)
Current Temperature: 34 Celsius
Power Cycle Min/Max Temperature: ?/35 Celsius
Lifetime Min/Max Temperature: 24/40 Celsius
Under/Over Temperature Limit Count: 0/0
SCT Temperature History Version: 2
Temperature Sampling Period: 1 minute
Temperature Logging Interval: 10 minutes
Min/Max recommended Temperature: 0/70 Celsius
Min/Max Temperature Limit: 0/70 Celsius
Temperature History Size (Index): 128 (30)

Index Estimated Time Temperature Celsius
31 2020-07-31 02:50 31 ************
32 2020-07-31 03:00 32 *************
33 2020-07-31 03:10 31 ************
34 2020-07-31 03:20 34 ***************
35 2020-07-31 03:30 30 ***********
36 2020-07-31 03:40 30 ***********
37 2020-07-31 03:50 30 ***********
38 2020-07-31 04:00 29 **********
39 2020-07-31 04:10 31 ************
40 2020-07-31 04:20 30 ***********
41 2020-07-31 04:30 31 ************
42 2020-07-31 04:40 29 **********
... ..( 9 skipped). .. **********
52 2020-07-31 06:20 29 **********
53 2020-07-31 06:30 31 ************
54 2020-07-31 06:40 29 **********
55 2020-07-31 06:50 30 ***********
56 2020-07-31 07:00 29 **********
57 2020-07-31 07:10 29 **********
58 2020-07-31 07:20 29 **********
59 2020-07-31 07:30 30 ***********
60 2020-07-31 07:40 29 **********
61 2020-07-31 07:50 30 ***********
62 2020-07-31 08:00 29 **********
63 2020-07-31 08:10 30 ***********
64 2020-07-31 08:20 29 **********
... ..( 2 skipped). .. **********
67 2020-07-31 08:50 29 **********
68 2020-07-31 09:00 30 ***********
69 2020-07-31 09:10 29 **********
70 2020-07-31 09:20 28 *********
71 2020-07-31 09:30 29 **********
72 2020-07-31 09:40 30 ***********
73 2020-07-31 09:50 34 ***************
74 2020-07-31 10:00 32 *************
75 2020-07-31 10:10 30 ***********
76 2020-07-31 10:20 29 **********
77 2020-07-31 10:30 30 ***********
78 2020-07-31 10:40 29 **********
79 2020-07-31 10:50 30 ***********
80 2020-07-31 11:00 29 **********
... ..( 4 skipped). .. **********
85 2020-07-31 11:50 29 **********
86 2020-07-31 12:00 28 *********
87 2020-07-31 12:10 29 **********
88 2020-07-31 12:20 30 ***********
89 2020-07-31 12:30 29 **********
... ..( 6 skipped). .. **********
96 2020-07-31 13:40 29 **********
97 2020-07-31 13:50 28 *********
98 2020-07-31 14:00 29 **********
99 2020-07-31 14:10 30 ***********
100 2020-07-31 14:20 29 **********
101 2020-07-31 14:30 28 *********
102 2020-07-31 14:40 29 **********
103 2020-07-31 14:50 30 ***********
104 2020-07-31 15:00 29 **********
... ..( 5 skipped). .. **********
110 2020-07-31 16:00 29 **********
111 2020-07-31 16:10 28 *********
112 2020-07-31 16:20 29 **********
113 2020-07-31 16:30 29 **********
114 2020-07-31 16:40 30 ***********
115 2020-07-31 16:50 29 **********
116 2020-07-31 17:00 29 **********
117 2020-07-31 17:10 29 **********
118 2020-07-31 17:20 28 *********
119 2020-07-31 17:30 29 **********
120 2020-07-31 17:40 29 **********
121 2020-07-31 17:50 29 **********
122 2020-07-31 18:00 30 ***********
123 2020-07-31 18:10 29 **********
124 2020-07-31 18:20 29 **********
125 2020-07-31 18:30 28 *********
126 2020-07-31 18:40 29 **********
127 2020-07-31 18:50 29 **********
0 2020-07-31 19:00 28 *********
1 2020-07-31 19:10 29 **********
2 2020-07-31 19:20 28 *********
3 2020-07-31 19:30 28 *********
4 2020-07-31 19:40 27 ********
5 2020-07-31 19:50 27 ********
6 2020-07-31 20:00 27 ********
7 2020-07-31 20:10 28 *********
8 2020-07-31 20:20 ? -
... ..( 9 skipped). .. -
18 2020-07-31 22:00 ? -
19 2020-07-31 22:10 33 **************
20 2020-07-31 22:20 33 **************
21 2020-07-31 22:30 33 **************
22 2020-07-31 22:40 32 *************
23 2020-07-31 22:50 33 **************
24 2020-07-31 23:00 33 **************
25 2020-07-31 23:10 34 ***************
26 2020-07-31 23:20 33 **************
27 2020-07-31 23:30 34 ***************
28 2020-07-31 23:40 35 ****************
29 2020-07-31 23:50 34 ***************
30 2020-08-01 00:00 34 ***************

SCT Error Recovery Control:
Read: Disabled
Write: Disabled

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID Size Value Description
0x0001 2 0 Command failed due to ICRC error
0x0002 2 0 R_ERR response for data FIS
0x0003 2 0 R_ERR response for device-to-host data FIS
0x0004 2 0 R_ERR response for host-to-device data FIS
0x0005 2 0 R_ERR response for non-data FIS
0x0006 2 0 R_ERR response for device-to-host non-data FIS
0x0007 2 0 R_ERR response for host-to-device non-data FIS
0x0008 2 0 Device-to-host non-data FIS retries
0x0009 2 10 Transition from drive PhyRdy to drive PhyNRdy
0x000a 2 10 Device-to-host register FISes sent due to a COMRESET
0x000b 2 0 CRC errors within host-to-device FIS
0x000d 2 0 Non-CRC errors within host-to-device FIS
0x000f 2 0 R_ERR response for host-to-device data FIS, CRC
0x0010 2 0 R_ERR response for host-to-device data FIS, non-CRC
0x0012 2 0 R_ERR response for host-to-device non-data FIS, CRC
0x0013 2 0 R_ERR response for host-to-device non-data FIS, non-CRC

sudo hdparm -i /dev/sda

/dev/sda:

Model=Samsung SSD 850 EVO 250GB, FwRev=EMT02B6Q, SerialNo=S2R6NX0J734418T
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=unknown, MaxMultSect=1, MultSect=1
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=488397168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7

  • signifies the current active mode

Hope this is the information you need and it helps, if you need more, please contact me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.