更改

跳转至: 导航搜索

设置CentOS启动时显示详细信息

添加850字节, 2019年11月25日 (一) 21:02
CentOS 7
<div style="">__TOC__</div>
CentOS自6.0版本以后默认以进度条方式启动,不显示详细的硬件自检等信息。如需显示详细启动信息,可参考以下方法。
== CentOS 6 ==
6.启动界面类似下图。
[[File:CentOSBootDetail6.png]]
== CentOS 7 == 在CentOS 7下 请勿 尝试 手动编辑开机选单,因为 它是按照 此文件由/boot/ 目录内的文件自动创建 然而你 以调整 通过编辑/etc/default/grub 档内定义的通用设置 ,及在 或者/etc/grub.d/40_custom 文件修改自定义选项。 7.默认启动画面如下。[[File:CentOSBootDetail7.png]] 档内加 8.登录后输 个别自 “vi /etc/grub2.cfg”并按回车键确 项目 备注:CentOS7使用grub2。[[File:CentOSBootDetail15.png]]vi 9.提示请勿编辑此文件(详见下图高亮部分),按两次ESC键,并输入“:q!”不保存并退出。[[File:CentOSBootDetail16.png]] 10.输入“vi /etc/default/grub”并按回车键确定。[[File:CentOSBootDetail8.png]]Remove rhgb 11.找到以“GRUB_CMDLINE_LINUX”开头行,在行末可看见“rhgb quiet from this entry, should look like this right now”。[[File:CentOSBootDetail9.png]]GRUB_CMDLINE_LINUX="crashkernel=auto rhgb 12.将“rhgb quiet"”删除,按两次ESC键,并输入“:x”保存并退出。change to[[File:CentOSBootDetail10.png]] 13.输入“grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg”生成新配置文件。GRUB_CMDLINE_LINUX="crashkernel=auto" 备注:本例中为UEFI环境,如您的电脑不支持UEFI则需参考下一步。after making those changes you’ll need to rebuild the grub2 configuration file with[[File:CentOSBootDetail11.png]] grub2 14.非UEFI则输入“grub2-mkconfig -o /etcboot/grub2/grub.cfg”。[[File:CentOSBootDetail12.png]] 15.输入“reboot”并按回车键重启电脑。[[File:CentOSBootDetail13.png]] 16.重启画面如下。[[File:CentOSBootDetail14.png]]
1,138
个编辑

导航菜单