用新编译的LINUX内核启动

来源:百度知道 编辑:UC知道 时间:2024/09/23 15:19:31
我新编译了一个LINUX2.6.26.1的内核(我现运行的内核是LINUX2.4.20),想要用它启动,已经生成了bzImage文件,但是不知道接来该怎么做,在网上查资料,有的说直接拷贝到/boot目录下即可,有的说要把名字改了(改成什么名啊),接着有的说要改一下/boot/grub/menu.list,有的说要改一下/boot/grub/grub.conf ,有的还说要改一下/etc/lilo.conf,请问到底该那个啊,怎么改啊,
没有人指教了吗

修改/boot/grub/grub.conf 里面有个default=0 0表示第一个,1表示第二个,一次类推。例如我的文件是这样的。

# 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/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.25linux1610-2.6)
root (hd0,0)
kernel /vmlinuz-2.6.25linux1610-2.6 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.25linux1610-2.6.img
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-92.el5.img
我的default=0,那么我就是默认启动