EDIT: read post #31, to get better instructions.
Just got finished USB-Uber stick.
USB trippleboot containing UBCD, DOS & CentOS.
First I follow Markymoo's instructions:
A Multiple Partition USB Stick with Multi Boot OS
Scroll down for 5/4/2006 update
I wanted several operating systems on a USB stick and after many hours messing with syslinux, memdisk, grub4dos, xosl, freedos, avlgomgr, acronis os selector, ranish partition manager. I have succumbed. I first started out wanting to boot an iso off USB and ran into trouble loading large img with memdisk which I found out is due to a bug in msdos so I used freedos but things didn’t work out as planned and it’s a similar woe story’s with the rest. Acronis os selector lets you boot multiple os from one partition from different folders but don’t work great when it comes to dos.
I have 5 partitions on my USB stick and using the boot loader BootIt NG http://www.bootitng.com/bootitng.html This is a 30 day trial. There’s a iso boot image inside the zip you need to burn to cd.
Now I wasn’t happy just putting one os on my USB stick. I wanted linux and diagnostic tools etc.
I now have what I think is the easiest helpful solution below.
Ok XP can only see one partition on a removable USB but if change the USB driver to a fixed disk driver then XP will see it as a hard drive then we can have lay down multiple partitions as we like. Now open regedit and goto HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR
and double click on USBSTORE and you see a subkey below it, select the first subkey below USBSTORE and right click and select Copy Key Name
Here is mine, yours maybe different.
Now we need only need this part:
Copy and paste it temporarily into notepad.
You will now need this driver. http://www.xpefiles....wtopic.php?t=92
Unpack it to a folder on your desktop. Inside the folder is the file cfadisk.inf. You need to open this file and scroll down to you see the line %Microdrive_devdesc% = cfadisk_install, specific data
Now you need to replace all lines %Microdrive_devdesc% = cfadisk_install, specific data with
the line you copied from your registry like so.
%Microdrive_devdesc% = cfadisk_install,USBSTOR\Disk&Ven_Generic&Prod_USB_Flash_Disk&Rev_0.00
There could be more lines so replace all and save the file.
Goto Device Manager and click on disk drives. You see your USB listed, dbl click on it and goto the driver tab and click update driver and install from a specific location and choose the driver to install and click on Have Disk and browse to the cfadisk.inf file your modified driver on your desktop and force that to replace your existing driver. It might ask you to reboot. You should now have your USB showing as Local Disk
We want your first partition dos bootable so run HP USB Disk Storage Format Tool. I’m using version 2.1.8. Select your drive letter of your USB device and select "Create a DOS startup disk" and browse to your 98 boot disk folder. Click Start. Your USB will be formatted and 3 files will be copied from your dos startup files. You need to manually copy the rest of the 98 boot files to your USB drive.
You can now resize the drive (mines 512MB) and create multiple partitions. All partition software now sees it as a fixed disk. I used acronis disk director and resized the partition keeping the first dos bootable partition intact and made another 4 fat partitions so I had 5 in total.
Make sure your format all partitions as Primary not Logical.
So this way makes it easy to load multiple iso using ramdisk also.
After this I made another stick only containing UBCD, because when I use UBCD own script it wipes whole stick as 1 partition containing only UBCD.
- Windows XP or Vista (32-bit):
Connect small ~ 150 MB small USB stick to computer.
Mount UBCD and open command prompt, next go to the \tools\ubcd2usb folder and type ubcd2usb.bat D: E: (the D: is my cdrom and E: is stick).
Now I have 1 stick containing UBCD only and another stick which seems to be as local disk.
- WinImage software:
Next thing is that I read the UBCD stick with WinImage software. and after that I write the data to the other stick.
I notice that the other stick has now the data, but the MBR is missing, so I choose "edit master boot record properties" and save the mbr to bin file from UBCD stick to local disk and after that I import saved mbr to the other stick.
Now I have stick containing UBCD with plenty room on it.
I modify flags to hide UBCD partition just in case not to lose the partition and then create new partition for DOS I also give the boot flag to this partition.
- DOS boot
Now boot computer with DOS boot floppy and format the partition which created earlier, remember to format to bootable.
If everything went ok, if changed the boot flag with GParted I get either UBCD or DOS boot.
Now I have two boots on the stick.
Next I boot with CentOS 5.1 DVD and make custom partitioning. I create the OS root partition to the rest of stick (no swap or other partitions).
To the bootloader I add the hidden UBCD /dev/sda1 to the bootmenu and I choose advanced and install the bootloader to the /dev/sda3. Then I choose custom install on packages, and take everything else away but editors and BASE install. After I have installed the system, I used GParted to manage the flags once more. Now I put the boot flag to the /dev/sda3.
After reboot the stick finds GRUB, which has the other to boots (DOS and UBCD).
Sorry this bad English etc, hope this helps some ppl, who tries to do the same as I did. Enjoy.
Edited by MI4C, 17 July 2008 - 11:25 PM.