Wrongly ignores drives without reported ID_ATA_FEATURE_SETs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I hope I am at the right place for this problem :)
I am using 3 hard drives in a ZFS pool on an Ubuntu Server 22.04.3 LTS.
All of these hard drives support spindown and APM via hdparm and even the manual "hdparm -B XX -S XX" command works just fine.
However, when using /etc/hdparm.conf none of these drives are configured on startup.
I traced the error back to the "hdparm_try_apm" function in "/usr/lib/
In fact, they don't report any feature sets via udevadm.
If I simply override this check, the script executes all the commands properly, however, then it also tries to set the default APM value (254) for my, actually unsupported, SSD.
Same problem, other guy: https:/
-------
Aside from the serial numbers, here is the complete output of one of my drives, the other two have a similar output:
$ udevadm info -n "$drive" -q property
```
DEVPATH=
DEVNAME=/dev/sdd1
DEVTYPE=partition
DISKSEQ=13
PARTN=1
PARTNAME=
MAJOR=8
MINOR=49
SUBSYSTEM=block
USEC_INITIALIZE
ID_SCSI=1
SCSI_TPGS=0
SCSI_TYPE=disk
SCSI_VENDOR=ATA
SCSI_VENDOR_
SCSI_MODEL=
SCSI_MODEL_
SCSI_REVISION=A31B
SCSI_IDENT_
SCSI_IDENT_
SCSI_IDENT_
SCSI_IDENT_
SCSI_IDENT_
ID_VENDOR=ATA
ID_VENDOR_
ID_MODEL=
ID_MODEL_
ID_REVISION=A31B
ID_TYPE=disk
ID_WWN_
ID_WWN=
ID_BUS=ata
ID_ATA=1
ID_SERIAL=
ID_SERIAL_
ID_SCSI_
DM_MULTIPATH_
ID_SCSI_INQUIRY=1
ID_PATH=
ID_PATH_
ID_PATH_
ID_PART_
ID_PART_
ID_FS_VERSION=5000
ID_FS_LABEL=
ID_FS_LABEL_
ID_FS_UUID=
ID_FS_UUID_
ID_FS_UUID_
ID_FS_UUID_
ID_FS_TYPE=
ID_FS_USAGE=
ID_PART_
ID_PART_
ID_PART_
ID_PART_
ID_PART_
ID_PART_
ID_PART_
ID_PART_
UDISKS_IGNORE=1
DEVLINKS=<removed>
TAGS=:systemd:
CURRENT_
```
$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
$ apt-cache policy hdparm
hdparm:
Installiert: 9.60+ds-1build3
Installations
Versionstabelle:
*** 9.60+ds-1build3 500
500 http://
100 /var/lib/