Jump to content











Photo
- - - - -

Dual Booting XP and WinPE2


  • Please log in to reply
No replies to this topic

#1 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 11 April 2008 - 04:55 PM

... :thumbsup: ...

The Dual Boot should only be tested on XP Systems!

I was trying to learn about boot management in Vista and WinPE 2.0, and came across an article in the Feb 08 technet magazine, 'Dual Booting with Windows XP and Windows PE 2.0':
http://technet.micro...e/cc194422.aspx

The Dual Boot is from a single partition.

It reminded me of a recent post by paxamime who is booting WinPE 2.0 from HDD, not into RAM, and without a .wim file: http://www.boot-land...?...ost&p=33006

Trying to catch up to paxamime, I thought I'd try - as a first step - the method in the technet mag, which sets up WinPE 2.0 to boot from a HDD into RAM using a boot.wim file.

The article provides a .vbs script, and provides sample batch-file code (without Paths) for the procedure. As far as I can see, the .vbs does the following:

bootsect.exe /NT60 ALL

xcopy BOOTMGR C:\BOOTMGR /I

xcopy BOOT.SDI C:\BOOT\ 

xcopy BOOT.WIM C:\BOOT\BOOT.WIM 

bcdedit /createstore

bcdedit /create {ramdiskoptions} /d "Boot Windows PE"

bcdedit /set {ramdiskoptions} ramdisksdidevice partition=c:

bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi

bcdedit /create /d "Windows PE" /application OSLOADER

:::The last line will return a GUID. Replace {YOURGUID} with the actual GUID that was returned.

bcdedit /set {YOURGUID} device ramdisk=[c:]\boot\boot.wim,{ramdiskoptions}

bcdedit /set{YOURGUID} path \windows\system32\winload.exe

bcdedit /{YOURGUID} osdeviceramdisk=[c:]\boot\boot.wim,{ramdiskoptions}

bcdedit /set{YOURGUID} systemroot \windows

bcdedit /set{YOURGUID} winpe yes

bcdedit /set {YOURGUID} detecthal yes

bcdedit /create {bootmgr} /d "Boot Manager"

bcdedit /set {bootmgr} device boot

bcdedit /create {ntldr} /d "Windows XP"

bcdedit /set {ntldr} device partition=C:

bcdedit /set {ntldr} path \ntldr

bcdedit /displayorder {ntldr} /addfirst


The 'UnDo' is simply:

bootsect.exe /NT52 ALL

The bootsect.exe bits need to be run from WinPE. As I understand it, the rest may be run from the XP System, provided that all the stuff from Vista/WinPE 2.0 is available - in the same folder as the .vbs file. The targeted XP partition is hard-coded in the procedure as 'c:'.

Here is a special edition of the pe2 Project, which performs the whole Dual-Boot creation from the booted pe2 using the .vbs file. WAIK 1.0 is required to build pe2, and Winbuilder must have access to the internet. In Winbuilder, the DualBoot script can be selected from pe2's scrollable checklist, and Shortcuts to 'DualBootXP' and 'Undo DualBootXP' are created in pe2's emergeDesktop start menu.

The .vbs file is extracted from a downloaded archive which also contains a EULA. The EULA prohibits me from mentioning the Company's name when promoting my Project, but the Company is fairly-well known.

So... for anyone who has a spare test Virtual Machine with XP on a Virtual HardDrive... It's real Beta.

Extract the two files in the .zip to a folder ('pe2.009') inside Winbuilder's Projects Folder.
[attachment=4954:pe2.009.zip]

If the .vbs download doesn't work, extract the self-extracting .exe from the following .zip and place it in the '...\winbuilder\Projects\pe2ArchiveDir' folder.
[attachment=4955:Desktop2008_02.zip]

Good Luck :tabletalk:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users