Difference between revisions of "Installing Debian Etch on a ThinkPad Z60m"

From ThinkWiki
Jump to: navigation, search
Line 37: Line 37:
  
 
{{cmdroot|make-kpkg clean}}
 
{{cmdroot|make-kpkg clean}}
{{cmdroot|make-kpkg fakeroot make-kpkg --revision=thinkpad.1.0 kernel_image}}
+
{{cmdroot|make-kpkg fakeroot make-kpkg --initrd --revision=thinkpad.1.0 kernel_image}}
  
 
Install the new kernel. Grub-menu should be updated automatically.
 
Install the new kernel. Grub-menu should be updated automatically.
Line 43: Line 43:
 
{{cmdroot| dpkg -i linux-image-2.6.18_thinkpad.1.0_i386.deb }}
 
{{cmdroot| dpkg -i linux-image-2.6.18_thinkpad.1.0_i386.deb }}
  
Reboot to use the new kernel. Verify with 'uname -a'.
+
Reboot and select the new kernel. Verify with 'uname -a'.
 +
If all things work you can set the new kernel default in {{configpath|/boot/grub/menu.lst}} with default $entry-number (0..1..2..)
  
 
===Preparing userspace===
 
===Preparing userspace===
Line 50: Line 51:
  
 
{{cmdroot|apt-get install hdapsd}}
 
{{cmdroot|apt-get install hdapsd}}
 +
 +
To set your harddrive, edit {{path|/etc/default/hdapsd}}:
 +
 +
# start hdapsd at boottime?
 +
'''START=yes'''
 +
#
 +
# the name of the disk device that hdapsd should monitor.
 +
#
 +
# usually this is 'hda' the primary master or 'sda'
 +
# on SATA ThinkPads.
 +
'''DISK=sda'''
 +
#
 +
# other options to pass to hdapsd.
 +
# the -d and -b options are always passed.
 +
OPTIONS=
 +
 +
Restart hdapsd:
 +
 +
{{cmdroot|/etc/init.d/hdapsd restart}}
 +
  
  
 
[[Category:Z60m]][[Category:Debian]]
 
[[Category:Z60m]][[Category:Debian]]

Revision as of 12:28, 20 March 2007

NOTE!
This article is not finished yet!


Active Protection System

Preparing the kernel

To get the headdisk-parking working you have to build your own kernel with the hdaps_protect-patch applied:

Install the prerequisites that we need to compile the new kernel:

# apt-get install kernel-package ncurses-dev fakeroot wget bzip2

Get the recent debian-etch-kernel (2.6.18):

# apt-get install linux-tree-2.6.18

Go to the sources and unpack them:

# cd /usr/src # tar jxvf linux-source-2.6.18.tar.bz2

As etchs kernel is 2.6.18-4 its propably a good idea to get the hdaps_protect patch for 2.6.18-3:

# wget http://www.dresco.co.uk/hdaps/hdaps_protect-2.6.18.3-2.patch

Apply the patch:

# cd linux-source-2.6.18/ # patch -p1 < ../hdaps_protect-2.6.18.3-2.patch

Copy the default-config to the sourcetree:

# cp /boot/config-2.6.18-4-486 ./.config

Build the kernel & packages:

# make-kpkg clean # {{{1}}}

Install the new kernel. Grub-menu should be updated automatically.

# dpkg -i linux-image-2.6.18_thinkpad.1.0_i386.deb

Reboot and select the new kernel. Verify with 'uname -a'. If all things work you can set the new kernel default in Template:Configpath with default $entry-number (0..1..2..)

Preparing userspace

Installing the daemon:

# apt-get install hdapsd

To set your harddrive, edit /etc/default/hdapsd:

# start hdapsd at boottime?
START=yes
#
# the name of the disk device that hdapsd should monitor.
#
# usually this is 'hda' the primary master or 'sda'
# on SATA ThinkPads.
DISK=sda
#
# other options to pass to hdapsd.
# the -d and -b options are always passed.
OPTIONS=

Restart hdapsd:

# /etc/init.d/hdapsd restart