Jump to content











Photo
- - - - -

Multi-boot BCD entries -some guides are WRONG


  • Please log in to reply
6 replies to this topic

#1 niveknonrev

niveknonrev
  • Members
  • 8 posts

Posted 18 May 2010 - 08:50 PM

Well I was trying recently to update my PXE boot setup with Windows AIK for 2008R2/Win7 in WinPE3 and was following the guides previously found all over the web and here at boot-land. I followed the directions exactly but kept getting "Ramdisk Options" for every entry in my boot menu.
Frustrating... becasue it always worked before.
One popular option that I found on the web said to use an older version of bootmgr.exe in the boot folder on your PXE server and it would display the menu correctly.

I wasn't satisfied with that option but couldn't find any other answers (maybe I didn't search enough - who knows).

But I found the guides keep showing this line:
bcdedit.exe /store c:\BCD /create {ramdiskoptions} /d "Ramdisk options"

including Microsoft's own official guide.

Apparently whatever you put in the description of this entry - is what shows up for EVERY BCD boot entry you put into your file.

Therefore if I ran this next
bcdedit.exe /store c:\BCD /create /d "WinPE-x86" /application osloader
and then this
bcdedit.exe /store c:\BCD /create /d "WinPE-x64" /application osloader

When I booted it would show me 2 menu options like this:
Ramdisk options
Ramdisk options

instead of the labels I wanted! Brilliant!!!!

Well the answer is to SKIP the description on the initial ramdisk option creation in the BCD store. I don't know why that isn't documented somewhere with MS but it works.

If you execute this line instead:
bcdedit.exe /store c:\BCD /create {ramdiskoptions}
leaving the description part off

your other created entries will display properly when you PXE boot:
WinPE-x86
WinPE-x64

or whatever your options happen to be.
Hopefully this will help someone in a similar situation.
Thanks

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14759 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 19 May 2010 - 07:23 AM

I think it depends on the actual version of the BOOTMGR.EXE.

See here:
http://www.msfn.org/...howtopic=125543
http://www.msfn.org/...howtopic=114711

The working BOOTMGR I have is version 6.0.6000.16386.

The non-working BOOTMGR is version 6.0.6001.18000.



What you report is a nice workaround, if it works with the "bad" version.

:lol:
Wonko

#3 niveknonrev

niveknonrev
  • Members
  • 8 posts

Posted 19 May 2010 - 12:11 PM

I read those posts and that's what I was frustrated with, their workaround was to use an older version of bootmgr which seems crazy but thanks Microsoft!

The current version of bootmgr is even newer and it doesn't look like they are ever going to change it back. My version in Winpe3.0 6.1.7100.0

It just looks like ther is no need to label the ramdiskoptions section in the first place. and leaving off the /d "Ramdisk Options" shoud be used with anything newer than Winpe 2.0's bootmgr.exe.

I was going to post a reply to those but I don't pay to be on that board and don't plan on paying just to post this one. :lol:

Guess I should post the commands I was using. I made 2 WinPE version 1 32bit and 1 64bit and wanted them as two BCD boot entries.

bcdedit.exe /createstore c:\BCD

-NOTE this next command is where you leave off the /d "Ramdisk Options" - very important
bcdedit.exe /store c:\BCD /create {ramdiskoptions}
bcdedit.exe /store c:\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit.exe /store c:\BCD /set {ramdiskoptions} ramdisksdipath \Boot\boot.sdi
bcdedit.exe /store c:\BCD /create {bootmgr} /d "BootManager"
bcdedit.exe /store c:\BCD /set {bootmgr} timeout 10

To add an entry for my x86.wim (or whatever you named yours)- the /d "WinPE-x86" is what will show up in the boot menu

bcdedit.exe /store c:\BCD /create /d "WinPE-x86" /application osloader
- this command will (if successful) return a unique {guid} value. Replace {guid1} in the commands below with this value.

bcdedit.exe /store c:\BCD /set {guid1} systemroot \Windows
bcdedit.exe /store c:\BCD /set {guid1} detecthal Yes
bcdedit.exe /store c:\BCD /set {guid1} winpe Yes
bcdedit.exe /store c:\BCD /set {guid1} osdevice ramdisk=[boot]\Boot\x86.wim,{ramdiskoptions}
bcdedit.exe /store c:\BCD /set {guid1} device ramdisk=[boot]\Boot\x86.wim,{ramdiskoptions}

To add an entry for amd64.wim -
bcdedit.exe /store c:\BCD /create /d "WinPE-x64" /application osloader
- this command will (if successful) return a unique {guid} value. Replace {guid2} in the commands below with this value.

bcdedit.exe /store c:\BCD /set {guid2} systemroot \Windows
bcdedit.exe /store c:\BCD /set {guid2} detecthal Yes
bcdedit.exe /store c:\BCD /set {guid2} winpe Yes
bcdedit.exe /store c:\BCD /set {guid2} osdevice ramdisk=[boot]\Boot\amd64.wim,{ramdiskoptions}
bcdedit.exe /store c:\BCD /set {guid2} device ramdisk=[boot]\Boot\amd64.wim,{ramdiskoptions}

Now execute the following command to display menu entries for x86.wim and/or amd64.wim -
bcdedit.exe /store c:\BCD /displayorder {guid1} {guid2}

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14759 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 19 May 2010 - 12:49 PM

I was going to post a reply to those but I don't pay to be on that board and don't plan on paying just to post this one. :lol:


There is no need to pay to become member of MSFN. :cheers:
Maybe you are confusing with the "paid" subscriptions:
http://www.msfn.org/...p=subscriptions
those are to get some benefits in addition to the ones you normally get with a "standard" FREE membership:
  • 75 messages in message box
  • 150 Kb MAX upload size as attachment
and also in order to remove some (quite unobtrusive) google ads from the board view.

If you want I can post there a pointer to this thread, but you can register allright and do it yourself. ;)

Guess I should post the commands I was using. I made 2 WinPE version 1 32bit and 1 64bit and wanted them as two BCD boot entries.

Yep, thank you very much, really appreciated. ;)

;)
Wonko

#5 niveknonrev

niveknonrev
  • Members
  • 8 posts

Posted 19 May 2010 - 12:54 PM

DOH! :lol: OOPS thanks for pointing that out

#6 diddy

diddy

    Member

  • Tutorial Writer
  • 78 posts

Posted 19 May 2010 - 05:22 PM

Also refer to cdob's post here.

In addition to covering removing the /d switch in {ramdiskoptions} it also gives instructions for using two (or more) ramdisks.

diddy

p.s. I only recently got aroud to testing this but it's definitely working. Cheers cdob.

#7 Jotnar

Jotnar

    Member

  • Members
  • 35 posts

Posted 20 May 2010 - 12:51 AM

Nice! Now I can finally replace the pre-sp1 BOOTMGR.

Cheers




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users