RedHat升级内核成功
升级前
uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
升级后
uname -a
Linux localhost.localdomain 2.6.27 #1 SMP Wed Aug 18 19:23:14 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
过程
1.下载http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.gz
# tar zxvf linux-2.6.27.tar.gz -C /usr/src
# cd /usr/src/linux-2.6.27
# make menuconfig
# make (可能要很长时间)
# make modules_install
# cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.27-yourname
(注意:目录i386是根据你的系统类型, 如果是64位系统, 那就很可能是x86_64)
# cp System.map /boot/System.map-2.6.27-yourname
# mkinitrd /boot/initrd-2.6.27-yourname.img 2.6.27
# vi /etc/grub.conf
title Red Hat Enterprise Linux Server (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-194.el5.img
title wyb (2.6.)
root (hd0,0)
kernel /vmlinuz-2.6.27-yourname ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.27-yourname.img