Monday, February 20, 2012

Debian 5 freeze at notebook during boot

At some notebooks Debian 5 (Lenny) freeze during boot.
Last notification on the screen is: Setting System Clock

In this case there is a error with the clock-driver.
Modify these two files:

The files must contain this string:

Load cycle bug at notebook hdd

All Debian versions i know hat a load-cycle bug in
the hdd driver. This means: When the kernel found a notebook
he activates the hdd power saving.
The hdd go into sleep every 60 seconds and is quickly waked up.
In this case, the s.m.a.r.t. load cycles increase the load-cycle-count
very quick. After a short time the hdd will fail!

You can test it with the smartmontools:
smartctl -a /dev/hda | grep Load_Cycle_Count

Here you can see the value. If it grows fast you can change
turn it off with hdparm:
hdparm -B 254 /dev/hda

I addes it to /etc/rc.local so that it is startet every boot.

Shop i work at the moment

could take a look at what i working at the moment: