停止 HDD 休眠

停止 HDD 休眠

我正在使用 Ubuntu 21.04

我根本不想让我的硬盘闲置。对于我正在做的过程,我从来不想让它们休眠。所以我有高清空闲已安装。

如果我运行 hd-idle -i 0,我的理解是没有任何硬盘会闲置。我的第一个问题是,这是正确的吗?

其次,我希望即使重新启动后情况也是如此。

我在这里更新了我的文件:/etc/default/hd-idle,如下所示:

# defaults file for hd-idle

# start hd-idle automatically?
START_HD_IDLE=true

# hd-idle command line options
# Options are:
#  -a <name>               Set device name of disks for subsequent idle-time
#                          parameters (-i). This parameter is optional in the
#                          sense that there's a default entry for all disks
#                          which are not named otherwise by using this
#                          parameter. This can also be a symlink
#                          (e.g. /dev/disk/by-uuid/...)
#  -i <idle_time>          Idle time in seconds.
#  -l <logfile>            Name of logfile (written only after a disk has spun
#                          up). Please note that this option might cause the
#                          disk which holds the logfile to spin up just because
#                          another disk had some activity. This option should
#                          not be used on systems with more than one disk
#                          except for tuning purposes. On single-disk systems,
#                          this option should not cause any additional spinups.
#
# Options not exactly useful here:
#  -t <disk>               Spin-down the specfified disk immediately and exit.
#  -d                      Debug mode. This will prevent hd-idle from
#                          becoming a daemon and print debugging info to
#                          stdout/stderr
#  -h                      Print usage information.
HD_IDLE_OPTS="-i 0 -l /var/log/hd-idle.log"

这样是否会导致所有连接的硬盘都不会闲置?

相关内容