External USB HDD is not spinning down

@DBMandrake: I beg to differ with your statement, as I had just verified the file’s existence in a fresh osmc installation. udisks-helper-ata-smart-collect is part of udisks, which comes pre-installed, with libatasmart a part of the package: https://packages.debian.org/sid/admin/udisks.

It’s udisks itself that is responsible for doing smart polling every x minutes or so (or at least does that on WD Mybook drives, as I rememember not having the same issue with a Seagate Passport - which on the other hand needed hd-idle to actually sleep, hdparm alone wasn’t doing anything).

Nevertheless, this seems to be a known issue, and according to this (https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/638765 and this (https://bugs.freedesktop.org/show_bug.cgi?id=26508#c0), the following would be a permanent workaround:

Create a file /etc/udev/rules.d/80-udisks.rules with the following contents:

KERNEL==“sd*[!0-9]”, ATTR{removable}==“0”, ENV{ID_BUS}==“usb”, ENV{DEVTYPE}==“disk”, ENV{UDISKS_DISABLE_POLLING}=“1”
KERNEL==“sd*[!0-9]”, ATTR{removable}==“0”, ENV{ID_BUS}==“ata”, ENV{DEVTYPE}==“disk”, ENV{UDISKS_DISABLE_POLLING}=“1”
KERNEL==“sd*[!0-9]”, ATTR{removable}==“0”, ENV{ID_BUS}==“scsi”, ENV{DEVTYPE}==“disk”, ENV{ID_VENDOR}==“ATA”, ENV{UDISKS_DISABLE_POLLING}=“1”

2 Likes