Since latest stable update, my harddisk spins down after some inactivity period. Before the update this was not the case, it was spinning continuously (this is what I prefer).
Which component is responsible for this new behaviour and how to restore the previous “always on” operation?
Thanks for your reply, but this seems like a generic approach and doesn’t explain the change in behaviour from applying the latest updates. Some component seems to apply the automatic shutdown ATA command and I’d like to find out where, without wrinting custom scripts on my own.
In my case it’s /dev/sda but this returns no results unfortunately. Do I now have to add some custom scripting to prevent the spindown?
I feel like some component sends an ATA command to the drive to set some timeout, which didn’t happen before. I don’t want to issue additional ATA commands but turn off the initial cause.
I’d like to know which component introduced the new behaviour and adjust it accordingly. Something is currently setting the timeout and I want to get rid of it, instead of overwriting and fighting it with hdparm.
Thanks but I couldn’t find any offending rules there. Also udev seems unable to set the spindown timeout itself and relies on calling external tools like hdparm (which isn’t installed currently).
I also checked udisks2 and upower, which both don’t seem to set the timeout. Also the hdparm.conf approach above seems like a custom solution for Ubuntu. The arch/manjaro package only provides the binary, no bundled way to apply any configuration automatically.
I really want to find the component which started setting the spindown timeout since the latest stable update.
Thanks for your respose. I did suspect that as well, but neither tlp nor power-profiles-daemon are installed. I also tried to “override” the set timeout with udisks2 by creating a config file /etc/udisks2/TOSHIBA-MG10ACA20TE-1470A0D3F4MJ.conf with the following content
Now I’ve installed it to make sure it doesn’t provide any service files (it doesn’t).
> pacman -Ss hdparm
core/hdparm 9.65-3 [installed]
A shell utility for manipulating Linux IDE drive/driver parameters
core/sdparm 1.12-1
An utility similar to hdparm but for SCSI devices
Even after applying an appropriate udev rule and also running sudo hdparm -S 0 /dev/sda manually, the disk is still spinning down. I guess some other component constantly overwrites the timeout value.
As of now I don’t know the reason for the sudden change in behaviour and also (more importantly) cannot disable the standby feature to prevent constant spindowns.
SMART values are all healthy. I’m sure the recent update introduced the new behaviour. I looked through all installed packages but cannot find any possible indicator beside the above mentioned udisks2 and upower packages.
At this point I’m just interested in a solution to prevent my harddisk from constantly spinning down and up again.
Do you have a file /etc/hdparm.conf? If not, then perhaps you should create one with your desired settings.
I was almost going to ask you whether this was a Western Digital Green drive, because those are rubbish — they spin down and park their heads all of the time. But you appear to have a different model of HDD, so the point is moot.