Skip to content

Instantly share code, notes, and snippets.

@zed9h
Created May 27, 2011 22:19
Show Gist options
  • Save zed9h/996313 to your computer and use it in GitHub Desktop.
Save zed9h/996313 to your computer and use it in GitHub Desktop.
Boot USB pendrive with multiple CD ISO images
# http://www.panticz.de/MultiBootUSB
sudo mkfs.vfat -n zed9h /dev/sdb1
mount /dev/sdb1 /mnt/
grub-install --no-floppy --root-directory=/mnt /dev/sdb1
cat <<EOF> /mnt/boot/grub/grub.cfg
menuentry "Ubuntu Live 10.10 32bit" {
loopback loop /boot/iso/ubuntu-10.10-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-10.10-desktop-i386.iso noeject noprompt --
initrd (loop)/casper/initrd.lz
}
EOF
mkdir /mnt/boot/iso
wget http://ftp.uni-kl.de/pub/linux/ubuntu.iso/10.10/ubuntu-10.10-desktop-i386.iso -P /mnt/boot/iso
sync
umount /mnt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment