硬盘格式化并挂载在/home/share
在我使用sudo hdparm -y /dev/sda后,从下午到晚上均发现硬盘是在待机模式
用户名@J3455:~$ sudo hdparm -C /dev/sda
/dev/sda:
drive state is: standby
表明,硬盘是支持的,系统也是支持的;但是我使用了两种方式,先开机自动运行,都以失败告终,请大佬点评解惑,谢谢!
方式一:
在/etc/hdparm.conf末尾加入下面代码
/dev/sda {
write_cache = on
spindown_time = 120
}
重启后无效....
方式二:
rc.local开机脚本加入(18.04不支持,按网上教程增加了rc.local)
sudo hdparm -S 120 /dev/sda
重启后,还是失败
-----------------------------------------------------------------
然后换了个方式检查硬盘,用sudo hdparm -S 10 /dev/sda,发现是支持的,50s后,使用sudo hdparm -C /dev/sda,显示的是 drive state is: standby
就搞不明白了
![:Hehe :Hehe](./images/smilies/Hehe.png)
![:Hehe :Hehe](./images/smilies/Hehe.png)
![:Hehe :Hehe](./images/smilies/Hehe.png)