| How to Compile Kernel (CentOS 2.6.19) |
|
|
|
| Thursday, 03 December 2009 12:29 |
|
Download Kernel from http://kernel.org Extract package # tar xjf linux-2.6.19.tar.bz2
Modify /etc/modprobe.conf to avoid error message # mcedit /etc/modprobe.conf
Comment mptscsi (if exists) alias eth0 pcnet32 # make mrproper
Then Select - Load an alternative Configuration File (.config) press enter Select - General Setup ->Type # -default
Then exit, (close app) Selete YES when question do you want to save ...? # make rpm
Now install the new kernel, and create ramdisk: # echo "DMRAID=no" > /etc/sysconfig/mkinitrd/noraid # mkinitrd /boot/initrd-2.6.19.default.img 2.6.19-default
Open file, and put this 4 lines on top of the 2 similar lines. # mcedit /etc/grub.conf
Title CentOS 5.2/U-5.3 (2.6.19-default) root (hd0,0) kernel /vmlinuz-2.6.19-default ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.19.default.img Change the `default=1` to `default=0` on the top of the text. Now configure the grub boot loader via vim command and add the following text in the end of the file: # shutdown -r -n now
All is complate. # uname -r
|