Jesse's Blog » 日志 » 解决ubuntu硬盘响的问题
解决ubuntu硬盘响的问题
Jesse 发表于 2008-07-10 21:02:57
忘了7.10的时候是怎么修复的了, 应该是莫名其妙就好了, 7.10中bug还是很多的, 但8.04就好多了(很多!).
今天不知怎么又注意到那不停的响声了, 越注意它, 越觉得是那么的刺耳...还是把问题解决了吧.
中文搜索未果, 联想到之前我在装好Linux再装Window$的那一次, IMO中国的FOSS还是太有发展余地了, 必须要摒弃几十年积累下的坏习惯.
还是说硬盘的事, ubuntu 8.04 harddisk noise(google)很快就给出了我想要的结果(ubuntuforums.org). 解决方法(wiki.ubuntu.com)如下:
||适用Ubuntu 8.04||
=============================
How to get disks idleing correctly
(without excessive load cycling)
Unfortunately, disk-idleing has been mangled into event handling and power state switching in Ubuntu in the past. And does not deliver idle disks but break disk idleing (laptop-mode) features and leaves undefined (factory default) apm settings in place.
To correct disk-idleing in Ubuntu 8.04 you need to adjust the following:
0. Enable CONTROL_HD_POWERMGMT=1 in /etc/laptop-mode/laptop-mode.conf
0. 打开/etc/laptop-mode/laptop-mode.conf, 修改CONTROL_HD_POWERMGMT=1, (原来为0, 我的是这样)
1. Even though you may not ENABLE_LAPTOP_MODE_ON_BATTERY or _ON_AC in laptop-mode.conf, you still need to ENABLE_LAPTOP_MODE=true in /etc/default/acpi-support (another package's conffile).
1. 打开/etc/default/acpi-support, 修改ENABLE_LAPTOP_MODE=true, (原来为false, 我的是这样)
2. Comment the four $HDPARM blocks in /etc/acpi/power.sh and change the two $LAPTOP_MODE start/stop lines to "$LAPTOP_MODE auto"
2.注释掉/etc/acpi/power.sh中关于$HDPARM的四个语句块(8条语句, 我以为是这样, 不知道对不对), 并且把文件中的一句$LAPTOP_MODE start和一句$LAPTOP_MODE stop均改为$LAPTOP_MODE auto. (我的理解可能有误)
3.Remove /usr/lib/pm-utils/power.d/laptop-tools or create bogus /etc/pm/power.d/laptop-tools script.
3. 删除文件/usr/lib/pm-utils/power.d/laptop-tools. (重命名即可)
4.Still no hdparm setting after resume.
4. 不知道什么意思.
Jesse
