NOTE: I consider the following method outdated. There are currently better methods included with UBCD4Win and I recommend using pcuser's UBUSB.exe instead. It automates the steps below and includes a Kicker CD option which is great for computers that can't boot directly from USB. I'm no longer providing the zip file with the files needed for the below steps. If for some reason you need those files, send me a message. Thank you.
When I first started using UBCD4Win I set out to see if I could have a fully functioning version boot from my flash drive as I always carry it with me. At first I was able to get just the UBCD4Win environment to load, but was then able to have a functioning Windows Recovery Environment and boot menu. I thought I would share the steps I took to do this.
To get started we need to download some files:
- Download PeToUSB from GoCoding.com and extract it to C:\temp\PeToUSB.
- Download Syslinux from Kernel.org and extract it to C:\temp\syslinux.
Download the zip containing the boot menu files from my website and save it for later.
- Build UBCD4WIN as you normally would. If you plan on using the windows recovery console make sure Multiboot is turned on and the recovery console option is enabled.
Now the fun part:
- Run PeToUSB.exe from C:\temp\PeToUSB. Make sure your flash drive is selected in the drive selection list. If your drives are not showing up in the list, make sure you are logged in as an administrator. [dougham - 11/28/07] I would recommend to enable disk format and to select Enable LBA. I had some issues with Dell computers that were solved when I turned this on. This was causing a 0x007 BSOD. If you still receive this BSOD, try using the NTDETECT.COM, SETUPLDR.BIN, and RAMDISK.SY_ that are found on the Windows Server 2003 CD. [masterchi - 11/28/07] Enable file copy which will copy all of your UBCD4Win build files and the correct ntldr and NTDETECT files over. Press "Start" and let it run.
- Open a command prompt and change directory to C:\temp\syslinux\win32. Type “syslinux [your flash drive's letter]”. My flash drive was F so I typed:
syslinux F:If you don't see any errors you should be good to go.
- If you are going to be using the Windows Recovery Console make sure you have a CMDC directory in the root of your flash drive. If it’s not there, copy it over now (from your UBCD4WIN build directory) as the zip file in the next step will overwrite setupldr.bin with a modified version.
- Extract the zip file you downloaded from my site to the root of your flash drive.
- Delete the following files/folders from your flash drive’s root if they exist:
- Delete the temp directory your created in in step 1. It might be handy to keep PeToUSB and my .zip file around.
You are done! If you need to add or remove programs from the boot menu, you will need to edit syslinux.cfg in the syslinux folder (it may be hidden). The disk images for the programs are stored in the /syslinux/images directory. [masterchi - 11/28/07]
If you have any issues or questions please let me know. I hope this can be useful to people and help save all the time and research it took me to figure this out.
Last updated: 03/08/09
This post has been edited by hilander999: 08 March 2009 - 09:52 PM