IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
> More than One WinPE distribution on one DVD?
atolica
post Apr 2 2009, 05:42 AM
Post #1


Surgeon
**

Group: Members
Posts: 159
Joined: 15-December 05
From: Cluj-Napoca, ROMANIA
Member No.: 82557
OS: Windows 7 x86
Country Flag


Hi guys

Do you know how can I create a multiboot dvd so I have two Winpe distributions on one DVD?

HERE'S THE ANSWER !!!

SEE HERE !!!

Suppose you'd like to have a dvd with Vista/Win7 setup files(installation disk) PLUS ERD Commander, Active Boot Disk, ESET SysRescue or any other custom made WinPE that you built, on a multiboot CD/DVD, so you could chose which one you'd like to boot.

How do you do it?
Answer: very easy if you know where to look


complete procedure...

use the default WinVista, WIN 7 or any WinPE dvd or any bootable wim.

copy the contents to the HDD

the structure would be

CODE
dvd1 | - Project Root
| - BOOT (CONTAINS THE BCD FILE TO BE EDITED)
| - EFI
| - SOURCES (CONTAINS THE PE .WIM FILES)
| - OTHER FILES

In the boot folder we need to run the command

bcdedit /store bcd /ENUM

This will give you the details of old entry in the boot loader.

You need to note the guid. In every case the default guid is {7619dcc8-fafe-11d9-b411-000476eba25f}


CODE
bcdedit /store bcd /enum



CODE
Windows Boot Manager
--------------------
identifier              {bootmgr}
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {default}
device                  ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path                    \windows\system32\boot\winload.exe
description             Windows Setup
locale                  en-US
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot              \windows
detecthal               Yes
winpe                   Yes
ems                     Yes


First you'd like to see the existing boot entries in the BCD store.

CODE
bcdedit /store bcd /ENUM

*** note the old guid

Then you copy the default boot entry to a new entry in the bcd store, that has to be updated.

CODE
bcdedit /store bcd /copy {default} /d "Active Boot Disk"


*** new guid is given at this stage

Active Boot Disk is the description I'd like to use for my Active Boot Disk WinPE.


CODE
operation completed successfully.
{613fe2f0-2356-11de-bf6a-001e4cdc40b1}

***{613fe2f0-2356-11de-bf6a-001e4cdc40b1}=new guid

It can be different for you.

therefore my new guid is {613fe2f0-2356-11de-bf6a-001e4cdc40b1}

now

CODE
bcdedit /store bcd /set {newguid} DEVICE ramdisk=[boot]\sources\boot32.wim,{oldguid}


boot32.wim being the name I chose for the Active Boot wim file. You can rename it as you like, but you can not use spaces.


CODE
operation completed successfully.


next

CODE
bcdedit /store bcd /set {newguid} OSDEVICE ramdisk=[boot]\sources\boot32.wim,{oldguid}


*** boot32.wim is the file copied from the active boot disk (boot.wim renamed)

*** to check whether the bcd store has 2 ramdisks
bcdedit /store bcd /ENUM



CODE
Windows Boot Manager
--------------------
identifier              {bootmgr}
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
displayorder            {default}
                                {613fe2f0-2356-11de-bf6a-001e4cdc40b1}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {default}
device                  ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path                    \windows\system32\boot\winload.exe
description             Windows Setup
locale                  en-US
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot              \windows
detecthal               Yes
winpe                   Yes
ems                     Yes


Windows Boot Loader
-------------------
identifier              {613fe2f0-2356-11de-bf6a-001e4cdc40b1}
device                  ramdisk=[boot]\sources\boot32.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path                    \windows\system32\boot\winload.exe
description             Active Boot Disk
locale                  en-US
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\sources\boot32.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot              \windows
detecthal               Yes
winpe                   Yes
ems                     Yes


like this you may add n number of vista pes... (i have tested 3 PEs + Windows Vista Setup) to the BCD Store. Just you have to keep the oldguid to same as {7619dcc8-fafe-11d9-b411-000476eba25f}

CODE
{7619dcc8-fafe-11d9-b411-000476eba25f}
will never change... that's the rule.

copy the boot.wim file in sources folder of active boot disk/ ghost pe/ erdcommander 6.0 to the sources folder in disk1 in the project. and rename it to desired. i renamed it to boot32.wim you may use any...

{default} is not a variable and need not be changed.


Next
This is a script that automates the above process:


CODE
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


Run it as many times as you like to add multiple pes after changing the variables - bcd-file, pename, filena
remember not to use any spaces in filena variable.

I hope it helps

thanks to varun037

This post has been edited by atolica: Aug 8 2009, 11:26 AM
Go to the top of the page
 
+Quote Post

Posts in this topic
- atolica   More than One WinPE distribution on one DVD?   Apr 2 2009, 05:42 AM
- - atolica   Doesn't anyone know????!?!?! How c...   Apr 2 2009, 08:18 AM
- - Nois3   You can do it but it's pretty difficult. You n...   Apr 2 2009, 12:49 PM
- - atolica   Nothing is difficult. How did you do it?   Apr 2 2009, 02:18 PM
- - Nois3   http://www.microsoft.com/downloads/details...;disp...   Apr 2 2009, 02:52 PM
- - atolica   I am not so retarded. I've been using waik sin...   Apr 2 2009, 03:15 PM
- - Nois3   CODEecho *** Creating WinPE BCD (boot config...   Apr 2 2009, 05:04 PM
- - atolica   Thank you for your reply. I searched on technet an...   Apr 3 2009, 03:09 AM
- - Nois3   The WIM's go in to the \Boot directory. A...   Apr 3 2009, 09:58 AM
- - atolica   Muchos gracias for the reply Where do you place ...   Apr 3 2009, 12:10 PM
- - Nois3   Remember that %BCDFILE% is a variable (forgive me ...   Apr 3 2009, 11:47 PM
- - atolica   I know what I did wrong. I was trying to do this r...   Apr 4 2009, 01:50 AM
- - atolica   Regarding the help you gave me Nois3 and everythin...   Apr 7 2009, 05:38 AM
- - atolica   Can someone with good scripting skills help me cre...   Apr 8 2009, 07:08 AM
- - varun037   complete procedure... use the default WinVista or...   Apr 8 2009, 10:30 AM
- - varun037   QUOTE (atolica @ Apr 8 2009, 08:08 AM) Ca...   Apr 9 2009, 01:08 AM
- - atolica   varun037 You're amazing man! Thank you. ...   Apr 9 2009, 08:45 AM
- - atolica   @varun037 I just burnt a DVD with Win7 and several...   Apr 10 2009, 04:26 AM
- - varun037   I dont know what the problem could be... may be t...   Apr 10 2009, 04:56 AM
- - varun037   and regarding the one pe that doesnot work check t...   Apr 10 2009, 04:59 AM
- - atolica   I think is due to the fact that Win 7 hasn't g...   Apr 10 2009, 06:44 AM
- - varun037   I am currently using windows xp to do all the stuf...   Apr 12 2009, 12:10 PM
- - atolica   You were right. Windows 7 betas BCDEDIT it is stil...   Apr 14 2009, 07:34 AM
- - varun037   thats good it worked...   Apr 14 2009, 08:53 AM


Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 10:01 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy