|
本帖最后由 freefree 于 2021-8-18 09:09 编辑
(固态硬盘+机械盘)分区类型guid
以前在mbr分区类型下正常使用的menu.lst,换到grub4dos-efi不知如何修改才能正常使用。请大神帮忙。谢谢
- (77)/udmboot || set _=
- font /unifont.hex.gz
- default 0
- timeout 9
- setmenu --box x=28 w=0 y=7 h=19 l=0 --ver-off --help=0=0=26
- color normal=0x0A highlight=0x1F helptext=0x0A heading=0x0A standard=0x0A border=0x0A
- title 1.启动 Windows 10 x64(简单注释:替换BCD启动不同系统)
- find --set-root --devices=h /boot/BCD
- dd if=()/boot/win10x64 of=()/boot/BCD
- find --set-root /bootmgr
- slic /slic.bin
- chainloader /bootmgr
- title 2.还原 Windows 10 x64(还原需要加载ima,输入密码)
- map --mem /vhd/password.ima (fd0)
- map --hook
- cat (fd0)/pass2.txt | password
- map --unhook
- find --set-root --devices=h /vhd/win10x64.vhdx
- dd if=()/vhd/win10x64.vhdx_dd of=()/vhd/win10x64.vhdx
- find --set-root --devices=h /boot/BCD
- dd if=()/boot/win10x64 of=()/boot/BCD
- find --set-root /bootmgr
- slic /slic.bin
- chainloader /bootmgr
- title 3.启动Windows7
- find --set-root --devices=h /boot/BCD
- dd if=()/boot/win7 of=()/boot/BCD
- find --set-root /bootmgr
- slic /slic.bin
- chainloader /bootmgr
- title 4.还原Windows7
- map --mem /vhd/password.ima (fd0)
- map --hook
- cat (fd0)/pass2.txt | password
- map --unhook
- find --set-root --devices=h /vhd/win7.vhd
- dd if=()/vhd/win7.vhd_dd of=()/vhd/win7.vhd
- find --set-root --devices=h /boot/BCD
- dd if=()/boot/win7 of=()/boot/BCD
- find --set-root /bootmgr
- slic /slic.bin
- chainloader /bootmgr
- title 5.启动 WePE_X86
- map --mem /vhd/password.ima (fd0)
- map --hook
- cat (fd0)/pass2.txt | password
- map --unhook
- find --set-root /vhd/WePE_32_VIP.iso
- map /vhd/WePE_32_VIP.iso (0xff) || map --mem /vhd/WePE_32_VIP.iso (0xff)
- map --hook
- chainloader (0xff)
- title 6.更改密码
- echo 选择更改密码项:
- echo 1-更改Win7x86还原密码
- echo 2-更改WePE启动项密码
- set /p user=请输入 1 或 2 (按任意键返回主菜单):
- checkrange 1:2 calc %user% || write 0x307ff8 1 && configfile
- if "%user%"=="1" set passfile=pass1.txt
- if "%user%"=="2" set passfile=pass2.txt
- map /vhd/password.ima (fd0)
- map --hook
- echo 请输入原密码:
- cat (fd0)/%passfile% | password
- echo 请输入新密码
- set /p newpass=Password:
- echo 请再输入一遍新密码
- password %newpass%
- md5crypt %newpass% | set newpass=
- echo --md5 %newpass:~11% > (fd0)/%passfile%
- map --unhook
- pause --wait=10 Password Changed OK!
- write 0x307ff8 1 && configfile
- title ==========================================================
- clear
- title 7.重启
- reboot
- title 8.关机
- halt || halt --force-sci || halt --no-acpi || halt --no-apm
- title ==========================================================
- #fallback 1
- clear
复制代码
问题一:加载vhdx失败,提示如下:Booting '1.启动 Windows 10 x64'
(hd0,2)
failed to load virtual disk image.
title 1.启动 Windows 10
find --set-root /vhd/win10x64.vhdx
map --mem /vhd/win10x64.vhdx (hd)
chainloader (hd-1)
问题二:加载WINPE蓝屏过一会儿黑屏
title 6.启动 WePE_X86
map --mem /vhd/password.ima (fd0)
cat (fd0)/pass2.txt | password
find --set-root /vhd/WePE_32_VIP.iso
map --mem /vhd/WePE_32_VIP.iso (0xff)
chainloader (0xff)
|
-
-
menu.txt
2.54 KB, 下载次数: 13, 下载积分: 无忧币 -2
方便编辑扩展名改为txt
|