Hallo Claus,
bin mir nicht sicher, ob der Service nun funktioniert...
root@MLD:~# systemctl enable spindown
Created symlink /etc/systemd/system/multi-user.target.wants/spindown.service → / etc/systemd/system/spindown.service.
root@MLD:~# systemctl start spindown
Job for spindown.service failed because the control process exited with error code.
See "systemctl status spindown.service" and "journalctl -xeu spindown.service" for details.
root@MLD:~# systemctl status spindown.service
× spindown.service - Spin down hdd
Loaded: loaded (/etc/systemd/system/spindown.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Mon 2025-12-08 11:16:33 CET; 25s ago
Process: 1465 ExecStart=/usr/bin/hdparm -S 240 /dev/sdd (code=exited, status=203/EXEC)
Main PID: 1465 (code=exited, status=203/EXEC)
CPU: 461us
Dez 08 11:16:33 MLD systemd[1]: Starting Spin down hdd...
Dez 08 11:16:33 MLD systemd[1]: spindown.service: Main process exited, code=exited, status=203/EXEC
Dez 08 11:16:33 MLD systemd[1]: spindown.service: Failed with result 'exit-code'.
Dez 08 11:16:33 MLD systemd[1]: Failed to start Spin down hdd.
[EDIT]: Habe den Fehler gefunden. hdparm liegt unter /usr/sbin !
Deshalb funktioniert auch das über udev nicht...
Hoffe das es jetzt klappt. Fehlermeldung kam keine mehr.
[EDIT2]: Festplatte ging in standby! Thema somit gelöst.