necrosis Posted March 28, 2008 Posted March 28, 2008 (edited) I am trying to make a external USB HDD boot two WinPE images. A x86 and a x64 image. Everything is working fine except for the image label's when booting.Here is the script I use to make the BCD file.@ECHO OFFRem Creates BCD (boot configuration data) for x86 and x64 Windows PE 2.1 imagesset BCD-File="%HOMEDRIVE%%HOMEPATH%\Desktop\BCD"IF EXIST %BCD-File% del %BCD-File%Bcdedit /createstore %BCD-File%Bcdedit /store %BCD-File% /create {ramdiskoptions} /d "Ramdisk Options"Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice bootBcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdifor /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x86" /application osloader') do set guid1=%%cBcdedit /store %BCD-File% /set %guid1% systemroot \WindowsBcdedit /store %BCD-File% /set %guid1% detecthal YesBcdedit /store %BCD-File% /set %guid1% winpe YesBcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x64" /application osloader') do set guid2=%%cBcdedit /store %BCD-File% /set %guid2% systemroot \WindowsBcdedit /store %BCD-File% /set %guid2% detecthal YesBcdedit /store %BCD-File% /set %guid2% winpe YesBcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows Vista Boot Manager"Bcdedit /store %BCD-File% /set {bootmgr} timeout 30Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2%Bcdedit /store %BCD-File% /enum allpause/enum all spits outWindows Boot Manager--------------------identifier {bootmgr}description Windows Vista Boot Managerdisplayorder {53bf03c1-fcea-11dc-a141-0016cfd9a77b} {5515c9c1-fcea-11dc-a141-0016cfd9a77b}timeout 30Windows Boot Loader-------------------identifier {53bf03c1-fcea-11dc-a141-0016cfd9a77b}device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}description WinPE x86osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}systemroot \Windowsdetecthal Yeswinpe YesWindows Boot Loader-------------------identifier {5515c9c1-fcea-11dc-a141-0016cfd9a77b}device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}description WinPE x64osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}systemroot \Windowsdetecthal Yeswinpe YesSetup Ramdisk Options---------------------identifier {ramdiskoptions}description Ramdisk Optionsramdisksdidevice bootramdisksdipath \boot\boot.sdiThe problem is when the HDD boots and gets to the image selection screen it labels both options as "Ramdisk Options" not "WinPE x86" and "WinPE x64" like I want it to.What on earth am I doing wrong? Edited March 28, 2008 by necrosis
Jotnar Posted April 18, 2008 Posted April 18, 2008 I'm having the same issue. From the looks of it every thing should be fine, but I just get two "Ramdisk options" on the boot menu.Anyone have any ideas?Cheers
WreX Posted April 18, 2008 Posted April 18, 2008 I configure my BCD to boot a WIM into RAM from C: and NTLDR from D:, but I was able to add lines to my BCD creation script to add another entry for booting a separate WIM on C: into RAM and it worked no problem. Here's my script:bcdedit -createstore C:\TEMP\BCDbcdedit -store C:\TEMP\BCD -create {bootmgr} /d "Boot Manager"bcdedit -store C:\TEMP\BCD -set {bootmgr} device bootbcdedit -store C:\TEMP\BCD -create {ramdiskoptions} /d "RAM Disk"bcdedit -import C:\TEMP\BCDbcdedit -set {ramdiskoptions} ramdisksdidevice partition=C:bcdedit -set {ramdiskoptions} ramdisksdipath \BOOT\BOOT.sdifor /f "tokens=3" %%a in ('bcdedit -create /d "First WIM" -application osloader') do set guid=%%abcdedit -set %guid% device ramdisk=[C:]\BOOT\BOOT.WIM,{ramdiskoptions}bcdedit -set %guid% path \WINDOWS\SYSTEM32\BOOT\WINLOAD.EXEbcdedit -set %guid% osdevice ramdisk=[C:]\BOOT\BOOT.WIM,{ramdiskoptions}bcdedit -set %guid% systemroot \WINDOWSbcdedit -set %guid% winpe yesbcdedit -set %guid% detecthal yesbcdedit -displayorder %guid% -addlastfor /f "tokens=3" %%a in ('bcdedit -create /d "Second WIM" -application osloader') do set guid=%%abcdedit -set %guid% device ramdisk=[C:]\BOOT\BOOT2.WIM,{ramdiskoptions}bcdedit -set %guid% path \WINDOWS\SYSTEM32\BOOT\WINLOAD.EXEbcdedit -set %guid% osdevice ramdisk=[C:]\BOOT\BOOT2.WIM,{ramdiskoptions}bcdedit -set %guid% systemroot \WINDOWSbcdedit -set %guid% winpe yesbcdedit -set %guid% detecthal yesbcdedit -displayorder %guid% -addlastbcdedit -create {ntldr} /d "Microsoft Windows XP Professional"bcdedit -set {ntldr} device bootbcdedit -set {ntldr} path \ntldrbcdedit -displayorder {ntldr} -addfirstbcdedit -default {ntldr}bcdedit -timeout 5bootsect /nt60 C:IF EXIST C:\TEMP\BCD DEL C:\TEMP\BCDSome key things I have that you don't:bcdedit -set {bootmgr} device bootbcdedit -set {ramdiskoptions} ramdisksdidevice partition=C:And reference the C: partition instead of BOOTHope this helps.
neal_bangia Posted June 7, 2008 Posted June 7, 2008 I will bet anything that you guys all have Service Pack 1 of Windows Vista installed, right?Apparently I and another user are having a similar problem with the labelling of pre-installation environment applications. In our case, it is with the Symantec Recovery Disk component of Symantec Norton Ghost 12.0. Read this: http://forums.microsoft.com/TechNet/ShowPo...6&SiteID=17. Service Pack 1 for Windows Vista seems to be the culprit.I believe that Windows Vista Service Pack 1 has introduced us to a new problem, which may not necessarily be a problem, but rather work in progress that has not yet been completed: the life story of Microsoft. I figure that Microsoft is trying to have three groups of boot options: Windows Vista platforms; Legacy Windows platforms; and pre-installation environment options (the problem that we are currently facing).Hopefully we will see some kind of a resolution in the near future. In the meantime, I am going to go to a computer store and experiment with the Symantec Recovery Disk on one of their computers to determine whether I can reproduce the problem and therefore determine that Service Pack 1 is indeed the guilty party without any doubt.Neal Bangia
Jotnar Posted June 13, 2008 Posted June 13, 2008 (edited) I will bet anything that you guys all have Service Pack 1 of Windows Vista installed, right?I was trying to build on Windows XP Professional SP2.Its just a slightly nagging problem for me since I can remember the first option is x86 and the second option is x64, but still, you'd think this would be something that would just work. Cheers** of course, come to think of it, I was using the WAIK 1.1 along with the associated tools and v1.1 are the Vista SP1 / Server 2008 versions. Maybe if I tried to use bcdedit.exe from v1.0 of the WAIK (pre-Vista SP1) it would work. I'll give it a shot tomorrow and let you know. Edited June 13, 2008 by Jotnar
Jotnar Posted June 13, 2008 Posted June 13, 2008 I replaced the BOOTMGR file on my multiboot cd with one from a pre SP1 vista install disc and it showed the correct entries! It seems to boot both my PE 2.1 x86 and x64 images ok. Thanks for the tip on where to look. I don't know what the equivalent file is on an installed Vista system but my guess is that that file is the problem child.Cheers
necrosis Posted July 18, 2008 Author Posted July 18, 2008 I finally got back to this post.Yes. It does seam that the bootmgr.exe in WinPE 2.1 is the reason for the options showing up as "Ramdisk Options".Using the exact same BCD file and the bootmgr.exe from WinPE 2.0 the labels show up properly. GO MICROSOFT!Going to read over the BCD creator doc's again to see if they changed a command or something.
Stratuscaster Posted January 29, 2009 Posted January 29, 2009 (edited) Thank the Lord I found this thread - was beating my head against the wall trying to figure out this issue.The working BOOTMGR I have is version 6.0.6000.16386.The non-working BOOTMGR is version 6.0.6001.18000. Edited January 29, 2009 by Stratuscaster
niveknonrev01 Posted May 19, 2010 Posted May 19, 2010 Just an update to this issue:The actual fix is that the instructions are incorrect for creating the ramdiskoptions in the BCD store.Basically to get the boot menu options to show "correctly" use this command:bcdedit.exe /store c:\BCD /create {ramdiskoptions}Leave the /d "Ramdisk Options" OFF the command - forget it and don't use it.I originally posted it here:http://www.boot-land.net/forums/index.php?showtopic=11442hope it helps somebody.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now