Boot Multiple ISO from USB via Grub2 using Linux
Boot ISO Files directly from USB using Grub2 from Linux. Here is one way to create a Multiboot USB Flash Drive from a running Ubuntu (I used the Live CD). You may eventually need a large Flash Drive or USB Hard Drive in order to include every bootable ISO entry. I will add more Bootable ISO files to the grub.cfg file as I find time to test them. Contact me to submit working Bootable Linux ISO grub.cfg entries for inclusion.
I. Format your USB Flash Drive to use a Single Partition:
- Open a terminal and type
fdisk -l(and note which device is your USB Drive)
fdisk /dev/sdx(replacing x with your actual usb device)
d(to delete the existing partition)
n(to create a new partition)
p(for primary partition)
1(to create the first partition)
Press Enter(to use the first cylinder)
Press Enteragain (to use the default value as the last cylinder)
1(to mark the first partition active "bootable")
t(for partition type)
c(to use fat32 partition)
w(to write the changes and close fdisk)
II. Create a Fat32 Filesystem on the USB Flash Drive:
umount /dev/sdx1(to unmount the mounted partition)
mkfs.vfat -F 32 -n MULTIBOOT /dev/sdx1(to format the partition as fat32)
III. Install Grub2 on the USB Flash Drive:
Old versions of grub used
while current versions use
If you use the wrong syntax, you will receive an error stating "Installation is impossible. Aborting"
mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB(replacing x with your actual usb device)
grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx(replacing x with your actual USB device)
cd /mnt/USB/boot/grub(to change directory)
wget pendrivelinux.com/downloads/multibootlinux/grub.cfg(to get the grub.cfg file)
IV. Adding the Bootable ISO files:
cd /mnt/USB(assuming USB is still mounted… else repeat section III. (part 1))
- Simply click a tab below, and follow the instructions for each ISO Distro you would like to add.
wget "http://releases.ubuntu.com/13.04/ubuntu-13.04-desktop-i386.iso" -O ubuntu.iso
Or rename your existing ISO ubuntu.iso and copy it to the USB device
wget "ftp://ftp.heanet.ie/pub/linuxmint.com/stable/15/linuxmint-15-cinnamon-dvd-32bit.iso" -O linuxmint.iso
Or rename your existing ISO linuxmint.iso and copy it to the USB device
wget "downloads.sourceforge.net/project/dban/dban/dban-2.2.6/dban-2.2.6_i586.iso?r=&ts=1292340298&use_mirror=surfnet" -O dban.iso
Or rename your existing ISO dban.iso and copy it to the USB device
"distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore-current.iso" -O tinycore.iso
Or rename your exisitng ISO tinycore.iso and copy it to your USB device
cp memtest86+-4.10.bin memtest86+.bin
Or extract the contents of your memtest86+ zip. Rename the bin to memtest86+.bin and copy it to your USB device
Adding an Unlisted ISO: To try ISO Files that are not yet listed, use the existing menuentry examples in
/boot/grub/grub.cfg and append any options normally found in the distributions syslinux.cfg file on the "append" line to the "linux" line of the menu entry.
Please inform me of entries you get to work and I will add them to the list, so that others may benefit as well.
V. Last Step… Test to ensure your USB Device Boots into Grub2:
Reboot your Computer, and enter your BIOS or Boot Menu. Set the Boot Order to boot from the USB Device. Save your changes and Reboot. If all goes well, you should be presented with a Grub2 Boot Menu.
Boot Multiple ISO from USB via Grub2 using Linux published under Flash drive installs using Linux