学习笔记

导航

 

打开系统文件

     vim  /boot/grub/grub.conf

default=0,意思是GRUB在默认情况下,也就是用户没有选择的情况下,去启动显示在用户界面的第一个系统;GRUB启动系统时是从0开始的,就是说0表示第一个,如果用户将值改为1,那么GRUB在默认情况下会启动第二个系统;

timeout=5,指的是给用户做出选择的时间,比如值为5,那么给用户5秒时间做出选择;我们也可以对这个时间进行修改;

重启服务器

    reboot

 


-----------------------------


#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
        module /vmlinuz-2.6.18-194.17.1.el5xen ro root=LABEL=/ rhgb quiet
        module /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
        module /vmlinuz-2.6.18-194.el5xen ro root=LABEL=/ rhgb quiet
        module /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

posted on 2019-01-16 11:19  weizy81  阅读(600)  评论(0编辑  收藏  举报