双重启动 Arch/Windows - Windows 将自身设置为活动分区?

双重启动 Arch/Windows - Windows 将自身设置为活动分区?

第一次安装 Arch,不过实际上过去几天我已经安装过三次了 :0)

尝试使用现有的 Windows 7 分区进行双启动,这几乎可以正常工作,但有一个小问题。我一直在遵循 Arch wiki 中此页面上的过程,我的分区基本按照文章中所述进行布局:

https://wiki.archlinux.org/index.php/Windows_and_Arch_Dual_Boot

Grub 未加载到 MBR 上,但它被安装到 /boot 分区,我已将该分区设置为“活动”分区。这样就行了。

但是,在我启动 Windows 7 后,后续启动会直接进入 Windows,因为它似乎将自己设置为活动分区。有没有人遇到过这种情况,或者知道如何解决?

谢谢!

答案1

在 Windows 中,使用bcd 编辑(需要 UAC 提升的管理员权限)

REM This will output a GUID, {long-string-of-hex-characters}
bcdedit /create /d GRUB /application BOOTSECTOR

REM Now, assuming you've copied GRUB's stage1 to C:\grub.bin
bcdedit /set {GUID} device partition=C:
bcdedit /set {GUID} path \grub.bin

REM Make it selectable in the WINLOAD menu
bcdedit /displayorder {GUID} /addlast

GRUB stage1 通常可以在 Linux 系统中的一个类似文件中找到/lib/grub/i386-pc/stage1;如果您没有安装到 MBR,它也将是您安装 GRUB 的分区的前 512 个字节。

相关内容