Hard drive spinning up and down too often in Ubuntu 12.04

Ubuntu 12.04 was spinning my HDD down quite aggressively. It would spin down about once a minute, then spin back up again. This has the potential to cause some damage to the hard drive potentially decreasing it’s lifespan.

After messing around with laptop-mode and laptop-mode-tools to no avail I found this bug report:

952556 – https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/952556

1. The solution for me was to open hdparm.conf

sudo gedit /etc/hdparm.conf

2. Then add the following line

apm_battery = 128

This is a temporary solution for the bug and there is a permanent fix due to be released with 12.04.1

(Read the bug report for from #20 to find out more)

–EDIT– 7/5/12

You can now install an updated HDPARM package using Synaptic Package Manager. This avoids having to change the config file

1. Open Synaptic and click Settings Menu>Repositories

2. Click the updates tab and check proposed updates and close

3. Click the reload button then search for hdparm

4. Right click and mark for upgrade.

(After it installed I went back and unchecked proposed updates)

Tagged , , , ,

3 thoughts on “Hard drive spinning up and down too often in Ubuntu 12.04

  1. dnquark says:

    Thank you! The constant spindowns in 12.04 have been driving me crazy.

  2. petrochemicals says:

    This fixed my problem in Crunchbang 11. Thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: