方法/步骤
1. 修改grub.cfg文件
CentOS 7使用的是grub2,而在grub2中要修改的文件是/boot/grub2/grub.cfg;找到
linux16
/vmlinuz-3.10.0-229.11.1.el7.x86_64 root=/dev/mapper/centos-root ro
rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb
quiet.utf8 systemd.debug
修改为(添加 vga=ask):
linux16
/vmlinuz-3.10.0-229.11.1.el7.x86_64 root=/dev/mapper/centos-root ro
rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb
quiet.utf8 vga=ask systemd.debug
或者一步到位(添加 vga=32A,不一定必须是32A),这样不用每次启动时都去填写分辨率的modes:
linux16
/vmlinuz-3.10.0-229.11.1.el7.x86_64 root=/dev/mapper/centos-root ro
rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb
quiet.utf8 vga=32A systemd.debug
2
2. 重启
使用vga=ask时,重启后进入到选择界面时,按下ENTER(See video modes available),在mode中,可以选择 p(只是每次都需要选择特定的分辨率的modes)。
取消
评论