Simple guide on how to add Windows Vista Recovery Environment and other WIM files to the UBCD menu prompt.
Add following entry to whichever menu file you want the option to show up in (in my its under main.cfg) - this is what loads up the Windows BOOTMGR.
Code: Select all
LABEL -
MENU LABEL Whatever you Like
COM32 /boot/syslinux/chain.c32
APPEND boot ntldr=/BOOTMGR
Use a updated version of syslinux and chain.c32 (both can be found at syslinux package) as the ones in UBCD 5.0b12 are out of date and do not work.
Note: If you want to get chainloading the BOOTMGR with ISO you will need to either use the yet to be releashed syslinux 3.83 chain.c32 or greater or you can download the patched chain.c32 here: http://www.boot-land.net/forums/index.p ... st&id=8729
Use the following script to edit the BCD file which is found on the USB stick in BOOT\BCD (think of this file as the menu listing for the Windows BOOTMGR)
Code: Select all
Rem BCD (boot configuration data) editor for multiple vista pe
REM THIS IS THE ORIGINAL BCD FILE EXTRACTED FROM ANY VISTA WINPE / VISTA DVD (I USED VISTA INSTALLATION)
set BCD-File="c:\bcd 1\BCD"
REM SET THE NAME FOR THE VISTA PE HERE
set pename="Your PE Name"
REM SET THE NAME FOR THE WIM.FILE HERE WITH PATH
set filena=[boot]\sources\yourwimfile.wim
for /f "eol=r tokens=1-2" %%a in ('bcdedit /store %BCD-File% /ENUM all') do set rdo=%%b
for /f "tokens=1-7" %%a in ('Bcdedit /store %BCD-File% /copy {default} /d %pename%') do set guid1=%%g
bcdedit /store %BCD-File% /set %guid1:~0,38% DEVICE ramdisk=%filena%,%rdo%
bcdedit /store %BCD-File% /set %guid1:~0,38% OSDEVICE ramdisk=%filena%,%rdo%
bcdedit /store %BCD-File% /ENUM
UBCD loads.
You select Windows boot option from menu.
Chain.c32 loads BOOTMGR.
BOOTMGR references BCD file and either loads the single entry or shows a menu for multiple entries.
Select the entry you want and it loads the WIM file from SOURCES folder.
That should be it - this is tested and working on syslinux 3.82.
Credit goes to Jotnar (for BCD edit script link) and BJ-Kaiser from MSFN forums (for proper code to load BOOTMGR from syslinux menu) and Icecube for showing issue with old chain.c32 module
Original POST:
Hi,
Been searching for several months and have not found a good solution to what I would like to do. Ideally in the end I will be able to throw this all together into a guide so that it may be used by everyone else.
I would like to be able to boot UBCD (and its related tools), Vista Recovery Environment, Windows Vista Installation, Windows 7 Installation, and other WIM files if needed. I do not seek a single WIM boot (but that would be a start). Ideally all the WIM files would be separate (this is due to the nature of the WIMs constantly being updated).
I am using:
UBCD 5.0b12 (installed using USB win32 method)
USB Stick 8GB (WD Traveler)
USB Stick 16GB (Cosair)
Vista Recovery Environment DVD (X86/X64)
Vista Installation DVDs
Win7 Installation DVDs
Access to multiple WIM files that are maintained by another group
Where should I begin?