Saturday, May 31, 2008

A problem encountered by laptop users running Ubuntu Gutsy Gibbon and a possible solution

A number of people are blogging about how running the latest version of Ubuntu Gutsy Gibbon on a laptop could possibly end up causing an early demise of the laptop hard disk. The problem is that the hard disk essentially consists of a spindle and a bunch of disks stacked one on top of the other which rotate at high speeds. Now as with all objects which have moving parts, hard disk also faces wear and tear. The problem faced by Ubuntu laptop users is the aggressive use of hard disk by Ubuntu thus shortening the life of the hard disk.

A bug submitted at launchpad confirms this anomaly. So what is the solution to this rather irritating problem ?

Use hdparm; a command line tool to disable advanced power management (APM). This is achieved by running the following command :
$ sudo hdparm -B 255 /dev/sda
Here the -B option is used to set the APM value. A low value means aggressive power management (that translates to more wear and tear for your hard disk) and a high value means better performance (but more battery consumption). By setting the value as 255, we have disabled the APM all together. Over 2 years back, I had written an article explaining how to improve your hard disk performance using hdparm. And if you are interested in knowing more about hdparm, you may read the article.

I run Ubuntu Gutsy Gibbon and it doesn't cause this problem on my desktop PC.

Check out the opinions from two sources [ linux hero and Planet Beranger ] to get a different angle.

No comments: