Log in

No account? Create an account
Linux Community's Journal
[Most Recent Entries] [Calendar View] [Friends View]

Friday, February 1st, 2008

Time Event
Ubuntus Destruction to hardrives--Bug59695
Oy vey, I had to find out the hardway with my HDD dropping Dead so heres a lesson I wish I knew Sooner.

It [WWW] appears to be the official policy of Ubuntu that by default, Ubuntu should not adjust any power management settings of the harddisk. Unfortunately, this policy has two negative effects: It leaves quite a few people with broken hard drives that would otherwise not be broken, and it quite simply makes people who love Ubuntu feel neglected. This issue has been going on a long time.

There appear to be two issues here: HDD spin down and "Power cycling", whereas the first one has a [WWW] relative short default (60 seconds), but the latter one gets the most complains (it's about Load_Cycle_Count).

The disk Load_Cycle_Count issue appears to be caused by a combination of two problems -- The first is overly-aggressive power management from what might be considered buggy hardware. The second is that Ubuntu appears to be touching the hard drive on a regular basis for one reason or another.
In sections below relating to how to prevent damage to your hard disk, you should replace $HDD everywhere with your device, e.g. "/dev/sda" or "/dev/hda". If you have several harddrives, you need to change it accordingly and duplicate lines in workarounds.


You can check the current value of Load_Cycle_Count of your harddrive(s) using:


sudo smartctl -a $HDD | grep Load_Cycle_Count

(You need the smartmontools package for this. I also had to enable SMART monitoring for my drives using sudo smartctl -s on $HDD)

The values for this differ a lot (e.g. it's 0 on my desktop), but it goes up to > 600.000 for others, depending on the lifetime. TODO: add a section with sample values (including the value of Power_On_Hours).


Various workarounds have been provided.

Try hdparm -B 255 $HDD or hdparm -B 254 $HDD. (255 is supposed to disable APM, but it does not work for some; so 254 sets it to the less aggressive setting)

There are different methods to keep this setting after reboot/resume. Your mileage may vary. There may be more workarounds in the bug report, but essentially, all are using "hdparm -B" to change the apm handling of the harddrive.

Force hdparm values in acpi hooks

Create a file called 99-fix-park.sh (keep the '99-' and the '.sh', but you can name the file as you like otherwise) with the following two lines:

hdparm -B 254 $HDD

and copy it to the following directories: /etc/acpi/resume.d/ and /etc/acpi/start.d/ ([WWW] https://launchpad.net/ubuntu/+source/acpi-support/+bug/59695/comments/10)

Don posted another workaround: Install laptop-mode-tools and set CONTROL_HD_POWERMGMT=1 in /etc/laptop-mode/laptop-mode.conf (
wanting to learn

i was talking to my dad today and he was showing me so of the basic things you can do on konsole and telling me all this stuff. and he was kind of teaching me all the basics.
anyways, it got me to thinking and i really want to expand my horizons in the things that i do on my computer. i would like to try many things before college so i can figure out what i want to do (ive been thinking about possibly something computer related) and since i have basically grown up on linux and now have my own linux run computer (kubuntu) i might as well try and learn what i can now.
so i guess my question is how should i go about starting to try and teach myself commands etc.
any advice, background info, what have you in greatly appreciated, i like learning new stuff. random facts are always fun.

thank you so much for your help!

(im coming to you guys because i know you guys have experience from all the stuff i see ya'll post and im sort of just like "whoa" haha.)

x-posted linuxnewbies

<< Previous Day 2008/02/01
Next Day >>
About LiveJournal.com