主页 > 路由器 > openwrt开启多个硬盘休眠的方法

openwrt开启多个硬盘休眠的方法

2016年4月21日 openwrt开启多个硬盘休眠的方法有2条评论 阅读: 28,049 次

openwrt中可以通过安装hd-idle来开启硬盘休眠

但在图形界面配置中只能开启一个硬盘的休眠,如果要开启多个外接硬盘休眠,需要自己增加启动命令

先在“系统”-“启动项”禁用hd-idle:

再在“本地启动脚本”增加硬盘休眠命令:

上面语句表示硬盘sda空闲300秒后休眠,硬盘sdb空闲600秒后休眠

其他可选参数:

Command line options

-a <name> Set (partial) 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 [SCSI] disks which are not named otherwise by using this parameter.
-i <idle_time> Idle time in seconds for the currently named disk(s) (-a <name>) or for all disks.
-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.
-t <disk> Spin-down the specified disk immediately and exit. Use only the disk name (e.g. sda) without /dev/ prefix
-d Debug mode. This will prevent hd-idle from becoming a daemon and print debugging info to stdout/stderr
-h Print brief usage information

 

 

评论:2

  1. fefa 回复
    2022年2月7日 于 下午3:19

    16年的文章,22年回复
    感谢,学习了

  2. My 回复
    2022年9月6日 于 下午12:21

    22年再回复。感谢

发表评论

新用户的评论需审核后才会显示;

电子邮件地址不会被公开;
必填项已用*标注