当前位置: 技术问答>linux和unix
编译内核后,有关menu.lst文件的配置问题!
来源: 互联网 发布时间:2016-03-31
本文导语: 如题,我编译的内核是2.6.14.2,在make modules_install后,需要修改menu .lst: default=1 timeout=5 splashimage=(hd0,6)/boot/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd0,6) kernel /boot/vmlinuz-2.6.18-8.el5 ro ro...
如题,我编译的内核是2.6.14.2,在make modules_install后,需要修改menu .lst:
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
initrd /boot/initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
改为:
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinux ro root=/dev/sda4
initrd /boot/initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
机器重启后不能进入新内核系统,该如何改呀?
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
initrd /boot/initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
改为:
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinux ro root=/dev/sda4
initrd /boot/initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
机器重启后不能进入新内核系统,该如何改呀?
|
你把kernel文件搞错了吧?
|
能进入新内核,显示什么?
BTW: 你确定以前能吗?我记得default=x的这个x是从0开始的,你的1应该是other啊
BTW: 你确定以前能吗?我记得default=x的这个x是从0开始的,你的1应该是other啊
|
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
initrd /boot/initrd-2.6.18-8.el5.img
title New Kernel
root (hd0,6)
kernel /boot/vmlinux ro root=/dev/sda4
initrd /boot/initrd-2.6.18-8.el5.img #这是加的
title Other
rootnoverify (hd0,0)
chainloader +1
把系统启动停的地方写出来 是不是有什么panic 或者not fount init之类的
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
initrd /boot/initrd-2.6.18-8.el5.img
title New Kernel
root (hd0,6)
kernel /boot/vmlinux ro root=/dev/sda4
initrd /boot/initrd-2.6.18-8.el5.img #这是加的
title Other
rootnoverify (hd0,0)
chainloader +1
把系统启动停的地方写出来 是不是有什么panic 或者not fount init之类的