六、修改并重启管理器
我用的grub引导内核的,至于lilo没有用过,不过网上有很多这样的帖子可以参考。下面是我的文件/boot/grub.conf。
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,7)
# kernel /boot/vmlinuz-version ro root=/dev/hda8
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.26.2.fc6)
root (hd0,7)
kernel /boot/vmlinuz-2.6.26 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,7)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
以上的黑体部分是后加入的,加入后保存该文件。原来的内核启动没有改变,这样在新内核启动失败以后,就可以成功启动旧内核!保留旧内核的启动项,这点很重要哦。接下来再重启电脑期待新内核的启动成功!
Linux内核编译过程在具体实践的时候可能出现很多的问题,只要针对问题各个击破,坚持到底,是一定会有惊喜的!^_^
