Package: hddtemp
Version: 0.3-beta15-54
Severity: normal

hddtemp(1) shows that --wake-up is only relevant for ATA drives.  My
testing confirms this - hddtemp /dev/sdb first returns an incorrect
error, but spins up the drive anyway, then it starts to succeed:


tconnors@pve:~$ sudo hddtemp /dev/sdb
/dev/sdb: SEAGATE ST4000NM0023:  drive supported, but it doesn't have a 
temperature sensor.
tconnors@pve:~$ sudo hddtemp /dev/sdb
/dev/sdb: SEAGATE ST4000NM0023: 44°C

Just like https://www.smartmontools.org/ticket/1586 (I don't believe
hddtemp links against smartmontools), there are ways to get the wake
status of non ATA disks, and hddtemp should default to not waking up
sleeping drives.

 tconnors@pve:~$ for i in /dev/sd[b-gi-z] ; do echo $i ; sudo sdparm 
--command=sense $i ; done
/dev/sdb

    /dev/sdb: SEAGATE ST4000NM0023 XMGJ

/dev/sdc

    /dev/sdc: SEAGATE ST4000NM0023 XMGJ

/dev/sdd

    /dev/sdd: SEAGATE ST6000NM0095 DS22

/dev/sde

    /dev/sde: SEAGATE ST4000NM0023 XMGJ

/dev/sdf

    /dev/sdf: SEAGATE ST6000NM0095 DS22

/dev/sdg

    /dev/sdg: TOSHIBA MG04SCA60EE DR07

/dev/sdi

    /dev/sdi: ATA WDC WD10EAVS-32D 1A01

tconnors@pve:~$ for i in /dev/sd[b-gi-z] ; do echo $i ; sudo sg_start -r --pc=3 
$i & done ; wait
/dev/sdb
[1] 1840017
/dev/sdc
[2] 1840018
/dev/sdd
[3] 1840019
/dev/sde
[4] 1840020
/dev/sdf
[5] 1840021
/dev/sdg
[6] 1840022
/dev/sdi
[7] 1840023
Illegal request
START STOP UNIT command failed
sg_start failed: Illegal request

tconnors@pve:~$ for i in /dev/sd[b-gi-z] ; do echo $i ; sudo sdparm 
--command=sense $i ; done
/dev/sdb

    /dev/sdb: SEAGATE ST4000NM0023 XMGJ

Additional sense: Standby condition activated by command
/dev/sdc

    /dev/sdc: SEAGATE ST4000NM0023 XMGJ

Additional sense: Standby condition activated by command
/dev/sdd

    /dev/sdd: SEAGATE ST6000NM0095 DS22

Additional sense: Standby condition activated by command
/dev/sde

    /dev/sde: SEAGATE ST4000NM0023 XMGJ

Additional sense: Standby condition activated by command
/dev/sdf

    /dev/sdf: SEAGATE ST6000NM0095 DS22

Additional sense: Standby condition activated by command
/dev/sdg

    /dev/sdg: TOSHIBA MG04SCA60EE DR07

Additional sense: Standby condition activated by command
/dev/sdi

    /dev/sdi: ATA WDC WD10EAVS-32D 1A01


-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (5, 'testing'), (2, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-12-amd64 (SMP w/20 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hddtemp depends on:
ii  debconf [debconf-2.0]  1.5.77
ii  libc6                  2.31-13+deb11u3
ii  lsb-base               11.1.0

hddtemp recommends no packages.

hddtemp suggests no packages.

-- debconf information:
* hddtemp/interface: 127.0.0.1
* hddtemp/syslog: 0
* hddtemp/SUID_bit: true
* hddtemp/daemon: true
* hddtemp/port: 7634

Reply via email to