|
需要显示esp分区,手工修改bcd,wim,sdi位置。mbr的,那个条目替换
测试都启动成功
@echo off
wim添加BCD启动项
set id1={%time:~6,2%%time:~9,2%ffff-8d96-11de-8e71-fffffffffffa}
set id2={%time:~6,2%%time:~9,2%ffff-8d96-11de-8e71-fffffffffffb}
bcdedit -store r:\EFI\Microsoft\Boot\BCD /create %id2% /d "boot11.wim" /device
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id2% ramdisksdidevice partition=c:
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id2% ramdisksdipath "\boot\boot.sdi"
::
bcdedit -store r:\EFI\Microsoft\Boot\BCD /create %id1% /d "%title%" /application osloader
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% device ramdisk="[c:]\boot\boot11.wim",%id2%
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% osdevice ramdisk="[c:]\boot\boot11.wim",%id2%
::bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% path \windows\system32\boot\winload.exe
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% path \Windows\system32\boot\winload.efi
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% description "boot11.wim"
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% locale zh-CN
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% inherit {bootloadersettings}
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% systemroot \windows
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% detecthal Yes
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% winpe Yes
bcdedit -store r:\EFI\Microsoft\Boot\BCD /set %id1% ems no
bcdedit -store r:\EFI\Microsoft\Boot\BCD /displayorder %id1% /addlast
pause
exit |
|