centos 系统有多个内核,修改默认启动内核
发布网友
发布时间:2022-04-30 17:07
我来回答
共1个回答
热心网友
时间:2022-06-28 03:44
Vim /boot/grub/grub.conf
-----------------
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.17.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.17.1.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.17.1.el5.img
title CentOS (2.6.18-194.17.1.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-194.17.1.el5
mole /vmlinuz-2.6.18-194.17.1.el5xen ro root=LABEL=/ rhgb quiet
mole /initrd-2.6.18-194.17.1.el5xen.img
title CentOS (2.6.18-194.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-194.el5
mole /vmlinuz-2.6.18-194.el5xen ro root=LABEL=/ rhgb quiet
mole /initrd-2.6.18-194.el5xen.img
title CentOS-base (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.el5.img
-----------------------------------
默认由0开始计数,将default值改为你要启动的数字即可。