http://ubuntudemon.wordpress.com/2007/1 ... i-thought/
Laptop Hardrive Killer Bug - should get critical status
http://ubuntudemon.wordpress.com/2007/1 ... al-status/
Bug #59695 in acpi-support
https://bugs.launchpad.net/ubuntu/+sour ... omments/25
default value in power.sh potentially kills laptop disks
https://bugs.launchpad.net/ubuntu/+sour ... omments/14
what Matthew Garret an Ubuntu Developer has said about this problem
http://www.advogato.org/person/mjg59/diary/82.html
Ubuntu is NOT causing aggressive power management
http://ubuntudemon.wordpress.com/2007/1 ... ment-31617
以上都讨论了如果设置不当,UBUNTU会损坏你的笔记本硬盘
How to make use of Harddisk Power Management features
http://www.thinkwiki.org/wiki/How_to_ma ... t_features
由于反应可能无法打开第一个链接,现直接贴上内容
Laptop Hardrive Killer Bug - How to discover whether you are affected
笔记本硬盘杀手-如何发现你是否也有这个问题?
Your harddisk shouldn’t spin-down/spin-up and/or park/unpark too much causing the mechanics of the harddrive to slowly detiorate. If this is happening you should see your Load_Cycle_Count increasing too fast.
如果你的硬盘频繁启动关闭休眠,那么很容易造成硬盘机械故障。如果发现磁盘有异常,你可以检查磁盘的Load_Cycle_Count 是否增加的太快了
The following things might cause aggressive power management :
以下几个方面可能造成电源管理上的问题
* your (laptop) harddrive firmware might have aggressive power management defaults (operating system independent)
你的(笔记本)硬盘默认设置就是这样的
* your (laptop) BIOS might set your harddrive to use aggressive power management (operating system independent)
你的(笔记本)的BIOS设置使用这个电源管理方式(和系统没有关系)
* you might have enabled laptop-mode in /etc/default/acpi-support (disabled by default) which will set your harddrive to use aggressive power management
你激活了laptop-mode模式,这个在 /etc/default/acpi-support中(默认是关闭的)
There’s another part of this problem (one of the following might be true) :
以下方面也有可能造成这个问题(没确定)
* something wakes up the harddrive right after spinning down.
硬盘关闭后,有些动作会唤醒硬盘
* something unparks the head right after your harddisk head is parked.
硬盘休眠后,有些动作会唤醒硬盘
To discover whether you suffer from this problem :
检查你是否有同样的问题
First install smartmontools to be able to query your harddrive :
第一安装上工具smartmontools
$
代码: 全选
sudo aptitude install smartmontools
去检查你的Load_Cycle_Count你的,最后一个数据
$
代码: 全选
sudo smartctl -a /dev/sda | grep Load_Cycle_Count
这个数据增加得很快(一天超过90),那说明你有问题
My harddrive started to slowly die when at a Load_Cycle_Count of 200.000 after 10 months of use (Feisty and a little bit of Gutsy).
10个月后,Load_Cycle_Count 有200.000次,我硬盘的寿命也快到了
The reason I’m estimating to watch out for values above 90 per day is because it will guarantee that your Load_Cycle_Count is less than 100.000 in three years : 90 * 365 * 3 = 98550 Which almost guarantees that your harddrive won’t die during the first three years due to a high Load_Cycle_Count.
我是这样计算的,一天在90次以下,三年就是98550次,这样用三年没问题
IMHO this bug should get critical status because it’s killing people’s harddrives.
IMHO提交的BUG应该加以关注
More information about this bug :
其他关于这个BUG的信息
* https://bugs.launchpad.net/ubuntu/+sour ... +bug/59695
* http://www.advogato.org/person/mjg59/diary/82.html
* http://ubuntudemon.wordpress.com/2007/1 ... killer-bug
* http://ubuntudemon.wordpress.com/2007/1 ... -i-thought
根据最新消息,只是UBUNTU 采用了磁盘或BIOS的默认设置,而由于默认的不当设置,造成这个问题
建议UBUNTU 以后可以用系统设置覆盖这些默认的设置
attached another article
HDD Wearing and Tearing Down
The problem
A while ago, it was confirmed that Linux running on some laptops is wearing and tearing down their hard drives. At first, it was thought that this is only an Ubuntu issue and therefore, a bug was posted on launchpad. However, after the problem was deeper analyzed, it came up that the problem was generated by faulty ACPI configuration so don’t act surprised if you run into other distributions that have the same or similar bad ACPI configs. ACPI stands for Advanced Configuration and Power Interface.
So what’s really happening? Well, if you’re running Linux on a laptop and unplug its power source, leaving it to run on batteries, the operating system (ACPI to be more exact) is applying several settings to get a longer life time. I’m not sure about other distributions but Ubuntu’s ACPI issues the hdparm -B 1 command to all block devices, leading to extremely frequent load cycles.
To give you some statistics: the drive is rated for 600,000 load/unload cycles, and after 2.5 months of running Feisty I’m already at more than 56,000 load/unload cycles (and only 150 power cycles), according to the SMART data. At this rate the drive will be dead after 2.5 years, and I don’t even use this computer for more than a couple of hours each day.
Are YOU affected?
If you’re running Ubuntu, you should know that the only way to see the number of load cycles is by using SMART tools which aren’t even installed by default. To install them, simply run:
$ sudo apt-get install smartmontools
Now, to find your drive’s load cycle count, run this command in a terminal (replace /dev/sda to suit your computer configuration, /dev/hda for example if you have ata drive):
$ sudo smartctl -a /dev/sda | grep Load_Cycle_Count
You should see an output like this:
193 Load_Cycle_Count 0x0012 095 095 000 Old_age Always - 55380
In this example, 55380 is the load cycle count which SHOULD increase by 3-5 in an HOUR. But if it’s increasing by 3, 5 or more in a MINUTE, there’s definitely a problem. Think about it: HDD manufactures are claiming that a drive will support about 600.000 load cycles, meaning that your drive should be fine for a few years. But when the count is increasing by 3 cycles every minute (180 per hour), things should go bad after 3333 hours. That’s ONLY 138 DAYS! That’s VERY BAD!
The solution
First of all, you should edit the /etc/acpi/power.sh file. Open it with your favorite editor and edit the following line (actually, there are two identical lines, edit them both):
$HDPARM -B 1 /dev/$drive 2>/dev/null
to
$HDPARM -B 255 /dev/$drive 2>/dev/null
To make sure everything is right and your drive is safe, also follow these steps:
# create a file called 99-hdd-cycle-fix.sh (the 99 is mandatory) and make it executable:
$ touch 99-hdd-cycle-fix.sh
$ chmod +x 99-hdd-cycle-fix.sh
# open it with your favorite text editor and paste these lines (again, make sure it suits your drive configuration - you might need /dev/hda or such):
#!/bin/sh
hdparm -B 255 /dev/sda
# copy the file to three locations:
$ sudo cp 99-hdd-cycle-fix.sh /etc/acpi/suspend.d/
$ sudo cp 99-hdd-cycle-fix.sh /etc/acpi/resume.d/
$ sudo cp 99-hdd-cycle-fix.sh /etc/acpi/start.d/
Keep in mind however that the 255 setting will totally switch off power management for your drive. This means that it will suck more power, decreasing the laptop’s battery life and it will make the drive a bit more vulnerable (it’s likely you’ll get bad sectors if you drop the laptop but this won’t happen, now, will it:).
There you go, your drive should now rest peacefully.