Fast and easy kernel rebuild guide for a 2.6 Linux kernel. -----[This should be executed as a regular user]----- 1 - download the kernel source from http://kernel.org/mirrors/ 2 - extract the kernel source in your /home directory example: /home/mingdao/kernel/linux-2.6.35/ 3 - unpack the source: tar -xf linux-2.6.35.tar.bz2 4 - cd into your kernel source directory and run "make xconfig" (see the different choices in ./linux-2.6.x.y/README) 5 - configure all the kernel options to suit your needs 6 - save the kernel 7 - run "make -j3" (still as a normal user) 8 - su to root -----[do the following steps as root]----- 9 - copy the new .config file to /boot "cp .config /boot/config-2.6.35" 10 - copy the System.map file to /boot as System.map-kernel-version: "cp System.map /boot/System.map-2.6.35" 11 - run "make modules_install" which will install the modules for the new kernel to /lib/modules/$VERSION 12 - Now copy the kernel itself to /boot under some new name: "cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.35" 13 - Edit "/etc/lilo.conf" and add a new section for your new kernel similar to this one: image = /boot/vmlinuz-2.6.35 root = /dev/md2 label = 2.6.35 read-only # Partitions should be mounted read-only for checking (Leave the old one in place in case the new one doesn't boot.) 14 - Run "lilo" and add it to the bootloader. That's my entry for my current 2.6.35 kernel in /etc/lilo.conf. ----- OTHER USEFUL ENTRIES FOR /etc/lilo.conf: You'll also want to make sure LILO has a timeout to allow you to pick the kernel you want to boot (btw, the first one listed is the default kernel). So be certain you have a line such as this one: timeout = 50 The convention is that number divided by 10 = seconds, so that will give you a 5 second time period to choose which kernel to boot. If you feel you need more time, just multiply the seconds you want by 10 and change this accordingly. If you prefer to have a kernel other than the first entry as the default, you must add: default=