![如何在 Ubuntu 中关闭硬盘(不减慢速度)](https://linux22.com/image/912044/%E5%A6%82%E4%BD%95%E5%9C%A8%20Ubuntu%20%E4%B8%AD%E5%85%B3%E9%97%AD%E7%A1%AC%E7%9B%98%EF%BC%88%E4%B8%8D%E5%87%8F%E6%85%A2%E9%80%9F%E5%BA%A6%EF%BC%89.png)
我在笔记本电脑中使用 500 GB 的 m.2 ssd,这对我来说已经足够了。我想关闭内置硬盘以节省笔记本电脑的电池。(我无法从系统中移除它,否则保修将失效。)
答案1
您可以查看...hdparm
中的命令。terminal
man hdparm
特别是 -B 或 -S 选项...
-B Get/set Advanced Power Management feature, if the drive supports
it. A low value means aggressive power management and a high
value means better performance. Possible settings range from
values 1 through 127 (which permit spin-down), and values 128
through 254 (which do not permit spin-down). The highest degree
of power management is attained with a setting of 1, and the
highest I/O performance with a setting of 254. A value of 255
tells hdparm to disable Advanced Power Management altogether on
the drive (not all drives support disabling it, but most do).
-S Put the drive into idle (low-power) mode, and also set the
standby (spindown) timeout for the drive. This timeout value is
used by the drive to determine how long to wait (with no disk
activity) before turning off the spindle motor to save power.
Under such circumstances, the drive may take as long as 30 sec‐
onds to respond to a subsequent disk access, though most drives
are much quicker. The encoding of the timeout value is somewhat
peculiar. A value of zero means "timeouts are disabled": the
device will not automatically enter standby mode. Values from 1
to 240 specify multiples of 5 seconds, yielding timeouts from 5
seconds to 20 minutes. Values from 241 to 251 specify from 1 to
11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5
hours. A value of 252 signifies a timeout of 21 minutes. A
value of 253 sets a vendor-defined timeout period between 8 and
12 hours, and the value 254 is reserved. 255 is interpreted as
21 minutes plus 15 seconds. Note that some older drives may
have very different interpretations of these values.