I am trying to build something which need me to switch between Win PE and Win XP. My system has the following:
Disk 0
C: WinPE [Partition 1]
D: WinXP [Partition 2]
Disk 1
e: USB [WinPE]
Here i boot the uSB and let it load WinPE in ram. After this I am using the solution by Wrex described on this discussion [http://www.msfn.org/...6&#entry768846] where i do the following
xcopy e:\Boot\*.* /e/f/y c:\Boot
copy e:\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:
I also add NTLDR, NTDETECT.COM, and boot.ini files in the root of C: [I get these files from my windows xp cd]
My boot.ini file is as follows
[boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
Now when i execute this code and restart my machine, it starts my windows xp but after displaying the Windows XP logo it hangs on the windows xp blue screen [before it displays login screen]
I am really not sure what i am doing wrong here. I guess it could be something regarding the ndldr files i am using as i have never seen Windows XP start booting and hang in between.
Please help..........
~Chiraag



Help
Back to top











