|
|

楼主 |
发表于 2025-11-14 18:13:20
|
显示全部楼层
#以下是bios+grub2+run引导的测试情况
insmod chain
insmod configfile
insmod echo
insmod map
insmod ntboot
insmod probe
insmod regexp
insmod search
insmod test
source $prefix/run/run.cfg
menuentry "R.[bios] Winpe多引导菜单-run-cfg" --hotkey=R --class=windows{
search --file --no-floppy --set=root /boot/grub2/bios_bwinpe.cfg
run /boot/grub2/bios_bwinpe.cfg
}
#引导成功,出现bios_bwinpe.cfg中的菜单项
menuentry "R.[bios] Windows 10 系统-run-efi" --hotkey=R --class=windows{
search --file --no-floppy --set=root /boot/win/win10/bootmgr.exe
run /boot/win/win10/bootmgr.exe
# run /boot/win/win10/bootmgr
#bootmgr.exe和bootmgr均用BMplus生成,设定引导/boot/win/win10/bcd
#若直接 ntldr /boot/win/win10/bootmgr ,能正常引导至win10
}
#run /boot/win/win10/bootmgr.exe,或run /boot/win/win10/bootmgr,均直接返回grub2菜单
menuentry "R.[bios] Winpe维护系统-run-wim" --hotkey=R --class=windows{
search --file --no-floppy --set=root /winpe/win10pe_x64_bios_uefi.wim
run /winpe/win10pe_x64_bios_uefi.wim
}
#有信息输出,一闪而过,就重启了
menuentry "R.[bios] Windows系统-run-vhd" --hotkey=R --class=windows{
search --file --no-floppy --set=root /vhds/win7_x64.vhd
run /vhds/win7_x64.vhd
#若直接 ntldr /boot/win/win7/bootmgr , 能正常引导至win7-vhd系统
}
#提示:回设备表,当前查找/vhds/win7_x64.vhd结果
menuentry "R.[bios] Winpe维护系统-run-iso" --hotkey=R --class=windows{
search --file --no-floppy --set=root /winpe/win11PE_x64.iso
run /winpe/win11PE_x64.iso
}
#直接返回grub2菜单
#小结:除cfg引导成功外,其余均引导失败,望能指点,诚谢!
|
|