How to determine disc spindown time
I am able to set both APM and spindown times using the command:
hdparm -S 246 -B 128 /dev/sda
Unfortunately I can only find the APM value in the information output:
hdparm -I /dev/sda | grep Advanced
How can I see the spindown time value? I suspect my disc it is ignoring my value. I would like to see it. Tried smartctl but with no luck, help.
Update: It turned out tuned is very aggressive. When I turned it down, my discs does not spin down. It was setting something there.
Solution 1:
There does not seem to be a way to query that value with hdparm, however you can see if the drive is in a standby or active state...
> sudo hdparm -C /dev/sdb
/dev/sdb:
drive state is: standby
> sudo hdparm -C /dev/sda
/dev/sda:
drive state is: active/idle
Solution 2:
The option -B 128
inhibits spindown, so your -S option is useless. Have a look at man hdparm
. Spindown is only possible with -B parameters of 127 and less.