I do have a bootable version of UBCD4WIN on my USB Stick. Currently I'm using an "Apacer HANDY SENO HT203"-usb stick with 2 GB of space.
The main way of making your USB Stick bootable, or better said preparing it for booting a PE Version (UBCD4WIN, BartPE etc.), is the following:
1.) Download the Hitachi Microdrive Filter (from XPEfiles.com). --> Download!
When you install this driver for your usb stick it will be displayed and treated as a fixed (-a local) disk, not a removable. This way you can format the Stick with the Windows Partition manager and e.g. split up your usb stick in as many partitions as you like.
When you downloaded the filters from XPEfiles, extract the contents to a hard drive. Open cfadisk.inf and edit the following section:
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC801
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC815
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC915
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC801
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC815
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC915
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC501
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC601
; debug on VMWare/special drive
; %Microdrive_devdesc% = cfadisk_install,IDE\DiskVMware_Virtual_IDE_Hard_Drive___________00000001
; %Microdrive_devdesc% = cfadisk_install,IDE\DiskIC25N040ATCS04-0________________________CA4OA71A
to
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,
Now add ID specific to your usb stick. To find the ID insert your USB stick and use REGEDIT to check the value for your device in
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR registry key
For Kingston DataTraveler the key is
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_Kingston&Prod_DataTraveler_2.0&Rev_PMAP
There will be an entry under a subkey for HardwareID. Open this and there will be a string of values - for the kingston Datatraveller values are:
USBSTOR\DiskKingstonDataTraveler_2.0PMAP
USBSTOR\DiskKingstonDataTraveler_2.0
USBSTOR\DiskKingston
USBSTOR\KingstonDataTraveler_2.0P
KingstonDataTraveler_2.0P
USBSTOR\GenDisk
GenDisk
We only need to use the first value in the HardwareID string - in this case USBSTOR\DiskKingstonDataTraveler_2.0PMAP. Now copy this value into the [cfadisk_device] section in cfadisk.inf. My new cfadisk.inf contains the following code:
[Version]
Signature="$Windows NT$"
Class=DiskDrive
ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}
Provider=%HGST%
LayoutFile=layout.inf
DriverVer=12/14/2002,1.00.0000.1
[Manufacturer]
%HGST% = cfadisk_device
[DestinationDirs]
cfadisk_copyfiles=12 ; %SystemRoot%\system32\drivers
gendisk_copyfiles=12 ; %SystemRoot%\system32\drivers
[cfadisk_copyfiles]
cfadisk.sys
[gendisk_copyfiles]
disk.sys
; ---------------------
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskKingstonDataTraveler_2.0PMAP
[cfadisk_addreg]
HKR,,"LowerFilters",0x00010008,"cfadisk"
[cfadisk_install]
CopyFiles=cfadisk_copyfiles,gendisk_copyfiles
[cfadisk_install.HW]
AddReg=cfadisk_addreg
[cfadisk_install.Services]
AddService=disk,2,gendisk_ServiceInstallSection
AddService=cfadisk,,cfadisk_ServiceInstallSection
[gendisk_ServiceInstallSection]
DisplayName = "Disk Driver"
ServiceType = 1
StartType = 0
ErrorControl = 1
ServiceBinary = %12%\disk.sys
LoadOrderGroup = SCSI Class
[cfadisk_ServiceInstallSection]
DisplayName = "CompactFlash Filter Driver"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\cfadisk.sys
LoadOrderGroup = Pnp Filter
; -----------------------
[Strings]
HGST = "Hitachi Global Storage Technologies"
Microdrive_devdesc = "Hitachi Microdrive"
Once cfadisk.inf has been edited with your ID string you will need to update the driver in windows. Open Device manager and check for your USB drive in "Disk Drives". Right click on the entry for your drive and select option to update driver.
* Don't use windows update
* Install from a list or specific location
* Don't search. I will choose the driver to install
* Have disk
* Browse to location of edited cfadisk.inf
Update and restart windows
If the driver installed successfully your USB stick should now be mounted as a Local Disk not Removable Disk
2.) Download the HP USB Disk Storage Format Tool from the Hewlett-Packard Company (HPUSBFW.EXE). --> Download!
Format your USB Stick like this:
Device = your USB Drive
File System = FAT
Leave all other settings empty
START
3.) Download GrubInstall (Dateien.zip). --> Download!
Extract the archive
Dateien.zip to your hard drive. The only files that are important for you are the following:
----\grubinst\grubinst_gui.exe
----\grubinst\grldr
----menu.lst (<-- Entries in the menu.lst will be displayed in the multiboot menu of grub4dos.)
----memtest.bin (<-- Only necessary if you want to integrate memtest in your multiboot menu. If you do, simply copy it with
grldr and
menu.lst to the root of your USB Stick. If you
don't want to integrate memtest, just leave it alone (i.e. don't copy it to your USB Stick) and remove the multiboot-entry for memtest in your menu.lst!)
Run
grubinst_gui.exe. Select "Disk". Your USB Stick as well as your local hard drive will be displayed as (hd0) or (hd1). Find out which one is your USB Stick by removing and reconnecting your USB Stick. Leave all other settings empty and hit
Install.
This will install the grub4dos mbr to your USB Stick. Now simply copy the files
grldr and
menu.lst to the root of your USB Stick.
Open the menu.lst with the notepad and remove the following entry:
title Vista PE
find --set-root /bootmgr
chainloader /bootmgr
Now change the following entry:
title LiveXP
find --set-root /i386/SETUPLDR.BIN
chainloader /i386/SETUPLDR.BIN +1
to
title UBCD4WIN
find --set-root /minint/SETUPLDR.BIN
chainloader /minint/SETUPLDR.BIN +1
This way you change the name in the boot menu from
LiveXP to
UBCD4WIN.
You have to replace
i386 with
minint because when copying UBCD4WIN to your USB Stick with the plugin
peinst, peinst will automatically rename the folder
i386 to
minint.
4.) Install UBCD4WIN to your USB Stick.
Now start the UBCD4WINbuilder.exe and build a version of UBCD4WIN. When this process has finished, navigate to
\UBCD4WIN\BartPE\programs\peinst\ and run
peinst.cmd.
1. --> Enter
1 to change the source path of your BartPE files. Simply drag and drop the folder \UBCD4WIN
\BartPE\ in the peinst command window.
2. --> Enter
2 to change the target path. This should be the root of your USB Stick. Thus simply enter the drive letter of your USB Stick (e.g.
H:).
3. --> Enter
5 and then
1 to install UBCD4WIN to your USB Stick.
As soon as peinst finished copying all the files to you USB Stick you are only one step away from your own bootable UBCD4WIN-USB-Stick:
Navigate to the
\minint\-folder on your USB Stick and copy the files
ntdetect.com and
txtsetup.sif to the root of your USB Stick. You will have to overwrite the
ntdetect.com which already exists in the root of your USB Stick.
5.) You have successfully created your own bootable USB Stick with UBCD4WIN on it!!!
Now simply restart your computer and set your USB Stick as the first boot device. Select UBCD4WIN from the multiboot menu and boot it goddamn!!!
I hope this is a help to those who try to boot UBCD4WIN from their USB Stick.