benjt Posted June 19, 2009 Share Posted June 19, 2009 (edited) Here is my setup.Partition 1 is 10GB with Win PE 2.0 configured to restore a Ghost image to partition 2. It is type 0x27 (hidden/OEM). This is the active partition. Basically it is a homemade restore partition.I used bcdedit to configure a dual-boot configuration according to the M$ walkthroughs as follows:bcdedit -createstore c:\temp\bcdbcdedit -store c:\temp\bcd -create {bootmgr} device bootbcdedit -store c:\temp\bcd -set {bootmgr} device bootbcdedit -store c:\temp\bcd -create /d "WINPE" -application osloaderbcdedit -import c:\temp\bcdbcdedit -set <GUID copied from above> osdevice bootbcdedit -set <GUID copied from above> device bootbcdedit -set <GUID copied from above> path \windows\system32\winload.exebcdedit -set <GUID copied from above> systemroot \windowsbcdedit -set <GUID copied from above> winpe yesbcdedit -set <GUID copied from above> detecthal yesbcdedit -displayorder <GUID copied from above> -addlastbcdedit -create {ntldr} /d "Windows XP"bcdedit -set {ntldr} device partition=x:bcdedit -set {ntldr} path \ntldrbcdedit -displayorder {ntldr} -addfirstbcdedit -timeout 10bcdedit -default {ntldr}Partition 2 is about 76GB with a sysprepped version of Windows XP. I copied ntldr, boot.ini, and ntdetect.com from the XP partition to the root of the WinPE partition.Here's the problem. At first boot it works great. XP boots and mini setup runs as expected. However after mini setup finished and it automatically reboots, XP will not boot again. When you select the option to boot XP you get the following error:Windows failed to start. A recent hardware or software change might be the cause.File: \ntldrStatus: 0xC000000EInformation: The selected entry could not be loaded because the application is missing or corrupt.Booting into WinPE and running bcdedit reveals that the "device" entry for "Windows Legacy OS Loader" has changed from "partition=X:" to "unknown." Re-issuing the command "bcdedit -set {ntldr} device partition=x:" fixes the issue. However I cannot use a manual process for each system. I must either configure some sort of automated fix (e.g. a script that runs at first boot) or prevent the issue from occurring in the first place.Thanks in advance for any help. Edited June 20, 2009 by Tripredacus Merged topics Link to comment Share on other sites More sharing options...
WreX Posted June 23, 2009 Author Share Posted June 23, 2009 bcdedit -create {ntldr} /d "Windows XP"bcdedit -set {ntldr} device partition=x:bcdedit -set {ntldr} path \ntldrbcdedit -displayorder {ntldr} -addfirstbcdedit -timeout 10bcdedit -default {ntldr}You don't need to specify the partition for NTLDR, C:\BOOT.INI determines what partition XP will boot from. I use the command "bcdedit -set {ntldr} device boot". Link to comment Share on other sites More sharing options...
benjt Posted June 24, 2009 Share Posted June 24, 2009 bcdedit -create {ntldr} /d "Windows XP"bcdedit -set {ntldr} device partition=x:bcdedit -set {ntldr} path \ntldrbcdedit -displayorder {ntldr} -addfirstbcdedit -timeout 10bcdedit -default {ntldr}You don't need to specify the partition for NTLDR, C:\BOOT.INI determines what partition XP will boot from. I use the command "bcdedit -set {ntldr} device boot".That appears to have fixed my issue. Thanks very much. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now