I have 2 HDDs in my PC. Ubuntu is turning off the secondary HDD very quickly after about 15 minutes, which is short for me. I need to control this time. How can I do it?
I tried GNOME power management but did not find it useful.
gnome-power-managerhard drivepower-management
I have 2 HDDs in my PC. Ubuntu is turning off the secondary HDD very quickly after about 15 minutes, which is short for me. I need to control this time. How can I do it?
I tried GNOME power management but did not find it useful.
Best Answer
Have a look at
hdparm
.From the manual (
man hdparm
on the command line):So
sudo hdparm -I /dev/sdb | grep level
will show the current spindown value, for example:From the manual: 254 is reserved so I expect it to be Ubuntu's default (can anyone confirm/expand on this please?)
Example:
sudo hdparm -S 25 /dev/sdb
= spindown after 25*5 seconds.sudo hdparm -S 245 /dev/sdb
= spindown after (245-240)*30 minutes.