Important: Many references and information was taken, used, and edited from the following creators: Ben Burrows (UBCD4Windows), Victor (UBCD), and Adrian Stanciu (adding Linux Boot CD).
Last Updated: 9-28-06
IMPORTANT NOTICE!: With version 3.0+ of the project, this guide is old, outdated, and unneccessary (except for Appendix B ). With the new MultiBoot plugin included in the project, there is an easy option to include the UBCD there which does all of the work for you. Please use that method from now on and make a new post in the forums if you have any problems with it. We will NOT support this post/guide anymore until further notice. Thank you.

1. Build the UBCD4Win (32-bit) using PE Builder as per standard instructions but don't create the ISO as that will not be used. Put the files from what PE Builder created into a folder of choice, such as C:\combocd\.
NOTE: Specific, detailed instructions for building the Windows Ultimate Boot CD are in Appendix A.
2. Find the bootsect.bin file in root of your combo CD directory and copy it to a different filename (such as temp.bin). Then rename it (the copied temp file, NOT the original bootsect.bin) to PRO1.DAT.
3. Extract the files from UBCD (16-Bit) ISO to your combo CD folder, such as C:\combocd\, overwriting files when prompted. You can use ISOBuster or WinRAR (or similar program) again to exact these files.
NOTE: This is also the time to add any of your own custom boot disks to the UBCD part of this combo CD. Use a program such as Floppy Image or WinImage to make a compatible uncompressed image of your boot disk you want to add. You can also add a custom Linux boot CD as well. More instructions are in Appendix B.
4. Edit the autorun.inf file in your combo CD folder so it looks as follows:
[autorun] open=Programs\nu2menu\nu2menu.exe icon=ubcd.ico
5. Now edit the C:\combocd\boot\menus\main.scn file adding a reference for the UBCD4Windows. Or you can just edit the C:\combocd\boot\menus\custom.scn file instead. An example (ONLY) of my main.scn and custom.scn files is as follows:
main.scn
# # Timeout after 5 mins # set timer = 5 # # Main Menu # main_menu: set textColor = color[white on black] clear set textColor = color[yellow on blue] print " ULTIMATE BOOT CD VER 3.3 " print " http://www.ultimatebootcd.com/ " print " ***Modified for YOU! - See Details Below*** " set textColor = color[white on red] print " [Main Menu] " set textColor = color[white on cyan] print " This CD includes the UBCD, the UBCD 4 Windows, and other utilities all in one! " print " The UBCD4Win is ver 2.5 with Driver Add-on ver 1.1 - http://www.ubcd4win.com/ " print " Visit the User-defined Tools section for the custom tools added for YOU!. " print " " print " [F1] Mainboard Tools " print " [F2] Hard Disk Tools " print " [F3] Filesystem Tools " print " [F4] Other Tools " print " [F5] User-defined Tools - UBCD4Win,ZEN,BCWipe,NetBoot" print " [F6] DOS/Linux Boot Disks " if file[\INSERT\INSERT]; else set textColor = color[brightgrey on cyan] print " [F7] INSERT for UBCD - Like the UBCD4Win Linux-style " set textColor = color[white on cyan] print " " print " [F8] Boot first hard disk " print " [F9] Boot second hard disk " print " [F10] Drop to console " print " " print " Kudos to Victor, the creator of the UBCD and Ben, the creator of the UBCD4Win! " print " Last Updated: 05-03-2005 " print " Updated By: Randy Senn - LittlBUGer " set textColor = color[white on blue] print " Please select an item (First hard disk will boot after $(timer) minutes) " set textColor = color[white on black] # # Actions # getkey 60 goto timeout clear if ($lastKey == key[f1]); then script mboard.scn if ($lastKey == key[f2]); then script hdd.scn if ($lastKey == key[f3]); then script filesys.scn if ($lastKey == key[f4]); then script others.scn if ($lastKey == key[f5]); then script custom.scn if ($lastKey == key[f6]); then script bootdsk.scn if file[\INSERT\INSERT] then if ($lastKey == key[f7]); then script insert.scn if ($lastKey == key[f8]); then script boothdd0.scn if ($lastKey == key[f9]); then script boothdd1.scn if ($lastKey == key[f10]); then goto console goto main_menu # # Decrement timer and refresh display, or boot from HDD0 if timeout # timeout: if $timer == 0; then script timeout.scn set timer = $timer - 1 goto main_menu # # Drop to console # console: cd / clear help end
NOTE: You must also add references to the custom added boot disks/Linux CD you added as well in either the main.scn file or preferably the custom.scn file somewhere. There are many examples to follow how to do this. More information can be found in Appendix B.
custom.scn
# # User-defined Tools # custom_menu: set textColor = color[white on black] clear set textColor = color[yellow on blue] print " ULTIMATE BOOT CD VER 3.3 " print " http://www.ultimatebootcd.com/ " print " " set textColor = color[white on red] print " [User-defined Tools] " set textColor = color[white on cyan] print " " print " [F1] The Ultimate Boot CD 4 Windows v 2.5 - Ultimate PC repair utility " print " [F2] ZENWorks Imaging Boot CD v 6.5 (Linux-configurable) - HD imaging utility " print " [F3] BCWipe - Hard Drive wiping utility (uses DOD standard) " print " [F4] Universal Network Boot Disk v 5.2 - Great utility with Ghost, etc. " print " [F5] Windows 98SE Boot Disk (just in case) " print " " print " " print " " print " " print " " print " " print " " print " " print " " print " " print " " print " " print " " set textColor = color[white on blue] print " Please select an item (ESC returns to main menu) " set textColor = color[white on black] # # Actions # getkey clear if ($lastKey == key[f1]); then chain /PRO1.DAT # if ($lastKey == key[f2]); then isolinux /ZEN/kernel.zen 5 initrd=/ZEN/initrd.gz rw reboot=w if ($lastKey == key[f2]); then diskemu \images\bootcd.iso if ($lastKey == key[f3]); then memdisk \images\BCWIPE.IMG if ($lastKey == key[f4]); then diskemu \images\UNetBoot.img if ($lastKey == key[f5]); then memdisk \images\98SEBOOT.IMG if ($lastKey == key[esc]); then script main.scn goto custom_menu
NOTE: Remember that, in the custom.scn file, you MUST add the references for each key pressed in telling the CD what to run. Meaning that, in the above example, the line:
if ($lastKey == key[f1]); then chain /PRO1.DAT
is telling the CD that when the F1 key is pressed, that it should basically run the PRO1.DAT file which in turn runs the UBCD4Win. You can also use the other f-key lines from the example above as a guide for adding other disks/images/programs.
EXTRA NOTE: It seems that now, with UBCD 3.3+, the command 'diskemu' can now boot certain ISOLinux and SYSLinux bootable .iso images/files. It seems it was made for Acronis True Image (and similar boot CDs) and I've tested it with Novell ZENWorks Imaging boot CD and it works great (though you must also include the SETTINGS.TXT and LINUX3.TGZ files from the boot CD on the root of the combo CD). The code, compared to the above 'then bcdw /ISOLINUX.BIN', is as follows:
then diskemu \images\bootcd.iso
if you have the .iso in the images folder (where all of the other UBCD images are) and it's named 'bootcd.iso'. I hope this helps a bit.

6. After everything else is completed, you can now burn the compilation to a CD using the following settings for Nero Burning ROM (or a similar CD Burning program):
UPDATE: Scroll down a bit to see the mkisofs command line method to make an ISO instead of doing it manually through Nero.

a. Open Nero Burning ROM. When the New Compilation window appears, choose CD-ROM (boot) from the left pane.
b. Don’t worry about the settings quite yet and just click the New button.
c. Now add all of the files in the combo CD folder (such as C:\combocd\) to the compilation window/pane (as simple as drag and drop).
d. Now click on the Burn icon near the top (the one with the fire-match). In this window, apply the following settings:
1. Under the Boot tab, apply the following settings (make sure to check the box to Enable Expert Settings):
-Image File = C:\combocd\boot\loader.bin
-Kind of Emulation = No Emulation
-Boot Message: Whatever you want, such as “THE UBCD Combo CD”
-Load Segment of Sectors = 07C0
-Number of Loaded Sectors = 4
2. Now, under the ISO tab, apply the following settings:
-File name length: Max. of 31 chars (ISO level 2)
-Format: Mode 2 / XA
-Character set: ISO 9660 (standard)
-Check the box next to Joliet
-Check all 3 boxes under Relax ISO Restrictions
-Check the box under Relax Joliet Restrictions
3. Under the Label tab, make sure the box Also use the ISO 9660 text for Joliet is checked and input a label, such as “THE_UBCD_COMBO_CD”
4. Under the Burn tab, apply the following settings:
-The Write and Finalize CD boxes are checked
-Write Speed is set to Max
-Write Method is Disc-At-Once
Now click the Burn button and let it go. Once it’s finished, you should have a bootable UBCD combo CD ready for use. :-)
6.a. If you do not understand the Nero instructions above or want to make an ISO through an easier method, you can use the following mkisofs instructions through the command line, or a batch file, to make a workable ISO of which you can burn later:
"C:\pebuilder313\mkisofs.exe" -joliet-long -iso-level 2 -N -d -relaxed-filenames -duplicates-once -D -boot-load-seg 0x7C0 -boot-load-size 4 -o "C:/combocdiso/THE_UBCD_COMBO.iso" -b "boot/loader.bin" -no-emul-boot -volid "THE_UBCD" -sysid "Win32" "C:/combocd/"
NOTE: Remember to change the code within the quotes above to match how your files and folders are laid out.
APPENDIX A
Building the UBCD4Win:
NOTE: For more complete instructions, please visit the main How to Build page.

You have a CD Burner and a Windows XP CD with SP1. You have downloaded Bart PE and the UBCD4Windows with possible updates.
1. Install Bart's PE: Extract the pebuilder3032.zip file into the folder of your choice (for example C:\pebuilder3032). It is suggested that you extract the files to a folder with NO spaces, if it differs from the above example, otherwise later errors may occur.
2. Go to your PE folder and delete or rename the folder named "plugin" (if you rename it, a good name is ORIG_plugin). I really recommend that you rename the original folder so that in the future if you find a need for something, you will still have it.
3. Extract the UBCD4Win exe file into your PE folder. It is very important that you extract the file in the appropriate folder. It should be your root folder for Bart's PE (for example, direct it to extract to C:\pebuilder3032). The UBCD4Win exe file is just a few files that will be added or updated in the PE folder and a new "plugin" folder packed with all my goodies. Click Yes to overwrite if prompted.
4. Insert your Windows XP CD with SP1 into your CD-ROM drive and launch PE Builder.
Bart PE Instructions/Help - Building the UBCD4Windows
1. Run Bart PE---Double click the "pebuilder.exe" file.
2. Now sometimes when I run Bart PE it has a screen asking what type of build I would like to do, sometimes it doesn't. For the build type, select "Manual Build" and click Next.
3. Next is the Welcome screen. Click next.
4. Now is the Source screen. You only need to worry about the "Path to Windows installation files." Type in the drive letter for the CD drive that has your XP CD in it, then click the "check" button below the path box to verify the correct XP CD has been inserted. You will get a dialogue box that informs you if the CD or path is a valid source. If so then click "Next" and do not worry about the "add files/folders...." path box. Also, if you are using an XP SP1 CD, it is suggested that you copy its contents to a folder on your hard drive (such as C:\xpsp1cd) and then point PE Builder to that folder. Make sure before you copy the CD to your hard drive to enable the Show all System/Hidden files option (under Tools -> Folder Options -> View tab in any folder window).
5. Next is the Plugins screen. All of my plugins are set to be installed by default except for PPOE for Windows 2k3. There is no need for you to change any of these plugins.
6. Next is the Output screen. It should say for the Output directory: "D:\pebldr." This is just a folder Bart PE will create to work in to build your compilation. It is suggested that you output to a folder with NO spaces if you want to change it (such as C:\pebldr). "Create ISO Image" should NOT be checked for this combo CD.
7. You may get another screen saying the above folder does not exist. Just click Yes.
8. Finally is the Build screen. PE Builder will now create the compilation of files which will then be ready to use for the rest of the instructions while making this combo CD.
APPENDIX B
The adding of DOS boot disks (such as BCWipe):
Customizing Ultimate Boot CD
NOTE: For more complete instructions, please visit the UBCD's main Customization page.

This section talks about how to create your own customized Ultimate Boot CD, tailored to your specific needs.
You should have a directory structure that looks like this (only somewhat if you are making this combo CD):
c:\combocd\ boot\ cdsh.bin loader.bin cdshw.com cdshell.ini fonts\ [Various .f16 files] menus\ [Various .scn files] modules\ [Various .csm files] docs\ dosapps\ freesco\ images\ [Various .img files] INSERT\ isolinux\ licenses\ scsi\ tools\ ubcd\ autorun.inf ubcd.ico
You can now customize the Ultimate Boot CD by adding your own floppy images to the CD. Floppy disk images can be created from the physical floppy disks themselves by using utilities such as rawread ( http://213.158.115.5...bcd/rawread.zip ), or Floppy Image ( http://www.woundedmo...loppyimage.html - you need to go to "Settings", and select "Create compatible IMG files").
Place your personal floppy disk images under C:\combocd\images\. Then edit C:\combocd\boot\menus\main.scn or custom.scn files to add each floppy disk image and its activation keystroke to the final ISO image. Use the existing sections as reference here. If you need more information, please refer to the CDShell documentation ( http://www.cdshell.org/functref.html ).
The adding of any ONE Linux boot CD (such as ZENWorks Imaging -- use method 2; it’s the best/easiest way):
Integrating any bootable Linux CD into Ultimate Boot CD
This guide will tell you how to integrate any bootable Linux CD (that is based on SYSlinux or ISOlinux) into the Ultimate Boot CD.
Method 1: Using a bootable floppy image
First you'll need to make a bootable floppy-image from the CD, if the CD doesn't have one already on it.
Some CDs have one (for Knoppix, use: boot.images/floppy_1.44.00). You might have to look for files with size 1474560 or 2949120 bytes.
If your CD doesn't have one already, you should build one. Follow my guide: Building a bootable-floppy for/from a bootable CD ( http://www.sadyc.net...eCD2floppy.html )
Now that you have the image, proceed as following:
1. Copy your newly made bootable floppy image file as /images/yourname.img in your UBCD root (such as C:\combocd\).
2. Edit the /boot/menus/main.scn or custom.scn files to add a reference to your newly-added floppy-disk image using "diskemu", such as:
if ($lastKey == key[k]); then diskemu /images/yourname.img
3. Copy everything from your CD in your UBCD root.
(In most cases, like Knoppix, you usually need to copy only one BIG file that's on the CD.)
Just make sure the file(s) will resemble the path on your original CD that you want to integrate.
4. You're done, so go make the UBCD image and burn it.
NOTES:
• The file and directory names are CASE SENSITIVE! Pay attention to this if you work under Windows, which doesn't care about case.
• UBCD root refers to where you unpacked the original UBCD disk (example: c:\combocd).
Method 2: Without a bootable floppy image
1. Copy everything (as it is) from the CD you want to integrate into the root of UBCD (such as C:\combocd\).
2. Edit the /boot/menus/main.scn or custom.scn files to add a reference to your new CD like this:
if ($lastKey == key[k]); then bcdw /isolinux/isolinux.bin
3. The command bcdw is VERY IMPORTANT in the previous step as it will not work at all otherwise. Also, when you copied the CD over to the combo CD root and it didn’t create an ISOLinux folder, then replace Step 2 with:
if ($lastKey == key[k]); then bcdw /isolinux.bin
4. Make the UBCD image and burn it.
NOTES:
• Only works for ISOLinux based CDs (look for the isolinux directory).
• You can add only one such CD, because the isolinux directory on more CDs will conflict each other.
And now you are done and you have a combo boot CD that has the UBCD, the UBCD4Windows, some useful other DOS boot disks, and a Linux boot CD! :-)
Other Notes/Questions:
Question: How can I add a two-disk utility such as Partition Magic to UBCD?
Follow these simple steps:
• Step 1: Create an image of the first disk.
• Step 2: Change the disk format of the image to 2.88MB using WinImage.
• Step 3: Copy all files from second disk to modified image using WinImage.
• Step 4: Add modified image to Ultimate Boot CD.
This post has been edited by LittlBUGer: 28 September 2006 - 09:14 AM