Installing 3 Linux CD on an USB flash drive

(Version française)

With the size of the current USB flash drives, it seems a bit ridiculous to have a USB flash drive for a single Linux CD... Why not, for example, put a SystemRescueCD, a 32 bits Ubuntu and as well as a 64 bits Ubuntu?

This installation procedure will tell you how to do this for 2 or 3 Linux ISO images (you can even install 41 ISO images on the same USB drive, provided that you install GRUB on the same partition as one of the CDs).

Installation procedure

Finding the device used by the USB flash drive

Use gparted to format the USB flash drive

Use gparted to format the USB flash drive. Make a first 32MB FAT32 partition, then 3 partitions, each one slightly larger than the CD you want to copy.

(!) As older BIOS might not be able to start a partition too far away, always put the smallest (or the more important) CD images first (e.g. a rescue CD).

SystemRescueCD installation

Ubuntu CD installation

With the "Ubuntu Live USB creator" (usb-creator-gtk), install the Ubuntu ISO image on the target partition of your USB flash drive..

GRUB Installation

Once you will have installed your 3 CD images, you can start installing GRUB.

Your flash drive should now be set up. Enjoy.

Notes

GRUB disk naming

GRUB disks and partitions numbers starts from zero.

When you boot from a USB flash drive, the flash drive will always be the first disk for GRUB. The USB flash drive should therefore be named (hd0) in the GRUB configuration file (menu.lst).

Feedback

You can send me your comments and suggestions to <jean DASH philippe DOT guerard AT tigreraye DOT org>.

See also

  1. The Disk partitioning Wikipedia article.

  2. The Cylinder 1024 Wikipedia article.

  3. How to create a GRUB boot floppy with the menu interface? (GRUB FAQ).

  4. Load another boot loader to boot unsupported operating systems (GRUB manual).

  5. Le Naming convention (GRUB manual).

  6. The SystemRescueCD USB stick installation procedure.


  1. It's not possible to go over 4 bootable (primary) partitions. (1)

Creative Commons License