Simple guide on how to add Windows Vista Recovery Environment and other WIM files to the UBCD menu prompt.
(pending verification) Note: If you have a USB stick with U3 software (sandisk have these) you will need to remove the U3 software (requires a special tool from U3/Sandisk to remove, not a simple format). Credit to Edge_013 for bringing this to my attention.
Add following entry to whichever menu file you want the option to show up in (in my its under main.cfg)
LABEL - MENU LABEL Whatever you Like COM32 /boot/syslinux/chain.c32 APPEND boot ntldr=/BOOTMGR
Transfer over all the contents of a Windows Vista based install CD/DVD (or the VistaRE CD). All files/folders from here should be in CAPS.
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.
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)
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
Basically what should now happen is:
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)
Original POST:
Quote
However I cannot seem to get syslinux to boot BOOTMGR file.
My menu item looks like so:
LABEL - MENU LABEL Vista RE KERNEL PE2.bss APPEND -
I have used ubcd4win.bss and tried to hex edit the ntldr to bootmgr however it doesnt seem to changing anything. Does anyone have a valid working pe2.bss or can explain the proper way to hex edit it to load the bootmgr? When i select the Vista RE option in UBCD it simply blinks the screen for a second and then goes back to UBCD (almost not noticeable).
Any help appreciated.
dpc
This post has been edited by delicatepc: 12 November 2009 - 03:30 PM



Help
Back to top











