I created a thread about a problem a I had with my hard disk clicking whilst idle little while ago and I may now have stumbled upon a possible solution. The strange thing with the problem is that Ubuntu/Kubuntu didn’t cause this problem but Opensuse 11.2 does.
I installed Fedora 13 to have a glimpse of what all the fuss was about and noticed that I had the same problem (hard disk clicking whilst idle ~ every 20 secs or so). Now there’s a wiki on this subject and a few bug reports:
https://ata.wiki.kernel.org/index.php/Known_issues
Problem Description
Some ATA harddrives perform very frequent head unloads under Linux significantly shortening their lifespans.
Root causeThe inactivity timer for head unload is configured too aggressively either via ATA APM (Advanced Power Management) feature or other non-standard means. Such aggressive settings are very fragile to changes in IO pattern and under Linux many such drives unload their heads only to re-load them shortly. Note that this relentless unloading/reloading cycle can also be triggered under Windows by installing programs which can alter the IO pattern (e.g. certain vaccine programs which runs in background).
Now two of the listed models with this problem are basically identical to my model (Dell Inspiron 1520) and basically share the same hardware: Dell Vostro 1500 and XPS 1520.
The workaround listed is to:
set APM to 254
Furthermore, there is a script: Storage-Fixup which can also be downloaded from opensuse software search. Indeed there is a report of this for a Vostro 1500:
Gmane Loom
The report suggests looking at:
Disk Power Management - openSUSE
which lists a method to create a configuration file to management disk power management:
/etc/pm/config.d/disk and
the power management script:
/etc/pm/power.d/disk
My question is whether I could download the storage-fixup rpm (https://ata.wiki.kernel.org/index.php/Known_issues#storage-fixup has a description of it and it can be found: Software.openSUSE.org) and install it to (hopefully) solve the issue or should I follow the method given in:
Disk Power Management - openSUSE
to set APM to 254:
# Configure disk power management settings to ensure both
# long disk life and good power management.
#
# Space delimited list of disk devices this affects.
#
DEVICES_DISK_PM_NAMES="/dev/sda"
#
#
# Power management modes
#
# Powersave mode off
# Disable APM and spin-down
#
DEVICES_DISK_PM_POWERSAVE_OFF="hdparm -q -B 255 -q -S 0"
#
# Powersave mode on
# Enable APM to conservative 200 and set spin-down for 21 minutes
#
DEVICES_DISK_PM_POWERSAVE_ON="hdparm -q -B 200 -q -S 252"
Here are some further discussions on the topic if needed:
https://bugzilla.novell.com/show_bug.cgi?id=386555
https://bugs.launchpad.net/fedora/+source/pm-utils/+bug/59695
Thanks for any help in advance!