ventoy_grub2_boot_win7_win10.md

发布于:2024-03-29 ⋅ 阅读:(14) ⋅ 点赞:(0)

ventoy (grub2) 的 extMenu启动 win7 efi 、win10 efi

ventoy界面按F6(extMenu菜单) 弹出
ventoy/ventoy_grub.cfg中的菜单内容

ventoy (grub2) 的 extMenu启动 win7 efi

1. 生成 老式 分区启动记录 EFI\Microsoft\Boot\bootmgfw.efi:

  • 命令: bcdboot Y:\Windows /s Y: /f UEFI若对应下图 则Y取值为D
  • 或 WePE中的界面操作:
    在这里插入图片描述

2. 编写grub2启动菜单 启动该 分区

menuentry "w7" --class=custom {
insmod part_gpt
insmod fat
insmod chain
search.fs_label sys_w7_shiL root
echo $root
chainloader ($root)/EFI/Microsoft/Boot/bootmgfw.efi
boot
}

ventoy (grub2) 的 extMenu启动 win10 efi

1. 生成 老式 分区启动记录 EFI\Microsoft\Boot\bootmgfw.efi:

  • 命令: bcdboot Y:\Windows /s Y: /f UEFI若对应下图 则Y取值为F
    在这里插入图片描述

2. 编写grub2启动菜单 启动该 分区

menuentry "w10" --class=custom {
insmod part_gpt
insmod fat
insmod chain
search.fs_label sys_w10_shiL root
echo $root
chainloader ($root)/EFI/Microsoft/Boot/bootmgfw.efi
boot
}

ventoy (grub2) 的 extMenu启动 ubuntu 22 (用LABEL描述root设备)

menuentry "ubt22" --class=custom {
set LnxRotPartLb=sys_ubt22_shiL
search.fs_label $LnxRotPartLb LnxRotPartGrub
echo "LnxRotPartLb : $LnxRotPartLb; LnxRotPartGrub : $LnxRotPartGrub"

linuxefi ($LnxRotPartGrub)/boot/vmlinuz root=LABEL=$LnxRotPartLb
initrdefi ($LnxRotPartGrub)/boot/initrd.img
boot
}
本文含有隐藏内容,请 开通VIP 后查看