Topic: UEFI Bootable  (Read 38927 times)

0 Members and 1 Guest are viewing this topic.

Re: UEFI Bootable
« Reply #40 on: July 21, 2014, 07:10:56 PM »

devdevadev

  • Jr. Chef
  • **
  • Date Registered: Jun 2014
  • Posts: 39

efi boots from fat32 only, and looks for efi\boot\bootx64.efi or bootia32.efi, or include both.


" EFI/UEFI only boots from FAT32. I prefer NTFS for the speed and the
fact the file system has no size limitations. To get around this on
usb sticks, i make 2 partitions using acronis dd or easus or Bootice.
The first is NTFS, and the second is a 500 MB FAT32 partition. As
windows can only see one partition at a time, I use Bootice and select
the usb.  Then parts manage, select the FAT32 partition, and select
"assign drive letter".  This will hide the NTFS partition and show the
FAT32 one. Then add the EFI directory, a 'boot.wim' in sources, make
it bootable with /nt60, and revert back to the NTFS partition.  Set
this up as normal and make bootable with whatever you want (grub,
syslinux, bootmngr, etc...).  If you have UEFI enabled in BIOS, it
will boot from the hidden FAT32 partition in UEFI, and if you use the
setup files in x:\sources\setup.exe it will find and use the
'install.wim' on the NTFS partition. The 'boot.wim' boots into ram,
but the PE only sees the NTFS partition as its set Active. If you use
NTFS, syslinux 5.01 and grub4dos 0.4.5c-2013-03-03 both work with
NTFS. "



For BCD booting in general, you can use the same trick EasyBCD does, but with more control.  For booting things like isos, it simply uses a custom grldr from grub4dos.   Get a grldr from grub4dos, and open it with bootice, utilities, start menu editor, and replace the entries with something like the following.


Code: [Select]
title    Boot ISO (Disk)\n  This will list ISOs in the directory ISO and allow you to boot them
ls /ISO/
set /p MYISO=Which ISO do you want to boot?
ls /ISO/%MYISO% || echo ISO %MYISO% NOT FOUND! && configfile /boot/grub4dos/menu.lst
map /ISO/%MYISO%.iso (0xff)
#map /ISO/%MYISO%.iso (hd32)
map --hook
chainloader (0xff)
#chainloader (hd32)
boot

and then add an entry to the bcd like this (i renamed grldr to boot\ISO_DISK):


Code: [Select]

echo BCD_ISO_DISK
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Boot ISO (Disk)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device boot
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_ISO_DISK
%BCDEDIT% %STORE% /displayorder %guid% /addlast


Here is a script i made that will make a custom BCD File from scratch, or add to the systems bcd.  It works for both efi and mbr.  Just rem out the things you want or dont want in  :DVDMBR, :HDDMBR, :DVDEFI, and :HDDEFI and change any paths that differ.

Code: [Select]
@echo off
rem http://diddy.boot-land.net/bcdedit/files/examples1.htm#winpe
rem for VMWARE   firmware= "efi"
title Windows V 7 8 install.wim boot.wim and BCD manipulation
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getprivileges
if '%1'=='ELEV' (shift & goto gotPrivileges) 
setlocal DisableDelayedExpansion
set "batchPath=%~0"
setlocal EnableDelayedExpansion
ECHO set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
exit /B
:gotPrivileges

:STARTBCD

REM :::Choose variables here and below for :DVDMBR, :HDDMBR, :DVDEFI, and :HDDEFI
set BCD=%~dp0BCD
Set BCDEDIT=%SYSTEMROOT%\System32\BCDEDIT.exe
REM partition letter is the drive where your files you want to boot are.  For DVD, "boot" is used.
set PartitionLetter=D:

title Choose desired BCD
cls
echo.
echo.
echo        Choose BCD type...
echo.         
echo.
echo   1 = DVD MBR (%BCD%) (Make custom BCD file)
echo.
echo   2 = HDD MBR (System) (Add entries to your system BCD)
echo.
echo   3 = DVD EFI (%BCD%) (Make custom BCD file)
echo.
echo   4 = HDD EFI (System) (Add entries to your system BCD)
echo.
echo   5 = DELETE Entry
echo   6 = RENAME BCD
echo   7 = Change ORDER of BCD
echo   8 = Add Specific Entry to BCD
echo   9 = Add Win8 Safemode to system BCD (Must be logged in to Win8)
echo   10 = Boot Legacy (Win7)
echo   11 = Boot Standard (Win8)
echo   12 = Choose Deafult boot entry
echo.
echo   ** HDD Wim and VHD files Partition = %PartitionLetter%
echo.
echo.
SET /P IM=Input number :
SET DD=
If "%IM%"=="1" goto :DVDMBR
If "%IM%"=="2" goto :HDDMBR
If "%IM%"=="3" goto :DVDEFI
If "%IM%"=="4" goto :HDDEFI
If "%IM%"=="5" goto :DeleteBCD
If "%IM%"=="6" goto :RenameBCD
If "%IM%"=="7" goto :OrderBCD
If "%IM%"=="8" goto :AddBCD
If "%IM%"=="9" goto :Win8Safemode
If "%IM%"=="10" goto :BootLegacy
If "%IM%"=="11" goto :BootStandard
If "%IM%"=="12" goto :DefaultBCD
If "%DD%"=="" echo INVALID NUMBER
If "%DD%"=="" goto :STARTBCD


:DVDMBR
rem echo f | xcopy ISO_2 bcd
rem set BCD=%~dp0BCD
set STORE=/store %BCD%
rem %BCDEDIT% /createstore %BCD%
set PartitionLetter=boot
set Partition=boot
set Path=[boot]\sources
set PathXPWIM=[boot]\boot
REM choice is for efi, leave blank for mbr
set choice=
set applicationpath=\Windows\system32\boot\winload.exe
set applicationpathHDD=\Windows\system32\winload.exe
set VHDname=VHD.vhd
rem set ramdisksdipath=\boot\boot.sdi
set bootmenupolicy=standard
set DisplayBootMenu=%BCDEDIT% %STORE% /set {bootmgr} DisplayBootMenu True
set memtest=\boot\memtest.exe
goto :CREATECUSTOMDVD%choice%


:HDDMBR
set STORE=
rem set PartitionLetter=d:
set Partition=Partition=%PartitionLetter%
set Path=[%PartitionLetter%]\sources
REM choice is for efi, leave blank for mbr
set choice=
set applicationpath=\Windows\system32\winload.exe
set applicationpathHDD=\Windows\system32\winload.exe
set VHDname=VHD.vhd
rem ?
rem set ramdisksdipath=\Windows\system32\boot.sdi
set DisplayBootMenu=%BCDEDIT% %STORE% /set {bootmgr} DisplayBootMenu False
set memtest=\Windows\Boot\PCAT\memtest.exe
%BCDEDIT% /set {current} bootmenupolicy standard
goto :CREATECUSTOMHDD%choice%



:DVDEFI
set STORE=/store %BCD%
set PartitionLetter=boot
set Partition=boot
set Path=[boot]\sources
REM choice is for efi, leave blank for mbr
set choice=EFI
set applicationpath=\Windows\system32\boot\winload.efi
set applicationpathHDD=\Windows\system32\winload.efi
set VHDname=VHD.vhd
set bootmenupolicy=standard
rem set ramdisksdipath=\boot\boot.sdi
set DisplayBootMenu=%BCDEDIT% %STORE% /set {bootmgr} DisplayBootMenu True
set memtest=\efi\microsoft\boot\memtest.efi
goto :CREATECUSTOMDVD%choice%



:HDDEFI
set STORE=
rem set PartitionLetter=d:
set Partition=Partition=%PartitionLetter%
set Path=[%PartitionLetter%]\sources
REM choice is for efi, leave blank for mbr
set choice=EFI
set applicationpath=\Windows\system32\winload.efi
set applicationpathHDD=\Windows\system32\winload.efi
set VHDname=VHD.vhd
rem ?
rem set ramdisksdipath=\Windows\system32\boot.sdi
set DisplayBootMenu=%BCDEDIT% %STORE% /set {bootmgr} DisplayBootMenu False
set memtest=\Windows\Boot\EFI\memtest.efi
%BCDEDIT% /set {current} bootmenupolicy standard
goto :CREATECUSTOMHDD%choice%





:CREATECUSTOMDVD
call :CREATEBCD
call :Ramdisk
call :BootCdriveMBRDVD
call :WIM_bootwim
call :GRUB4DOS
call :GRUB2
rem call :GRUB24DOS
call :SYSLINUX
call :ISOLINUX
call :BCD_ISO_DISK
call :BCD_ISO_MEM
call :BCD_IMG
call :BCD_GZ
rem call :ISO_Gena_WIM
rem call :XPWIM
rem call :WIM_w7x86
rem call :WIM_w7x64
rem call :WIM_w8x86
rem call :WIM_w8x64
call :WIM_DART_w7x86
call :WIM_DART_w7x64
call :WIM_DART_w8x86
call :WIM_DART_w8x64
rem call :WIM_DART_wVx86
rem call :WIM_DART_wVx64
call :XPntldrHDD
call :XPNORMAL
rem call :XPADMIN
rem call :XPES
rem call :ISO_Mac
rem call :Plop
rem call :BootC
rem call :BootD
rem call :BootE
rem call :BootF
rem call :BootG
rem call :BootH
rem call :W2Go
rem call :VHDDVD
rem call :VHDHDD
rem call :VHDXDVD
rem call :VHDXHDD
rem call :pxeWindows
call :pxelinux
call :EFI_BootBIN
rem call :MEMTEST
%BCDEDIT% %STORE% /timeout 10
rem %BCDEDIT% %STORE% /enum
rem pause
goto :ORDERBCD
goto :StartBCD



:CREATECUSTOMHDD
rem bcdboot C:\Windows
rem call :CREATEBCD
rem call :BootC
call :Ramdisk
rem call :VHDHDDw7x86
rem call :VHDHDDw7x64
call :VHDHDDw8x86
rem call :VHDHDDw8x64
rem call :XPPE
call :WIM_w8x64
rem call :WIM_w8x86
rem call :WIM_w7x64
rem call :WIM_w7x86
rem call :WIM_DART_w7x86
rem call :WIM_DART_w7x64
rem call :WIM_DART_w8x86
rem call :WIM_DART_w8x64
rem call :WIM_DART_wVx86
rem call :WIM_DART_wVx64
rem call :XPntldrHDD
rem call :XPNORMAL
rem call :XPADMIN
rem call :XPES
rem call :BootD
rem call :BootE
rem call :BootF
rem call :BootG
rem call :BootH
rem call :W2Go
rem call :VHDDVD
rem call :VHDHDD
rem call :VHDXDVD
rem call :VHDXHDD
rem call :WIM_bootwim
call :GRUB4DOS
call :SYSLINUX
%BCDEDIT% %STORE% /default {current}
%BCDEDIT% %STORE% /timeout 10
rem %BCDEDIT% %STORE% /enum
rem pause
goto :ORDERBCD
goto :StartBCD



:CREATECUSTOMDVDEFI
call :CREATEBCD
call :Ramdisk
call :WIM_bootwim
rem call :GRUB4DOS
rem call :SYSLINUX
rem call :ISOLINUX
rem call :XPPE
rem call :WIM_w7x86
rem call :WIM_w7x64
rem call :WIM_w8x86
rem call :WIM_w8x64
rem call :WIM_DART_w7x86
call :WIM_DART_w8x64
rem call :WIM_DART_w8x86
call :WIM_DART_w7x64
rem call :WIM_DART_w8x86
rem call :WIM_DART_wVx86
rem call :WIM_DART_wVx64
rem call :XPntldrHDD
rem call :XPNORMAL
rem call :XPADMIN
rem call :XPES
rem call :BootC
rem call :BootD
rem call :BootE
rem call :BootF
rem call :BootG
rem call :BootH
rem call :W2Go
rem call :VHDDVD
rem call :VHDHDD
rem call :VHDXDVD
rem call :VHDXHDD
rem call :GRUB2EFI
rem call :BootC
rem call :BootCdriveMBRDVD
rem call :GRUB4DOS
call :BootCdriveEFIDVD
%BCDEDIT% %STORE% /timeout 10
rem %BCDEDIT% %STORE% /enum
rem pause
goto :ORDERBCD
goto :StartBCD





:CREATECUSTOMHDDEFI
rem bcdboot C:\Windows
rem call :CREATEBCD
call :Ramdisk
rem call :WIM_bootwim
rem call :BootC
rem call :GRUB4DOS
rem call :SYSLINUX
rem call :ISOLINUX
rem call :XPPE
rem call :WIM_w7x86
call :WIM_w7x64
rem call :WIM_w8x86
call :WIM_w8x64
rem call :WIM_DART_w7x86
rem call :WIM_DART_w7x64
rem call :WIM_DART_w8x86
rem call :WIM_DART_w8x64
rem call :WIM_DART_wVx86
rem call :WIM_DART_wVx64
rem call :XPntldrHDD
rem call :XPNORMAL
rem call :XPADMIN
rem call :XPES
rem call :BootD
rem call :BootE
rem call :BootF
rem call :BootG
rem call :BootH
rem call :W2Go
rem call :VHDDVD
rem call :VHDHDD
rem call :VHDXDVD
rem call :VHDXHDD
%BCDEDIT% %STORE% /default {current}
%BCDEDIT% %STORE% /timeout 10
rem %BCDEDIT% %STORE% /enum
rem pause
goto :ORDERBCD
goto :StartBCD





:DELETEBCD
echo.
echo   1 = DVD (%BCD%)
echo.
echo   2 = HDD (System)
echo.
echo.
SET /P IM=Input number :
SET DD=
If "%IM%"=="1" goto :DVD
If "%IM%"=="2" goto :HDD
If "%DD%"=="" echo INVALID NUMBER
If "%DD%"=="" goto :STARTBCD

:DVD
set STORE=/store %BCD%
goto :DELETEBCD1

:HDD
set STORE=
goto :DELETEBCD1

:DELETEBCD1
set _count=1
for /f "tokens=1* usebackq skip=1" %%a in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "identifier""`) do (call :DELETEBCD2 %_count%)
:DELETEBCD2
if "%1" neq "" (set /a _count+=1 &for /f "tokens=1* usebackq skip=%_count%" %%c in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "description""`) do (echo            %_count%. %%d &goto :eof))
set _choice=
echo.
echo.
set /p _choice=Enter a number (Q to quit):
echo.
echo.
if "%_choice%" equ "" goto :STARTBCD
if "%_choice%" gtr "0" if %_choice% lss %_count% for /f "tokens=2 usebackq skip=%_choice%" %%a in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "identifier""`) do (%BCDEDIT% %STORE% /delete %%a /f &goto :DELETEBCD1)
goto :STARTBCD









:Win8Safemode
 %BCDEDIT% /copy {current} /d "Windows 8 (Safe Mode)"
 %BCDEDIT% /timeout 10
 cls
  echo.
  echo.
  echo   Activate Win8 Safe Mode
  echo.
  echo.
set _count=1
for /f "tokens=1* usebackq skip=1" %%a in (`"%BCDEDIT% | c:\windows\system32\find "identifier""`) do (call :safemode %_count%)
:safemode 
if "%1" neq "" (set /a _count+=1 &for /f "tokens=1* usebackq skip=%_count%" %%c in (`"%BCDEDIT% | c:\windows\system32\find "description""`) do (echo            %_count%. %%d &goto :eof))
set _choice=
echo.
echo.
set /p _choice=Enter a number (Q to quit):
echo.
echo.
if "%_choice%" equ "" goto :eof
if "%_choice%" gtr "0" if %_choice% lss %_count% for /f "tokens=2 usebackq skip=%_choice%" %%a in (`"%BCDEDIT% | c:\windows\system32\find "identifier""`) do (%BCDEDIT% /set %%a safeboot minimal &goto :safemode2)
:safemode2
cd c:\windows\system32
reagentc /enable
 %BCDEDIT% /set {current} bootmenupolicy standard
 %BCDEDIT%
pause
goto :StartBCD













:CREATEBCD
Echo Create BCD
%BCDEDIT% /createstore %BCD%

Echo Create BootManager
%BCDEDIT% %STORE% /create {bootmgr}
%BCDEDIT% %STORE% /set {bootmgr} description "Windows Boot Manager"
%BCDEDIT% %STORE% /set {bootmgr} device %partition%
%BCDEDIT% %STORE% /set {bootmgr} locale en-US
%BCDEDIT% %STORE% /set {bootmgr} nointegritychecks YES
rem ***displaybootmenu disables win8 menu***
rem %BCDEDIT% %STORE% /set {bootmgr} DisplayBootMenu True
%DisplayBootMenu%
%BCDEDIT% %STORE% /timeout 10
Echo Bad memory
%BCDEDIT% %STORE% /create {badmemory}
Echo EMS
%BCDEDIT% %STORE% /create {emssettings}
rem text
rem %BCDEDIT% %STORE% /set {emssettings} bootems "Yes"
rem UI
%BCDEDIT% %STORE% /set {emssettings} bootems "No"
Echo Debug
%BCDEDIT% %STORE% /create {dbgsettings}
%BCDEDIT% %STORE% /dbgsettings SERIAL DEBUGPORT:1 BAUDRATE:115200
Echo Hypervisor
%BCDEDIT% %STORE% /create {hypervisorsettings}
%BCDEDIT% %STORE% /hypervisorsettings SERIAL DEBUGPORT:1 BAUDRATE:115200
Echo Global settings
%BCDEDIT% %STORE% /create {globalsettings}
%BCDEDIT% %STORE% /set {globalsettings} INHERIT {dbgsettings} {emssettings} {badmemory}
%BCDEDIT% %STORE% /set {bootmgr} INHERIT {globalsettings}
Echo Bootloader settings
%BCDEDIT% %STORE% /create {bootloadersettings}
%BCDEDIT% %STORE% /set {bootloadersettings} INHERIT {globalsettings} {hypervisorsettings}
Echo Resume
REM %BCDEDIT% %STORE% /create {resumeloadersettings}
REM %BCDEDIT% %STORE% /set {resumeloadersettings} INHERIT {globalsettings}
Echo Memtest
%BCDEDIT% %STORE% /create {memdiag}
%BCDEDIT% %STORE% /set {memdiag} description "Windows Memory Diagnostic"
rem %BCDEDIT% %STORE% /set {memdiag} device partition=\Device\HarddiskVolume1
%BCDEDIT% %STORE% /set {memdiag} device %partition%
%BCDEDIT% %STORE% /set {memdiag} path %memtest%
%BCDEDIT% %STORE% /set {memdiag} locale en-US
%BCDEDIT% %STORE% /set {memdiag} inherit {globalsettings}
REM %BCDEDIT% %STORE% /set {memdiag} badmemoryaccess Yes
%BCDEDIT% %STORE% /toolsdisplayorder {memdiag}
goto :eof



:Ramdisk
Echo Ramdisk settings
%BCDEDIT% %STORE% /create {ramdiskoptions}
%BCDEDIT% %STORE% /set {ramdiskoptions} ramdisksdidevice %partition%
rem %BCDEDIT% %STORE% /set {ramdiskoptions} ramdisksdipath %ramdisksdipath%
%BCDEDIT% %STORE% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
goto :eof


:MEMTEST
echo MEMTEST
%BCDEDIT% %STORE% /create {memdiag}
%BCDEDIT% %STORE% /set {memdiag} description "Windows Memory Diagnostic"
rem %BCDEDIT% %STORE% /set {memdiag} device partition=\Device\HarddiskVolume1
%BCDEDIT% %STORE% /set {memdiag} device %partition%
%BCDEDIT% %STORE% /set {memdiag} path %memtest%
rem %BCDEDIT% %STORE% /set {memdiag} locale en-US
rem %BCDEDIT% %STORE% /set {memdiag} inherit {globalsettings}
REM %BCDEDIT% %STORE% /set {memdiag} badmemoryaccess Yes
%BCDEDIT% %STORE% /toolsdisplayorder {memdiag}
%BCDEDIT% %STORE% /displayorder {memdiag} /addlast
goto :eof



:BCD_ISO_DISK
echo BCD_ISO_DISK
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Boot ISO (Disk)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_ISO_DISK
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:BCD_ISO_MEM
echo BCD_ISO_MEM
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Boot ISO (Memory)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_ISO_MEM
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:BCD_IMG
echo BCD_IMG
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Boot IMG (Floppy Image)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_IMG
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:BCD_GZ
echo BCD_GZ
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Boot GZ Zip file (Memdisk)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_GZ
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:BCD_ISO_Mac
echo BCD_ISO_Mac
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Mac OSX Boot Loader (Chameleon)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_ISO_Mac
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:Plop
echo Plop
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Plop" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCD_ISO_Plop
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:GRUB4DOS
echo GRUB4DOS
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Grub4dos" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\grub4dos\grldr
rem %BCDEDIT% %STORE% /set %guid% path \grldr.mbr
rem %BCDEDIT% %STORE% /set %guid% path \boot\grub\grldr.mbr
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:GRUB2
echo GRUB2
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Grub2" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\grub\g2ldr
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:GRUB2EFI
echo GRUB2
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Grub2 %choice%" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \efi\boot\grubx64.efi
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:BURG
echo BURG
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Burg" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\burg\g2ldr
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:SYSLINUX
echo SYSLINUX
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Syslinux (USB)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\syslinux\syslinux.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:ISOLINUX
echo ISOLINUX
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "Isolinux (CD\DVD)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\syslinux\isolinux.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:EFI_BootBIN
echo SYSLINUX
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "EFI Boot" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \efi\microsoft\boot\Grub.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof




:XPPE
echo XP PE
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "WinXP Mini PE" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\SETUPLDR.BIN
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:ISO_Gena_WIM
echo Gena_WIM
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "GenaXP LiveCD" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\BCDs\ISO_Gena_WIM
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:XPntldrHDD
echo XP HDD
%BCDEDIT% %STORE% /create {ntldr} /d "WinXP {ntldr}"
%BCDEDIT% %STORE% /set {ntldr} device %partition%
%BCDEDIT% %STORE% /set {ntldr} path \ntldr
%BCDEDIT% %STORE% /displayorder {ntldr} /addlast
goto :eof
:XPNORMAL
echo XP normal
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "WinXP (SETUPLDR.bin) (CD\DVD)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \I386\SETUPLDR.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof
:XPADMIN
echo XP admin
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "WinXP Admin (i386\SETUPLDU.bin) (CD\DVD)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \I386\SETUPLDU.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof
:XPES
echo XP Enter settings
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "WinXP Enter Settings (i386\SETUPLDE.bin) (CD\DVD)" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \I386\SETUPLDE.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:W2Go
echo Windows to go
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "Windows to Go [boot] (Win8 Enterprise)"
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% osdevice %partition%
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDDVD
echo VHDDVD
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\%VHDname%
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\%VHDname%
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "VHD (%Path%\%VHDname%)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDHDD
echo VHDHDD
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\%VHDname%
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\%VHDname%
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "VHD (%Path%\%VHDname%)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof

:VHDXDVD
echo VHDDVD
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\%VHDname%x
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\%VHDname%x
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "VHDX (%Path%\%VHDname%x)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDXHDD
echo VHDHDD
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\%VHDname%x
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\%VHDname%x
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "VHDX (%Path%\%VHDname%)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDHDDw7x86
echo VHDHDDw7x86
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\w7x86.vhd
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\w7x86.vhd
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "w7x86 VHD (%Path%\w7x86.vhd)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDHDDw7x64
echo VHDHDDw7x64
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\w7x64.vhd
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\w7x64.vhd
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "w7x64 VHD (%Path%\w7x64.vhd)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDHDDw8x86
echo VHDHDDw8x86
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\w8x86.vhd
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\w8x86.vhd
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "w8x86 VHD (%Path%\w8x86.vhd)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:VHDHDDw8x64
echo VHDHDDw8x64
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device vhd=%Path%\w8x64.vhd
%BCDEDIT% %STORE% /set %guid% path %applicationpath%
%BCDEDIT% %STORE% /set %guid% osdevice vhd=%Path%\w8x64.vhd
rem %BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "w8x64 VHD (%Path%\w8x64.vhd)"
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof


:pxelinux
echo pxelinux
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "pxelinux" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
%BCDEDIT% %STORE% /set %guid% path \boot\syslinux\pxelinux.bin
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:pxeWindows
echo pxeWindows
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /d "pxeboot.n12" /application bootsector') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device %partition%
REM %BCDEDIT% %STORE% /set %guid% path \boot\bootpxe\grldr
%BCDEDIT% %STORE% /set %guid% path \boot\bootpxe\pxeboot.n12
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof




:BootCdriveMBRDVD
echo BootCdriveMBRDVD
set Drive=c:
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device partition=%Drive%
%BCDEDIT% %STORE% /set %guid% path \Windows\system32\winload.exe
%BCDEDIT% %STORE% /set %guid% osdevice partition=%Drive%
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "Windows %Drive%"
%BCDEDIT% %STORE% /set %guid% bootmenupolicy %bootmenupolicy%
rem %BCDEDIT% %STORE% /set %guid% detecthal yes
%BCDEDIT% %STORE% /set %guid% nx optin
%BCDEDIT% %STORE% /set %guid% locale en-us
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:BootCdriveEFIDVD
echo BootCdriveMBRDVD
set Drive=c:
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device partition=%Drive%
%BCDEDIT% %STORE% /set %guid% path \Windows\system32\winload.efi
%BCDEDIT% %STORE% /set %guid% osdevice partition=%Drive%
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "Windows %Drive%"
%BCDEDIT% %STORE% /set %guid% bootmenupolicy %bootmenupolicy%
rem %BCDEDIT% %STORE% /set %guid% detecthal yes
%BCDEDIT% %STORE% /set %guid% nx optin
%BCDEDIT% %STORE% /set %guid% locale en-us
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof




:BootC
echo Windows c:
set Drive=C:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootD
echo Windows D:
set Drive=D:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootE
echo Windows E:
set Drive=E:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootF
echo Windows F:
set Drive=F:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootG
echo Windows G:
set Drive=G:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootH
echo Windows H:
set Drive=H:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootI
echo Windows I:
set Drive=I:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootJ
echo Windows J:
set Drive=J:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BootK
echo Windows K:
set Drive=K:
set bootmenupolicy=standard
rem set bootmenupolicy=legacy
goto :BOOT
:BOOT
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% device partition=%Drive%
%BCDEDIT% %STORE% /set %guid% path %applicationpathHDD%
%BCDEDIT% %STORE% /set %guid% osdevice partition=%Drive%
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% description "Windows %choice% %Drive%"
rem %BCDEDIT% %STORE% /set %guid% bootmenupolicy %bootmenupolicy%
%BCDEDIT% %STORE% /set %guid% detecthal yes
%BCDEDIT% %STORE% /set %guid% nx optin
rem %BCDEDIT% %STORE% /set %guid% locale en-US
rem for bitlocker library_custom:0x17000077 set to 3   BcdLibraryIntegerList_AllowedInMemorySettings, i dunno...
rem %BCDEDIT% %STORE% /set %guid%  ems "yes"
rem %BCDEDIT% %STORE% /ems %guid% on
rem %BCDEDIT% %STORE% /set %guid2%  RecoveryOs true
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof



:WIM_bootwim
Echo boot.wim
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set guid=%%A
%BCDEDIT% %STORE% /set %guid% systemroot \windows
%BCDEDIT% %STORE% /set %guid% detecthal yes
%BCDEDIT% %STORE% /set %guid% winpe yes
%BCDEDIT% %STORE% /set %guid% OSDEVICE ramdisk=%path%\boot.wim,{ramdiskoptions}
%BCDEDIT% %STORE% /set %guid% DEVICE ramdisk=%path%\boot.wim,{ramdiskoptions}
%BCDEDIT% %STORE% /set %guid% description "Windows Setup %choice% (%path%\boot.wim)"
rem %BCDEDIT% %STORE% /set %guid% path %applicationpath%
rem %BCDEDIT% %STORE% /set %guid% locale en-US
rem %BCDEDIT% %STORE% /set %guid% INHERIT {bootloadersettings}
rem %BCDEDIT% %STORE% /set %guid% bootmenupolicy legacy
rem %BCDEDIT% %STORE% /set %guid% bootmenupolicy standard
rem %BCDEDIT% %STORE% /set %guid%  nx optin
rem %BCDEDIT% %STORE% /set %guid%  ems "no"
rem %BCDEDIT% %STORE% /ems %guid% on
rem %BCDEDIT% %STORE% /bootems %guid% on
%BCDEDIT% %STORE% /default %guid% 
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof




:WIM_DART_w7x86
echo Win DART 7 %choice% x86
set pename="Win7 %choice% Setup\DART x86 (%path%\w7x86\boot.wim)"
set filena=%Path%\w7x86\boot.wim
goto :WIMAll
:WIM_DART_w7x64
echo Win DART 7 %choice% x64
set pename="Win7 %choice% Setup\DART x64 (%path%\w7x64\boot.wim)"
set filena=%Path%\w7x64\boot.wim
goto :WIMAll
:WIM_DART_w8x86
echo Win DART 8 %choice% x86
set pename="Win8 %choice% Setup\DART x86 (%path%\w8x86\boot.wim)"
set filena=%Path%\w8x86\boot.wim
goto :WIMAll
:WIM_DART_w8x64
echo Win DART 8 %choice% x64
set pename="Win8 %choice% Setup\DART x64 (%path%\w8x64\boot.wim)"
set filena=%Path%\w8x64\boot.wim
goto :WIMAll
:WIM_DART_wVx86
echo Win DART Vista %choice% x86
set pename="Vista %choice% Setup\DART x86 (%path%\wVx86\boot.wim)"
set filena=%Path%\wVx86\boot.wim
goto :WIMAll
:WIM_DART_wVx64
echo Win DART Vista x64
set pename="Vista %choice% Setup\DART x64 (%path%\wVx64\boot.wim)"
set filena=%Path%\wVx64\boot.wim
goto :WIMAll
:WIM_w7x86
echo WinPE 7 %choice%
set pename="WinPE 7 %choice% x86 (%path%\w7x86.wim)"
set filena=%Path%\w7x86.wim
goto :WIMAll
:WIM_w7x64
echo WinPE 7 %choice% x64
set pename="WinPE 7 %choice% x64 (%path%\w7x64.wim)"
set filena=%Path%\w7x64.wim
goto :WIMAll
:WIM_w8x86
echo WinPE 8 %choice%
set pename="WinPE 8 %choice% x86 (%path%\w8x86.wim)"
set filena=%Path%\w8x86.wim
goto :WIMAll
:WIM_w8x64
echo WinPE 8 %choice% x64
set pename="WinPE 8 %choice% x64 (%path%\w8x64.wim)"
set filena=%Path%\w8x64.wim
goto :WIMAll

:WIMALL
rem create a new ramdisk where you can specify a different boot.sdi.  last entry here http://diddy.boot-land.net/bcdedit/files/examples1.htm#winpe
for /f "tokens=3" %%A in ('%BCDEDIT% %STORE% /create /device') do set ramdisk=%%A
%BCDEDIT% %STORE% /set %ramdisk% ramdisksdidevice %partition%
%BCDEDIT% %STORE% /set %ramdisk% ramdisksdipath \boot\boot.sdi
for /f "Tokens=3" %%A in ('%BCDEDIT% %STORE% /create /application osloader') do set GUID=%%A
%BCDEDIT% %STORE% /set %guid% systemroot \Windows
%BCDEDIT% %STORE% /set %guid% detecthal Yes
%BCDEDIT% %STORE% /set %guid% winpe Yes
%BCDEDIT% %STORE% /set %guid% osdevice ramdisk=%filena%,%ramdisk%
%BCDEDIT% %STORE% /set %guid% device ramdisk=%filena%,%ramdisk%
rem %BCDEDIT% %STORE% /set %guid% osdevice ramdisk=[C:]\Sources\boot.wim,%ramdisk%
rem %BCDEDIT% %STORE% /set %guid% device ramdisk=[C:]\Sources\boot.wim,%ramdisk%
rem %BCDEDIT% %STORE% /set %guid% path %applicationpath%
rem %BCDEDIT% %STORE% /set %guid% locale en-US
rem %BCDEDIT% %STORE% /set %guid% INHERIT {bootloadersettings}
rem %BCDEDIT% %STORE% /set %guid% bootmenupolicy legacy
rem %BCDEDIT% %STORE% /set %guid% bootmenupolicy standard
rem %BCDEDIT% %STORE% /set %guid%  nx optin
rem %BCDEDIT% %STORE% /set %guid%  ems "no"
rem %BCDEDIT% %STORE% /ems %guid% on
rem %BCDEDIT% %STORE% /bootems %guid% on
rem %BCDEDIT% %STORE% /default %guid% 
%BCDEDIT% %STORE% /set %guid% description %pename%
%BCDEDIT% %STORE% /displayorder %guid% /addlast
goto :eof







:ORDERBCD
title Choose Order or quit
cls
%BCDEDIT% %STORE%
echo. 
echo   Ordering of items on the Boot Menu   
echo.       
set _count=1
for /f "tokens=1* usebackq skip=1" %%a in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "identifier""`) do (call :ORDERBCD1 %_count%)
:ORDERBCD1
if "%1" neq "" (set /a _count+=1 &for /f "tokens=1* usebackq skip=%_count%" %%c in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "description""`) do (echo            %_count%. %%d &goto :eof))
echo.
echo   Choose one you want to put into the first slot or exit
echo.
set _choice=
set /p _choice=Enter a number (Q to quit):
if "%_choice%" equ "" goto :ORDERBCD
if "%_choice%" equ "q" goto :STARTbcd
if "%_choice%" gtr "0" if %_choice% lss %_count% for /f "tokens=2 usebackq skip=%_choice%" %%a in (`"%BCDEDIT% %STORE% | c:\windows\system32\find "identifier""`) do (%BCDEDIT% %STORE% /displayorder %%a /addfirst &goto :STARTbcd)
%BCDEDIT% %STORE%
pause
goto :eof


:eof


Hello 'HALIKUS' SIR,


It means UEFI can boot from hidden fat32 'ptn2'. It's why I will keep EFI directory in both fat32 'ptn1' and fat32 'ptn2' . HALIKUS says that PE (boot.wim) only sees the NTFS partition as it's Set Active. But in my case I will inject 'Filter driver' within PE (boot.wim and Win8.1U1SE_x64_boot.wim) and VHDX (WIMBoot.vhdx) so that it will see non-active NTFS 'ptn3' in UEFI mode. In case of BIOS/MBR/CSM mode I had tested that PE (boot.wim and Win8.1U1SE_x64_boot.wim) and VHDX (WIMBoot.vhdx) sees non-active NTFS 'ptn3' without any problem .


Will PE (inject with filter drive) see non-active NTFS 'ptn3' or not ?



Following is my expected UEFI configuration for my 'Removable' USB Drive.


Partition 1- FAT32 - will contains only EFI directory

ptn1:\EFI Directory
ptn1:\EFI\Boot\bootia32.efi                          - x86 hardware / firmware
ptn1:\EFI\Boot\bootx64.efi (bootmgfw.efi)   - amd64 hardware / firmware
ptn1:\EFI\Microsoft\Boot\BCD                       - (Relocated to PTN3 'boot.wim and boot.sdi', 'WIMBoot.vhdx' , 'Win8.1SE_x64_boot.wim and boot.sdi' )


Partition 2- FAT32 - Active - Hidden

ptn2:\EFI Directory
ptn2:\EFI\Boot\bootia32.efi                          - x86 hardware / firmware
ptn2:\EFI\Boot\bootx64.efi (bootmgfw.efi)   - amd64 hardware / firmware
ptn2:\EFI\Microsoft\Boot\BCD                       - (Relocated to PTN3 'boot.wim and boot.sdi', 'WIMBoot.vhdx' , 'Win8.1SE_x64_boot.wim and boot.sdi' )


Partition 3 - NTFS - hidden

ptn3:\boot\boot.sdi
ptn3:\sources\Win8.1U1SE_x64_boot.wim     (Injected with 'cfadisk' drive and created from 64-bit 'Win 8.1 U1' through 'Win8.1SE Builder.exe' )
ptn3:\sources\boot.wim                                  (Injected with 'cfadisk' drive and taken form 64-bit 'Win 8.1 U1')
ptn3:\sources\setup.exe
ptn3:\sources\install.wim                                (taken form 32-bit 'Win 8.1 U1')
ptn3:\WIMBoot.vhdx
ptn3:\BOOTNXT


Will above expected UEFI USB configuration work or not ?


Please give me your precious suggestions regarding this configuration.........

Thanks in Advance

Re: UEFI Bootable
« Reply #41 on: July 21, 2014, 07:22:45 PM »

devdevadev

  • Jr. Chef
  • **
  • Date Registered: Jun 2014
  • Posts: 39
Above UEFI configuration will boot in following sequence-

UEFI -> /efi/bootmgfw.efi -> winload.efi ->(ptn1/ptn2):\efi\Microsoft\Boot\BCD ->  ptn3:\ Win8.1U1SE_x64_boot.wim
                   -> /efi/bootmgfw.efi -> winload.efi ->(ptn1/ptn2):\efi\Microsoft\Boot\BCD ->  ptn3:\ Win8.1U1 Installer
                   -> /efi/bootmgfw.efi -> winload.efi ->(ptn1/ptn2):\efi\Microsoft\Boot\BCD ->  ptn3:\ W2G+WIMBoot+VHDX


Is it possible ?

Thanks in Advance

Re: UEFI Bootable
« Reply #42 on: February 24, 2015, 07:44:33 PM »

hason_sonha_itt

  • Jr. Chef
  • **
  • Date Registered: Nov 2013
  • Posts: 38

Something new i added was the wonderfull Easy2boot project in Grub4dos.  You can put any ISO in the _ISO dir and it will show up in the grub4dos menu and boot if you select it.  The same works for gz, img, ima, and a bunch of others if you put them in _ISO\UTILITY.


This new G4D trick only works under non UEFI secure boot bios. Correct?
Please re-up your iso file. Thank you so much!

 

Powered by EzPortal