I have read Joakim's instruction (http://sanbarrow.com/phpBB2/viewtopic.php?t=1695) multiple, but I don't get along with it, and therefore I don't get to work my ntldr-based Windows PE to boot from a WIM-File into RAM.
My Windows PE (based on Windows XP SP2) has the following folders:
- Documents and Settings
- I386
No problem to boot from a UFD in the old way (made a ntldr-based boot-sector on the UFD, renamed I386 to minint, copied setupldr.bin from I386 to the root of the UFD and renamed it to ntldr).
But now I tried to boot this Win PE with bootmgr and a WIM-File (like the bootmgr-based Win PE do).
I did the following steps:
1. Copied winload.exe and wininit.exe to I386\system32
2. Created a WIM-File (boot.wim) with the boot-flag with the directories Documents and Settings and I386
3. Made the following folders on the UFD: folder "boot" with the files BCD and boot.sdi; folder "sources" with the file boot.wim. Created the follwing BCD-File

When I boot from the UFD (USB Flash Drive) now, the Boot-Manager shows the Boot-Menu. When I select the entry "ERD Commander", it says "Windows is loading files..." and then stops with the error:
File: \I386\system32\config\system
Status: 0xc000000f
Info: Windows failed to load because the system regitry file is missing, or corrupt.

What I noticed:

When I boot from UFD a ntldr-based Win PE, the os makes the following assignment:
C:\ Hard Disk Drive
D:\ Optical Drive
X:\ USB Flash Drive
When I boot from UFD a bootmgr-based Win PE, the os makes the following assignment:
C:\ Hard Disk Drive
D:\ Optical Drive
E:\ USB Flash Drive
X:\ Structe of BOOT.WIM
What do I make wrong?
Thank's for help in advance!