安装 Ubuntu 24.04 作为双启动后,Windows 10 无法启动。
我最近在 Dell Precision Tower 3620 上安装了 Ubuntu 24.04.2 LTS,之前它只运行 Windows 10。我按照这些说明进行操作,并且 Ubuntu 安装运行良好 - 耶!但是 GRUB 无法识别 Windows 10 的存在,如果我尝试通过重新排序 BIOS 启动来启动 Windows 10,那么它只会挂在 Dell OEM 屏幕上。
我怀疑问题出在我已经有两个 efi 启动分区,一个在/dev/sda1
,另一个在(新的?)/dev/sda6
已自动挂载为/boot/efi
。这是根据 GParted 的当前硬盘布局:
通过进入 BIOS 启动顺序,我设法以某种方式激活了 Windows 启动恢复过程(我不记得怎么做了!),但它显示黑屏并显示以下错误消息并进入重启循环:
Microsoft Secure Boot Recovery Version 1.0
Visit https://aka.ms/securebootrecovery to learn more about this application.
Checking Secure Boot Certificate Configuration...
The Secure Boot Certificate database already contains the Microsoft UEFI 2023 certificate.
No changes required. If you continue to see this message each time the system starts,
the UEFI firmware boot configuration may be missing an entry for 'Windows Boot Manager'
or the Windows entry was moved too low in the boot order.
System will reboot in 10 seconds.
其他想法:
- 这台电脑只有一个硬盘,但我可以使用可启动的 USB 记忆棒。
- 我尝试不改变除启动顺序之外的任何 UEFI/BIOS 设置(例如安全启动仍然启用)
- 我可以挂载并查看整个分区
/dev/sda3
,即原始 Win10 位置。那里似乎没有损坏。
这是 的输出find /boot/efi
。
/boot/efi
/boot/efi/EFI
/boot/efi/EFI/ubuntu
/boot/efi/EFI/ubuntu/grubx64.efi
/boot/efi/EFI/ubuntu/shimx64.efi
/boot/efi/EFI/ubuntu/mmx64.efi
/boot/efi/EFI/ubuntu/BOOTX64.CSV
/boot/efi/EFI/ubuntu/grub.cfg
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/BOOT/mmx64.efi
/boot/efi/EFI/BOOT/bkpbootx64.efi
/boot/efi/EFI/BOOT/bootx64.efi
/boot/efi/EFI/BOOT/grubx64.efi
sudo os-prober
运行但不打印任何输出
这是我的/etc/default/grub
(删除了注释行):
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
#GRUB_TERMINAL=console
#GRUB_GFXMODE=640x480
#GRUB_DISABLE_LINUX_UUID=true
#GRUB_DISABLE_RECOVERY="true"
GRUB_INIT_TUNE="480 440 1"
这是的输出sudo mount /dev/sda1 /mnt/efi1; find /mnt/efi1 -maxdepth 3
;
/mnt/efi1
/mnt/efi1/EFI
/mnt/efi1/EFI/ubuntu
/mnt/efi1/EFI/ubuntu/shimx64.efi
/mnt/efi1/EFI/ubuntu/grubx64.efi
/mnt/efi1/EFI/Microsoft
/mnt/efi1/EFI/Microsoft/Boot
/mnt/efi1/EFI/Microsoft/Recovery
/mnt/efi1/EFI/Boot
/mnt/efi1/EFI/Boot/bkpbootx64.efi
/mnt/efi1/EFI/Boot/bootx64.efi
/mnt/efi1/EFI/Boot/grubx64.efi
/mnt/efi1/EFI/dell
/mnt/efi1/EFI/dell/bios
/mnt/efi1/System Volume Information
如何让 Windows 10 启动?
后续问题(如果相关):
- 我是否必须以某种方式合并两个启动分区并删除其中一个?如果是这样,我将非常感激傻瓜指南指针/说明。我几乎从不接触分区或更改启动设置,因为我知道我会弄坏一些东西!
- 如果/当我可以启动 Windows 10 时,os-prober 会自动检测 Windows 10 吗?