我正在尝试从我的 ubuntu 安装访问 GRUB,如下所示:如何在启动时进入 GRUB 菜单?
但我得到了以下结果。我怎样才能进入 GRUB?有什么想法吗? 截屏
添加输出cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
答案1
此屏幕截图显示了 bios 中的启动设备选择菜单。选择第一个选项后,grub 就会加载。快速按 ESC 键,您便可以访问 grub。
答案2
注意:您附加的屏幕截图是用于选择启动设备的 bios 菜单。选择第一个选项 (Ubuntu),然后按Shift或Esc访问 grub 菜单。
以下是我为使更改永久生效而执行的操作。编辑文件/etc/default/grub
sudo nano /etc/default/grub
然后更换
GRUB_TIMEOUT_STYLE=hidden
和
GRUB_TIMEOUT_STYLE=menu
编辑:如果上面这一行不存在则添加它。
并确保GRUB_TIMEOUT
没有设置为0。
然后运行sudo update-grub
并重新启动,每次打开笔记本电脑时,您都应该看到 grub 菜单。要撤消更改,请用原始内容替换文件并运行sudo update-grub