/dev/sdb { spindown_time = 60 } /dev/sdc { spindown_time = 60 } /dev/sdd { spindown_time = 60 } /dev/sde { spindown_time = 60 } 保存配置之后重启,hdparm就会自动在硬盘300秒没有活动的情况下让硬盘进入休眠状态 #安装smartmontools sudo apt install smartmontools 查看下磁盘的状态,...
设置文件权限 chmod 777 /etc/spindown 执行脚本,sda硬盘20分钟后休眠 /etc/spindown sda 20 放入开机程序启动 vi /etc/rc.local 作者声明本文无利益相关,欢迎值友理性交流,和谐讨论~
hdparm -T /dev/sda -S, --set-spindown 设置硬盘的自转时间(自动休眠)。例如,将自转时间设置为 10 分钟(600秒)。 bash hdparm -S 120 /dev/sda # 设置为 10 分钟 -d, --direct 使能或禁用直接访问(同步 I/O),一般用于测试。 bash hdparm -d1 /dev/sda # 启用直接访问 -m, --multcount 设置...
-s Set power-up in standby flag (0/1) (DANGEROUS) -S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit ...
-S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit immediately -w Perform device reset (DANGEROUS) -W Get...
count-q Change next setting quietly-QGet/setDMA queue_depth (if supported)-rGet/setdevice readonly flag (DANGEROUStoset)-RGet/setdevice write-read-verify flag-sSetpower-upinstandby flag (0/1) (DANGEROUS)-SSetstandby (spindown) timeout-t Perform device read timings-T Perform cache read ...
(spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit immediately -w Perform device reset (DANGEROUS) -W Get/set drive write...
-S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit immediately ...
) -P Set drive prefetch count -q Change next setting quietly -Q Get/set DMA queue_depth (if supported) -r Get/set device readonly flag (DANGEROUS to set) -R Get/set device write-read-verify flag -s Set power-up in standby flag (0/1) (DANGEROUS) -S Set standby (spindown) time...
-PSet drive prefetch count-q Change next setting quietly-QGet/setDMAqueue_depth(ifsupported)-r Get/setdevice readonlyflag(DANGEROUSto set)-RGet/setdevice write-read-verify flag-s Set power-upinstandbyflag(0/1)(DANGEROUS)-SSetstandby(spindown)timeout-t Perform device read timings-TPerform ...