Ubuntu May Be Killing Your Laptop's Hard Drive 419
wwrmn writes "There's a debate going on over at bugs.launchpad.net on whether it's the Ubuntu, BIOS, hard-drive manufacturer, or pick-any-player's fault, but Ubuntu (and perhaps any OS) may be dramatically shortening the life of your laptop's hard drive due to an aggressive power-saving feature / acpi bug / OS configuration. Regardless of where the fault lies or how it's fixed, you might want to take some actions now to try to prevent the damage."
The Ubuntu (Score:3, Insightful)
Ubuntu? (Score:5, Insightful)
Isn't this what is supposed to happen? (Score:5, Insightful)
May i just warn ya all to NOT play the blame-game?
It does sound like it's the fault of the BIOS (and somebody should contact them).
To rescue a hard-drive in distress sounds like something that should have a high-priority (critical?).
Not because it's ubuntu's fault or the bios fault. But because Ubuntu can solve this issue _now_.
Re:AHA! :D (Score:5, Insightful)
This thread sucks... (Score:3, Insightful)
With Ubuntu as the culprit there is some sort of "respect" that kills the potential of the thread. Come on guys, it is not Linux, it is just Ubuntu. What are the SuSE/RH/etc fans waiting for?
Not Entirely Accurate (Score:5, Insightful)
# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines
ENABLE_LAPTOP_MODE=false
Missing the point... (Score:4, Insightful)
Re:So what's new? (Score:1, Insightful)
Re:The Ubuntu (Score:5, Insightful)
A conspiracy theorist might suggest that the hardware manufacturers are intentionally adding a feature that causes the drives to fail eventually (but statistically outside of the manufacturer's warranty period), so that people have to buy more hardware. The more likely explanation is that the manufacturer set the defaults, but didn't notice that the values were unsafe because Windows ignores them.
Getting Ubuntu to override the defaults should be viewed as a short-term solution. Ultimately the hardware manufacturers should be setting default values that will not damage the hardware. Ideally they would design safeties into the hardware, which do sanity checks and reject ridiculous values.
Re:i hate to say this but: (Score:3, Insightful)
Ah, here it is [slashdot.org] -- sticky keys, not broken hinge, but still. You might want to give that cute gal in Canada a call back.
Re:no problem, really! (Score:4, Insightful)
I'd say it's more of hard drive manufacturer issue. I have 3 notebooks all running Ubuntu, and the one with a Hitachi HD had this problem, but the other two with Fujitsu HD's didn't. Luckily it took about 5 seconds to fix it. If the manufacturer set a realistic cycle this wouldn't be an issue. Ubuntu is just telling the hard drive to do it's thing, and unfortunately the hardware is set to commit suicide it seems.
Similar issue with new WD10EACS desktop drive (Score:3, Insightful)
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 582
193 Load_Cycle_Count 0x0032 180 180 000 Old_age Always - 62848
I don't know the drive's rating for Load_Cycle_Count, but the scaled SMART attribute has gone down from 181 yesterday to 180 today so it does seem to be burning through its allocated cycles quite rapidly.
Interestingly, this drive does not appear to support the "hdparm -B 255" command:
mythtv:~# hdparm -B 255
setting Advanced Power Management level to disabled
HDIO_DRIVE_CMD failed: Input/output error
"hdparm -I" lists "Power Management feature set" and "Automatic Acoustic Management feature set", but not "Advanced Power Management feature set".
The system is running Debian Etch with a 2.6.23 kernel, and I'm using hdparm version 7.7. I am not using any "laptop mode" settings (at least, none that I can see).
Re:ACPI is fine (Score:1, Insightful)
Re:The Ubuntu (Score:5, Insightful)
Re:no problem, really! (Score:2, Insightful)
Why is this pertinent? These are the same laptops that many college students end up with. A large amount of them have deals with ibm and now lenovo, I know RPI did and still does, I still have my 2002 t30 (third hard drive, one factory dead in 2002, one manual replaced in 2006 post warranty acts as a gentoo MythPVR sitting ontop of my cable box), and my 2004 t42 (first 80g motor died within a year, made fulltime switch to linux on it in 2006, drive got corrupted in early 07 but is back up and mostly ok although after 4 replacements of the plastic palm area from cracking the latest bunch well after warranty its days may be numbered as well). Seems odd that my ancient although somewhat upgraded (256 extra ram to get up to 512, a 120gig, 300 gig and 400 gig hard drive replacing the 40 gig drive) dell '00 XPS 1ghz desktop is outliving both of them. Granted I stopped using it for FPS and started using it almost exclusively as a linux file server (that dual boots / physical vm's into windowsXP for use of my OmniIO/Delta66 digital recording interface [i.e. one of those drives is exclusively for the resulting midi, wav and project files]) but still seems sorta odd.
back to my main point, I'd also question whether you can buy 4 laptop hd's for the price of vista and I'm by all means for sticking it to MS. Desktop hd's are heading to the ramen price segment but laptop ones are still fairly costly. More importantly there is more to the cost than just swapping the drive out and putting a new one in.. we arent talking about some random data drive that is a brainless copy over. this is the primary hard drive for a laptop and 9/10 people (if not worse) don't have a connector to connect a laptop HD to a desktop or a second laptop and thereby copy one drives contents over to another. Its bad enough to replace the batteries on laptops as frequently as we do, but ahard drive as well? not such a good sign. If these were failing desktop drives it would be more surprising but almost less important; throw raid, cheap drives and a usb enclosure at it and problem solved.
I'll concede your main point but instead of your answer, i'd simply rescind it to +3 or so
lets save the flogging for whoever really is behind this
noatime & nodiratime (Score:3, Insightful)
This is a well-known performance-killer (imagine a newspool), so disks should be mount'd with the `noatime` and `nodiratime` options if at all possible. This can be done automagically by replacing 'defaults' with 'noatime,nodiratime' in
fudmuffin (Score:4, Insightful)
Re:no problem, really! (Score:3, Insightful)
Re:The Ubuntu (Score:3, Insightful)
Laptop-mode solves the problem one way, without changing underlying apps, by making the write cycles bursty.
But what if you could receive a message to know that the drive had just spun up, so you could batch-commit a bunch of data and maybe do some speculative read operations?
Similarly, if you hit "Save" you really want to bypass any caching, you want it to spin up right now.
Not all disk operations are created equal.
Re:The Ubuntu (Score:2, Insightful)
Okay, all he's saying is that the OS can override DEFAULT power management settings, not issue the commands to park... which is exactly what you said, albeit rather childishly paraphrased. Otherwise, how is it a DEFAULT value, rather than The Only Frickin Choice?
The ignoring bit, you seem to have misunderstood. By ignoring the manufacturer's default power saving options and overwriting them with the OS's more relaxed values, the hard drive is NOT parking itself every 5 minutes. The QA testers may not even notice the obsessive parking because windows is overwriting the default values that they themselves are trying to test.
There are APM settings you can configure in windows, too. You know in Power Options Properties? Where it says: Turn off disks after...
Does THAT make sense to you?
Oh, and what kebes posted... was a comment. Nothing less, nothing more. He was not stating this as fact by any means. In fact, he even said "The comments in the bug report speculate that Windows either completely ignores ..." He's COMMENTING on a SPECULATION... and you interpret this as him stating fact?
Allow me to quote Google:
Definitions of comment on the Web:
- remark: a statement that expresses a personal opinion or belief; "from time to time she contributed a personal comment on his account"
So "God I hate incompetent comments." is probably one of the most incompetent, and thusly ironic, comments I've heard in years. well... besides anything that's come out of GWB's gob.
Now for the disclaimer. I didn't RTFA, and I don't have any degrees or anything besides some standard CompTIA and MS certs that any monkey can get with the proper study guides and a few hundred bucks. However, I DO understand a tiny bit about how some of the world operates, and this makes sense to me. So please, make this world a better place and don't crap on someone because they offer an opinion, thought, or even a Comment!
Re:The Ubuntu (Score:4, Insightful)