[root@localhost linux-2.6.20.i686]# make install
sh /usr/src/redhat/BUILD/kernel-2.6.20/linux-2.6.20.i686/arch/i386/boot/install.sh 2.6.20-prep arch/i386/boot/bzImage System.map "/boot"
这里好像内核已经升级完毕了,由于Fedora5是有Grub引导的,需要确认下
使用命令如下:
[root@localhost shabi004]# cd ..
[root@localhost home]# cd ..
[root@localhost /]# cd boot
[root@localhost boot]# ls
config-2.6.15-1.2054_FC5 System.map-2.6.15-1.2054_FC5
grub System.map-2.6.20-prep
initrd-2.6.15-1.2054_FC5.img vmlinuz
initrd-2.6.20-prep.img vmlinuz-2.6.15-1.2054_FC5
lost+found vmlinuz-2.6.20-prep
System.map
[root@localhost boot]# cd grub
[root@localhost grub]# ls
device.map grub.conf minix_stage1_5 stage2
e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
ffs_stage1_5 menu.lst stage1 xfs_stage1_5
[root@localhost grub]# vi grup.conf
显示:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-prep)
root (hd0,0)
kernel /vmlinuz-2.6.20-prep ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.20-prep.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
~
"grub.conf" 21L, 770C
关于其中的解释,由于自己的水平有限,也解释不清楚,还请大家去google下就可以得到完整答案。这里我只说自己懂得:
title Fedora Core (2.6.20-prep): 内核启动版本
root (hd0,0):hd*表示第几个硬盘,比如本例就是第一块硬盘,后面的*表示所第一个分区,本例为第一块一硬盘,第一个分区。
现在重启系统,在重启时按任意键进入grub引导界面
如图:
选择对应的2.6.20进入系统
[shabi004@localhost Desktop]$ uname -a
Linux localhost 2.6.20-prep #1 Thu Aug 6 17:39:48 CST 2009 i686 i686 i386 GNU/Linux