|
老师,如果EFI文件夹里有多个WIM文件,比如W8PE_X64.wim 和W8PE_X86.wim ,那有没有必要重新编辑如下文件
:fd17
map (fd17) (fd0)
map --unmap=17
map --rehook
set pe78=(fd0)
rootnoverify %pe78%
exit
:u
if not exist %1/efi/W8PE_X64.wim pause --wait=8 %1/efi/W8PE_X64.wim not found. && reboot
cat --length=0 %1/efi/W8PE_X64.wim
set /a wimlen=%@retval% / 512 + 12291 / 4 * 4
map --mem=-%wimlen% --sectors-per-track=63 --heads=255 --top (md)+8 (hd0) || pause Not enough memory. && reboot
map --rehook
map --status=0x80 && geometry (hd0) > (md)0x200+1 && cat --locatei=partition (md)0x200+1 > nul || echo ! pause Geometry of (hd0) gets wrong, may be not enough memory. && reboot
set /a wimlen=%wimlen% - 64
partnew (hd0,0) 7 63 %wimlen%
fat mkfs (hd0,0) > nul
fat mkdir (hd0,0)/efi
echo You may have to wait a long time.
call :cp %1 bootmgr
call :cp %1 bcd
call :cp %1 boot.sdi
call :cp %1 W8PE_X64.wim
rootnoverify (hd0,0)
set wimlen=
exit |
|