Update edit - still not fully working yet, see post below.
I GOT IT!!!
I am successfully running a Windows XP SP2 installation off of my USB stick.
I don't really know what I am doing, so this is a brute force method, but it works for me. Please help me to make it more elegant.
For this procedure you need:
Your USB drive
Your Windows installation source and
CodeBeetle's PeToUSB from
http://codebeetle.com/page.php?al=petousbFor the steps below I am assuming you are working from a PC with windows loaded on C:
1. Make a copy of your C:\boot.ini to boot.bak2. Navigate to your windows installation source and run a noreboot setup. For me from my CD it was
Start->Run and type
E:\I386\winnt32.exe /noreboot When prompted, choose Installation Type "New Installation"
At Setup Options - Advanced Options Check the box for "Copy Setup Files" to directory \WINDOWS
At Get Updated Setup files choose No
Thanks to FlyAKite and gosh at
http://flyakite.msfn.org/ for this part. Once all of the installation files have been copied. the installation will simply stop without a reboot. You will now have two new hidden directories on your PC,
C:\$WIN_NT$.~BT and
C:\$WIN_NT$.~LS . If you can't see them, go to Tools->Folder Options->View in Windows Explorer and choose to show hidden and operating systems files.
3. Once the installation has finished, delete C:\boot.ini and rename C:\boot.bak to C:\boot.ini4. Build with PeToUSB as follows Insert your USB stick
Start
PeToUSB In PeToUSB, choose your USB stick drive,
Make sure Enable Disk Format is checked, and
Point Source Path to your installation source (for me it was my CD drive, E:\) then
Click Start, Yes, Yes to run PeToUSB.
5. When PeToUSB is finished, delete everything off of the USB stick EXCEPT NTLDR
NTDETECT.COM
WIN51
WIN51IP
WIN51IP.SP2Your WIN files may vary depending upon the service pack level of your install source.
Yes, even delete the
\minint directory. All we really obtained from this build is
NTLDR, this is where someone smarter than I could simplify the process and save some time if they could help obtain a proper
NTLDR another way.
6. Copy the directories C:\$WIN_NT$.~BT and C:\$WIN_NT$.~LS onto your USB stick7. Create a directory \minint on your USB stick8. Copy C:\$WIN_NT$.~BT\TXTSETUP.INF to the new \minint directory on your USB stickSteps 7 and 8 are another place where a proper
NTLDR file that does not point to
\minint would help create a more correct method.
9. Delete the following files from the \$WIN_NT$.~BT directory on your USB stick (thanks again to
FlyAKite):
BOOTSECT.DAT
migrate.inf
winnt.sif10. On your PC hard drive, rename C:\$WIN_NT$.~BT to C:\$WIN_NT$.~BT.OLD and C:\$WIN_NT$.~LS to C:\$WIN_NT$.~LS.OLDWe're hanging on to these files for now in case there are any problems, but we need to change the names. Otherwise when running from your USB stick you may actually be copying the setup files off of your hard disk instead of the stick. I found this out when one time I pulled out my stick during installation - and it kept running!
11. Try it! It if works, delete the two directories in step 10 to clean up.Hope this works for you, please give it a shot. Any suggestions and improvements are more than welcome, I could really use help with the
NTLDR issue so that the time-consuming PE build would not be needed. I'll be glad to answer any questions I can, but like I said, this was a blind squirrel/acorn "hit and miss" for me!
Pat