1. 用vi開啟
# vi /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet console=ttyS0,115200n8r console=tty0" <---加上這行
GRUB_DISABLE_RECOVERY="true"
2. save setting
# grub2-mkconfig -o /boot/grub2/grub.cfg
若安裝的是uefi系統
# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
沒有留言:
張貼留言