Grub 2.06 不显示 Pop-OS 和 Windows11

Grub 2.06 不显示 Pop-OS 和 Windows11

我决定切换到 Linux,为此我选择了 Pop-OS。但为了不让改变太过残酷,我决定与Windows11双启动。当我启动时,我直接进入 Pop-OS。我继续安装 Grub 2.06 并设置参数,但我得到了这个: GRUB 2.06

只需输入“exit”,计算机就会在 Pop-OS 上启动。如果我调整 BIOS 中的参数,它可以毫无问题地在 Windows 11 上启动。但我希望在启动过程中有选择,这样会更简单;-)

当我输入时在终端中

sudo update-grub

我明白了:

    Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.0.12-76060006-generic
Found initrd image: /boot/initrd.img-6.0.12-76060006-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sdb2@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

所以它可以很好地检测两个操作系统。

这是我在 /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_DISABLE_OS_PROBER=false
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
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"

您能帮我在启动菜单中选择 Windows11 和 Pop-os 吗?

相关内容