Advanced

Explanation of Ubuntu Hard Drive Wear and Tear

Posted by Sander_Marechal on · 6 comments
Linux Hero
Mail this story
Print this story

A recent bug report for Ubuntu Linux has confirmed that both the Feisty and Gutsy versions of Ubuntu cause some unnecessary wear and tear on a hard drive. The bug report reads: “I run feisty (beta) on a Dell Inspiron 9400 with a Hitachi HTS541616J9SA00 hard drive. After booting, the drive's power management settings are such that it spins down A LOT. 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.” Definitely an interesting sounding find. But what exactly does it mean? That's what I thought when I read it, so I did a little research. Feel free to comment and correct me if I've gotten anything wrong.

Full Story

  Nav
» Read more about: Story Type: Editorial; Groups: Ubuntu

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (6)

Does Ubuntu really spin down the hard drive?

I've never noticed this happening. In fact, I haven't had a hard drive noticeably spin down since my Powerbook 1400.

And the fix, as stated in the article:

hdparm -B 255 /dev/sda

Does that go in a config file? And if so, which one?

And shouldn't there be a GUI in which to set this, especially in Ubuntu-world?

(For me, the fact that Gutsy allows me to easily toggle the tap-to-left-click action on my Gateway laptop's Alps touchpad is borderline revolutionary, but I digress.)
Set it in /etc/hdparm.conf if you want to make it permanent.

Errored out on me

I got the following:

sudo hdparm -B 255 /dev/hda

/dev/hda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error

Should I be worried? This is a desktop system. Is this limited to laptops?

OK, I know this is a stupid question, but I always start with the basics.

Do you have a /dev/hda? Is it possible that your HD is /dev/sda?
bryan@ubuntu:~$ mount /dev/hda3 on / type ext3 (rw,noatime,errors=remount-ro) /dev/hda1 on /boot type ext3 (rw) /dev/sda1 on /media/sda1 type ext3 (rw,noatime) /dev/sda2 on /media/sda2 type ext3 (rw,noatime)

bryan@ubuntu:~$ sudo hdparm -B 255 /dev/hda

/dev/hda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error

bryan@ubuntu:~$ sudo hdparm -B 255 /dev/sda

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error



While it was entirely possible that there was no hda because I don't think I checked, evidently, there is. So, no, that was not a stupid question. (I clipped most of the message from the mount command. My varlock mount or whatever isn't really important.)
Quoting:Man pages

-B Set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better performance. A value of 255 will disable apm on the drive.
I guess the key phrase is "if the drive supports it."

Well, does it?

Quoting:DESCRIPTION hdparm provides a command line interface to various hard disk ioctls supported by the Linux SATA/PATA/SAS "libata" subsystem and the older IDE driver subsystem. Some options may work correctly only with the latest kernels.


The key phrase here is "Some options may work correctly only with the latest kernels"

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post