MSFN Forum: Dual boot Windows XP-SP3 + WinPE2.0 - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Dual boot Windows XP-SP3 + WinPE2.0 Rate Topic: -----

#1 User is offline   devil270975 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 368
  • Joined: 31-July 03

Posted 29 May 2008 - 03:11 PM

Hi, i am having some serious problems booting to winpe2 from another partition.

Partition 1 - Windows XP-SP3
Partition 2 - WinPE2.0

I created a boot file using bootpart to be able to boot to another partition

Boot.ini
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\WINNT\SYSTEM32\BOOTPE.BIN="RECOVERY SYSTEM" /FASTDETECT


when i try and boot into WinPE2.0 i get the error missing NTLDR.

anyone else tried this and got it working???


#2 User is online   cdob 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 726
  • Joined: 29-September 05

Posted 30 May 2008 - 02:27 AM

View Postdevil270975, on May 29 2008, 03:11 PM, said:

Partition 1 - Windows XP-SP3
Partition 2 - WinPE2.0
Do you use one hard disk or two hard disks?

Quote

when i try and boot into WinPE2.0 i get the error missing NTLDR.

Partition was formated at XP. Partition boot code search a file ntldr.

Two choices:
copy file \bootmgr to \ntldr
or use vista bootsect.exe to write a vista boot code: bootsect.exe /nt60 X: /force

#3 User is offline   WreX 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 26-October 07

Posted 30 May 2008 - 06:58 AM

As far as I know you have to use the Vista boot loader to boot into PE 2.0. Rest assured, you can use it to boot into XP as well, you just have to configure the BCD (Boot Configuration Database) appropriately. My systems boot PE 2.0 from C: into RAM and XP from D:. Here's the batch file code I run after booting into PE (X:) from CD (K:) to configure the boot loader (you have to manually add bootsect.exe from the WAIK folder to your PE WIM):
 
xcopy K:\BOOT\*.* /e /f /y C:\BOOT\
copy K:\BOOTMGR C:\
IF EXIST C:\BOOT\BCD DEL C:\BOOT\BCD
IF NOT EXIST C:\TEMP MD C:\TEMP
IF EXIST C:\TEMP\BCD DEL C:\TEMP\BCD
bcdedit -createstore C:\TEMP\BCD
bcdedit -store C:\TEMP\BCD -create {bootmgr} /d "Boot Manager"
bcdedit -store C:\TEMP\BCD -set {bootmgr} device boot
bcdedit -store C:\TEMP\BCD -create {ramdiskoptions} /d "WinPE"
bcdedit -import C:\TEMP\BCD
bcdedit -set {ramdiskoptions} ramdisksdidevice partition=C:
bcdedit -set {ramdiskoptions} ramdisksdipath \BOOT\BOOT.sdi
for /f ""tokens=3"" %%a in ('bcdedit -create /d "WinPE" -application osloader') do set guid=%%a
bcdedit -set %guid% device ramdisk=[C:]\WINPE\WINPE.WIM,{ramdiskoptions}
bcdedit -set %guid% path \WINDOWS\SYSTEM32\BOOT\WINLOAD.EXE
bcdedit -set %guid% osdevice ramdisk=[C:]\WINPE\WINPE.WIM,{ramdiskoptions}
bcdedit -set %guid% systemroot \WINDOWS
bcdedit -set %guid% winpe yes
bcdedit -set %guid% detecthal yes
bcdedit -displayorder %guid% -addlast
bcdedit -create {ntldr} /d "Windows XP Professional"
bcdedit -set {ntldr} device boot
bcdedit -set {ntldr} path \ntldr
bcdedit -displayorder {ntldr} -addfirst
bcdedit -default {ntldr}
bcdedit -timeout 5
bootsect /nt60 C: 

Of course, you still have to have the NTLDR, NTDETECT.COM, and boot.ini files in the root of C:, and your boot.ini should only point at your XP installation.

#4 User is offline   devil270975 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 368
  • Joined: 31-July 03

Posted 30 May 2008 - 07:43 AM

View Postcdob, on May 30 2008, 09:27 AM, said:

Two choices:
copy file \bootmgr to \ntldr
or use vista bootsect.exe to write a vista boot code: bootsect.exe /nt60 X: /force


thanks for the info, how do i copy \bootmgr to \ntldr????

I use 1 HDD, 3 partitions
it is a laptop.

i used this cmd script to install WinPE2.0 onto my Partition

configPE2.cmd
imagex /apply c:\winpe_x86\ISO\sources\boot.wim 1 X:
xcopy C:\winpe_x86\ISO\boot\*.* /e /f X:\boot\
copy C:\winpe_x86\ISO\bootmgr X:
bootsect /nt60 X: /force


PartitionID 1 {8GB} = X: (recovery partition, the 1 i want WinPE2.0 on)(Currently Has BartPE Installed)
PartitionID 2 {10GB}= C: (System Partition, system, boot, active)
PartitionID 3 {75GB}= D: (Data - where i keep all my files)

tried using bootsect /nt60 X: /force, it boots to Boot Manager but says BCD Error????
i'm assuming if i can't get it to work then to put it back i have to use bootsect /nt52 X: /force????

@WreX

I want to boot into WinPE2.0 without RAM Load, also i dont want Vista boot manager to manage my
boot sequence i just want to be able to boot to it from xp's boot.ini.

failing all of this, i want to be able to use imagex from bartpe to capture and apply images.

This post has been edited by devil270975: 30 May 2008 - 09:00 AM


#5 User is offline   WreX 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 26-October 07

Posted 30 May 2008 - 09:25 AM

You have no choice about the Vista Boot Loader and PE 2.0. PE 2.0 is Vista and cannot be booted with boot.ini and NTLDR. The "bootsect /nt60" command tells the MBR of the hard disk that you want to use the Vista Boot Loader, and "bootsect /nt52" tells it you want NTLDR. If you absolutely must use boot.ini, you must use PE 200x instead of 2.0.

If you choose to use PE 2.0, you can easily modify my commands to remove the "boot into RAM" method by following Microsoft's documented guides. However, this will prevent you from partitioning the disk you boot from or formatting the partition you boot from.

#6 User is offline   devil270975 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 368
  • Joined: 31-July 03

Posted 30 May 2008 - 10:25 AM

thanks for all your help, i have managed to sort it now between the replies on here and a post on another site.
will post how i did it later when i have more time, am i right in thinking if i put BCDEDIT -store X:\boot\BCD -set %guid% winpe no
it makes the registry NON VOLATILE, ie it saves changes???? im sure i read it somewhere but for the life of me cannot find the site again.
also, i know i am cheeky, but, how do i add vbruntimes???

Lee.

#7 User is online   cdob 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 726
  • Joined: 29-September 05

Posted 30 May 2008 - 11:55 PM

View Postdevil270975, on May 30 2008, 08:43 AM, said:

tried using bootsect /nt60 X: /force, it boots to Boot Manager but says BCD Error????
Configure the BCD (Boot Configuration Database) to boot from X:.

View PostWreX, on May 30 2008, 09:25 AM, said:

PE 2.0 is Vista and cannot be booted with boot.ini and NTLDR.
Yes, ntldr istself can't chainload another OS.
However ntldr can chainload another partition boot sector(s), extracted to a file, e.g. C:\WINNT\SYSTEM32\BOOTPE.BIN
This partition boot code may load another OS.

Quote

The "bootsect /nt60" command tells the MBR of the hard disk that you want to use the Vista Boot Loader, and "bootsect /nt52" tells it you want NTLDR.
No, bootsect.exe dosn't change the MBR of the hard disk.
Bootsect does change the boot sectors of a partition. That way a file name bootmgr or file name ntldr is launched.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy