zoukankan      html  css  js  c++  java
  • CentOS6.x和CentOS7.X启动系统不显示进度条设置方法

    [root@ok Desktop]# vi /boot/grub/grub.conf
    
    
    # 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/mapper/vg_ok-lv_root
    #          initrd /initrd-[generic-]version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.32-573.22.1.el6.x86_64)
            root (hd0,0)
            kernel /vmlinuz-2.6.32-573.22.1.el6.x86_64 ro root=/dev/mapper/vg_ok-lv_root rd_NO_LUKS rd_LVM_LV=vg_ok/lv_root LANG=en_US.UTF-8 rd_LVM_LV=vg_ok/lv_swap rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet#去掉 rhgb quie(启动过程就是命令行的方式显示)
            initrd /initramfs-2.6.32-573.22.1.el6.x86_64.img
    title CentOS 6 (2.6.32-573.el6.x86_64)
            root (hd0,0)
    @                                                                               
    "/boot/grub/grub.conf " 21L, 1170C
    

     注意:grub.conf不一定在/boot/grub/下,在centos6.7中

    [root@bass ~]# find / -name grub.conf
    /boot/efi/EFI/redhat/grub.conf
    /etc/grub.conf
    [root@bass ~]# ll /etc/grub.conf
    lrwxrwxrwx. 1 root root 32 May  5 01:20 /etc/grub.conf -> ../boot/efi/EFI/redhat/grub.conf
    

     CentOS7.X要去点99行和113行的rhgb quiet下面的一组是去掉后

    [root@centos7 ~]# egrep linux16 -n --color /boot/grub2/grub.cfg.bak 
    99:    linux16 /vmlinuz-3.10.0-514.el7.x86_64 root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet LANG=en_US.UTF-8
    113:    linux16 /vmlinuz-0-rescue-d3f7c9792f7c1d930a40afdba2cd28da root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet
    [root@centos7 ~]# egrep linux16 -n --color /boot/grub2/grub.cfg
    99:    linux16 /vmlinuz-3.10.0-514.el7.x86_64 root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap LANG=en_US.UTF-8
    113:    linux16 /vmlinuz-0-rescue-d3f7c9792f7c1d930a40afdba2cd28da root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap
  • 相关阅读:
    TP5.x——打印SQL语句
    PHP——运行shell命令|脚本
    Git——取消merge状态
    Typecho——简介及安装
    Vue——服务器上部署vue.js
    Node——服务器上安装Node.js
    PHP——敏感词过滤
    PHP——emjoin表情存入数据库
    什么是脚本语言
    全局拦截各种http请求
  • 原文地址:https://www.cnblogs.com/bass6/p/5661836.html
Copyright © 2011-2022 走看看