Explanation of Ubuntu Hard Drive Wear and Tear
|
|
|
Comments (6)
Does Ubuntu really spin down the hard drive?
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?
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?
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.)
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 pagesI guess the key phrase is "if the drive supports it."
-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.
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: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

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.)