I'm using a minimal Debian installation.
The hard disk is a Seagate Basic 2.5in disk attached to a USB 3.0 port:
https://www.seagate.com/products/extern ... ard-drive/
The machine is an HP t530:
https://www.parkytowers.me.uk/thin/hp/t530/
smartd is not installed so the answer posted here does not apply:
https://unix.stackexchange.com/a/476841
Code: Select all
$ cat /etc/smartd.conf
cat: /etc/smartd.conf: No such file or directory
I've checked and I can see it enabled.
Code: Select all
less /boot/config-$(uname -r)
https://unix.stackexchange.com/a/166601
https://stackoverflow.com/a/12675749
Code: Select all
$ lsusb
Bus 001 Device 004: ID 103c:0610 GenesysLogic USB2.1 Hub
Bus 001 Device 003: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0bc2:aa15 Seagate RSS LLC Basic
Bus 003 Device 002: ID 103c:8267 GenesysLogic USB3.1 Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
$ grep 0bc2 /sys/bus/usb/devices/*/idVendor
/sys/bus/usb/devices/3-4.2/idVendor:0bc2
Code: Select all
echo "auto" > "/sys/bus/usb/devices/3-4.2/power/control"
echo "10" > "/sys/bus/usb/devices/3-4.2/power/autosuspend_delay_ms"
The disk continues to spin.
I don't see any meaningful activity in iotop.
I realise there are options though hdparm and PowerTOP.
There are also tlp and laptop-mode-tools, but they geared for laptops (e.g. controlling display brightness) and seem excessive for what I need, which is just to spin down a hard disk.
Thanks