When you want to have a single USB stick with multiple operating systems, the end result must be a reliable USB drive that contains the operating systems you need. Here's how to do this with two tools: XBoot (using Windows 7) and UNetbootin (from within Linux). Both are simple, but the Linux version requires more manual work.
XBoot in Windows 7Requirements
- ISOs of the operating systems you want
The operating systems listed will not show up on your XBoot window unless you installed them.To add ISO images, open Explorer and drag and drop the ISOs into XBoot. Some ISO images (e.g., Fedora 16) are automatically recognized. When you drag an unrecognized ISO into XBoot, a new window will appear (Figure B) where you must select the ISO (or the closest distribution) from a drop-down. For example, I selected Ubuntu for Bodhi Linux and Puppy Linux for MacPup. After you select the correct version from the drop-down, click Add This File. Figure B
XBoot window when you drag an unrecognized ISO into it.
After all ISOs are added (make sure their combined size does not exceed that of the USB drive), click the Create USB button near the bottom right corner of the main window. Once this completes the process, you can reboot the machine (making sure it will boot from a USB device) and enjoy your multiboot on a stick.
UNetbootin from within LinuxRequirements
- ISOs to be installed
- Download the UNetbootin tool for Linux.
- From a terminal window, give the downloaded file executable permissions with the command chmod u+x unetbootin-linux-XXX (where XXX is the architecture).
- Run UnNetbootin with the command ./unetbootin-linux-XXX (where XXX is the architecture).
- From the main window, select the distribution you want to install or use a downloaded ISO (Figure C).
- After UNetbootin completes the install of the first OS, reboot the machine to test the OS on the USB drive.
Make absolutely sure you select the right USB device from the Drive drop-down before you continue; otherwise, you could wipe out the wrong drive.
Now it gets a little tricky. You must copy everything from the USB drive to a new directory on your hard drive. Then, repeat the steps above, selecting the next OS you want on the USB drive.Now open two file manager windows: one to the USB drive and one to the newly created directory containing all the files from the first install you did on UNetbootin. You want to copy everything from the hard drive to the USB drive except the following:
In the folder on your desktop, you must open the syslinux.cfg file. From that file, copy the last four lines and paste them in the syslinux.cfg file on the USB drive. Those lines will look like this:
menu label DISTRIBUTION
kernel /vmlinuzappend initrd=/initrd.gz pmedia=cd
where DISTRIBUTION is the name of the distribution you originally installed.
You must copy the above four lines between the "label ubnentry1" and "label ubnentry2" entries. Make sure to relabel the "ubnenetryX" entries so they are in consecutive numerical order. After you make the necessary edits, close and save the file and reboot the system.
You should now have a multi-boot USB drive that is in working order. Wth a large enough USB drive, you can carry around any number of operating systems that serve numerous purposes.
Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website jackwallen.com.