kernal

Upgrading kernel

Situation

the existing kernel was 2.4 and the required one is 2.6

cd /usr/local/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.1.tar.gz

tar -zxf linux-2.6.20.1.tar.gz

cd linux-2.6.20.1

Now we need to copy the existing   kernel configuration file 

cp /boot/config-2.4.22-1.2199.nptlsmp /usr/local/src/linux-2.6.20.1/.config

Now we need to configure the kernel using this configuration file .. for that use

 

make oldconfig

You can see a lot of new  features for the 2.6 kernel and select the ones we need .
Then to compile and install:

make bzImage
make modules
make modules_install
make install

Once it is installed we need to edit the boot loader (/etc/grub.conf)  to load the new kernel . Reboot the server