Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3989

Raspberry Pi OS • Re: Hard drives that won't go to sleep under Linux

$
0
0
It'd be nice if someone could give me exactly how to do this, using hdparm (since that is easily installable). I read the hdparm man page -> cryptic.
Bung something like

Code:

hdparm -S 120 /dev/disk/by-id/...
in /etc/rc.local if it's always plugged in, or into some udev rule if not. There's probably some new-fangled systemd thing to do it, but I don't care to find out what; systemd is a lot better than it was, but it's still a fundamentally bad idea.

Disc spindown has been interpreted in different ways by different manufacturers, hence the complex manpage. You basically need a database of every HD that's ever existed to get anything like consistent behaviour, and even then you won't manage it.

Statistics: Posted by dickon — Mon Dec 16, 2024 11:04 pm



Viewing all articles
Browse latest Browse all 3989

Trending Articles