I have SSD drive for system and software and HDD for data (mostly pictures).
When I don’t edit / view my pictures I would like to have my HDD turned off.
Currently, I can hear platter spinning. It’s not a big problem but if there is a simple solution I would like to use it.
Till now I was able to find two solutions:
udiskctl power-off -b /dev/sdX
and
hdparm -S /dev/sdX
I tried udiskctl, and it worked, but I’m not sure what it does to the drive. Is that the same as powering off a whole PC but only for HDD?
About hdparm. I wasn’t able to find the information if for example hdparm -S /dev/sdX
is permanent (written in HDD firmware of somewhare in the system) or if this change will disappear after reboot.
Are there any disadvantages in any of those solutions I mentioned?
Is one better from another?
Or maybe both are very bad for HDD and I shouldn’t use them?