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
Ubuntu is NOT causing aggressive power management
http://ubuntudemon.wordpress.com/2007/1 ... ment-31617
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.
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)
* you might have enabled laptop-mode in /etc/default/acpi-support (disabled by default) which will set your harddrive to use aggressive power management
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 :
sudo aptitude install smartmontools
sudo smartctl -a /dev/sda | grep Load_Cycle_Count
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).
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.
IMHO this bug should get critical status because it’s killing people’s harddrives.
More information about this bug :
* https://bugs.launchpad.net/ubuntu/+sour ... +bug/59695
* http://ubuntudemon.wordpress.com/2007/1 ... killer-bug
* http://ubuntudemon.wordpress.com/2007/1 ... -i-thought
attached another article
HDD Wearing and Tearing Down
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!
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
$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):
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.