QUOTE (paraglider @ Aug 11 2007, 04:46 AM)

Creating an entry for XP is different for creating an entry for Vista - you will need to use {ntldr} instead of {bootmgr}. Not sure what you are trying to achieve with the /import.
Everytime I have tried a line that contains partition=boot I get an error. I think it should be:
Bcdedit /store E:\boot\BCD /set <GUID> osdevice boot
After digesting the docs and your suggestions, I've gotten a little farther, but haven't quite hit success yet; here's an update...
TRIAL 1Upon querying the BCD for my working WinPE 2.0 USB flash boot drive, I noticed that the default boot loader settings read:
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
In trying to create the new boot loader for BartPE, I did at first try the "osdevice partition=boot" param, and found that this did produce an error, as you said, ParaG. So I modified the method - based on the fact that the above "devices" pointed to "ramdisk" - to the following (where E: is the USB drive under Vista):
bcdedit /store E:\boot\BCD /create {ntldr} /d "Legacy OS Loader"
bcdedit /store E:\boot\BCD /set {ntldr} device boot
bcdedit /store E:\boot\BCD /create /d BartPE /application osloader
This last step returns a GUID, which is used in the following steps...
bcdedit /store E:\boot\BCD /set <GUID> osdevice boot
bcdedit /store E:\boot\BCD /set <GUID> device ramdisk=[boot]
bcdedit /store E:\boot\BCD /set <GUID> path \i386\setupldr.bin
bcdedit /store E:\boot\BCD /set <GUID> systemroot \windows
bcdedit /store E:\boot\BCD /set <GUID> winpe yes
bcdedit /store E:\boot\BCD /set <GUID> detecthal yes
bcdedit /store E:\boot\BCD /displayorder <GUID> /addlast
I figured this was a long shot ... and predictably, upon booting from this USB drive - although I did see the
BartPE option appear in the boot options - selecting Bart caused the error:
"Windows failed to start"
Status: 0xc000000d
Info: The boot selection failed because a required device is inaccessible
TRIAL 2Next I tried to replace all partition and drive pointers with the "boot" device, as so:
bcdedit /store E:\boot\BCD /create {ntldr} /d "Legacy OS Loader"
bcdedit /store E:\boot\BCD /set {ntldr} device boot
bcdedit /store E:\boot\BCD /create /d BartPE /application osloader
Last step returns GUID ... set bcdGUID = {...}
bcdedit /store E:\boot\BCD /set %bcdGUID% osdevice boot
bcdedit /store E:\boot\BCD /set %bcdGUID% device boot
bcdedit /store E:\boot\BCD /set %bcdGUID% path \i386\setupldr.bin
bcdedit /store E:\boot\BCD /set %bcdGUID% systemroot \i386
bcdedit /store E:\boot\BCD /set %bcdGUID% winpe no
bcdedit /store E:\boot\BCD /set %bcdGUID% detecthal yes
bcdedit /store E:\boot\BCD /displayorder %bcdGUID% /addlast
Boot into this USB config, access BartPE, and this time I got quite a bit further; the following message flashed on the screen, indicating BartPE was at least now
trying to boot ... but it merely flashed on screen for 1/2 sec, followed immediately by a reboot:
Setup is inspecting your computer's hardware configuration...
NTDETECT failed
TRIAL 3I then added (rather than replacing the prior boot entry) the following:
Bcdedit /store e:\boot\bcd /create {legacy} /d “BartPE-legacy”
Bcdedit /store e:\boot\bcd /set {legacy} device boot
Bcdedit /store e:\boot\bcd /set {legacy} path \i386\setupldr.bin
Bcdedit /store e:\boot\bcd /displayorder {legacy} /addlast
No change - same result as before, "NTDETECT Failed."
So now I'm stuck, and for that matter tired of thinking of this for the day - if anyone has any suggestions, I'm all ears! Thanks!
Oh, the current state of the BCD is as follows:
CODE
[b]C:\>bcdedit /store e:\boot\bcd /enum[/b]
Windows Boot Manager
--------------------
identifier {bootmgr}
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {default}
displayorder {default}
{9e7b4fe9-4ab0-11dc-b10b-0016412825bd}
{ntldr}
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 {9e7b4fe9-4ab0-11dc-b10b-0016412825bd}
device boot
path \i386\setupldr.bin
description BartPE
osdevice boot
systemroot \i386
detecthal Yes
winpe No
Windows Legacy OS Loader
------------------------
identifier {ntldr}
device boot
path \i386\setupldr.bin
description Legacy OS Loader