[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with HDD after upgrade from lenny to squeeze

Dne 21.7.2011 18:01, James Brown napsal(a):
I use Debian AMD64 on my laptop AcerTravel Mate 3040.
Model Family:     Seagate Momentus 7200.4 series
Device Model:     ST9500420AS
In the beginning ot this year I had the next report of smartctl:
193 Load_Cycle_Count        0x0032   089   089   000    Old_age   Always
       -       23521
(after using my HDD about 1,5 year).
On April 2011 I upgraded my OS from lenny to squeeze.
Now I have the next report of smartctl:
193 Load_Cycle_Count        0x0032   031   031   000    Old_age   Always
       -       139954

How I can debug and fix that problem?


you can try to change APM for better performance or disable it entirely for that disk.

See "hdparm -B /dev/sda" output for the current level and try to raise it to 254 (best preformance) or 255 (disabled), i.e. "hdparm -B 255 /dev/sda". This should prevent the disk from heads unloading (parking).

If this will help, make this setting permanent:

1) Edit /etc/default/hdparm like this:
hdparm_opts="-B 255"
and make sure /etc/init.d/hdparm is run during boot.

2) Create /etc/pm/sleep.d/01_hdparm file with:


if [ ! -x /sbin/hdparm ]; then
	exit 0

case "${1}" in
		service hdparm restart
		# nothing

So you will not lost the setting after going from sleep/hibernation if you are using pm-utils for suspending.

Petr Gajdůšek

Reply to: