Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1964  / 3 Years ago, mon, august 9, 2021, 12:19:27

Last week I bought a thinkpad T430 with a 500GB HDD and added a 128GB SSD to it. Then I installed Ubuntu on the SSD and I'm using it, while there is a Windows8 pre-installed on the HDD and I never used and never will use it. I want to turn the HDD completely off, because when it is turned on, it decreases the battery life and also it makes some noises (standard spinning sound of HDD). I tried removing the related fstab entries, but it doesn't turned off even in the next boot.



Is there any solution to turn off the HDD without opening the laptop and removing it physically?


More From » boot

 Answers
2

Try something like sudo hdparm -B 127 -Y /dev/sdb, assuming /dev/sdb is the HDD.



If that works, you can experiment with the /etc/hdparm.conf settings to enable aggressive power management on the HDD, put it to sleep/standby quickly, and turn the power off.



The file is well commented, and has a few examples. Also check out man hdparm for better understanding of the options.



Something like the following should quickly put the HDD to sleep:



/dev/disk/by-id/...{
apm = 127
sleep
}


To properly identify the HDD in /dev/disk/by-id/ look at the output of
sudo hdparm /dev/sdb | head


[#28372] Tuesday, August 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
quivedge

Total Points: 223
Total Questions: 116
Total Answers: 124

Location: Slovenia
Member since Wed, Apr 6, 2022
2 Years ago
;