How to create multiboot Live-USBs

A recurring question we get is "how to create a multiboot pendrive«. In this short tutorial we explain how to do it, from Windows or Linux, following a few simple steps, as appropriate.

Miguel Mayol is one of the Winners from our weekly competition: «Share what you know about Linux«. Congratulations! Anxious about take part and make your contribution to the community, as did Miguel?

On Linux: Multiboot

1.- Format the pendrive in a single partition:

In a terminal I wrote:

sudo su
fdisk -l

… And take note of which is your pendrive.

fdisk / dev / sdx
Remember to replace the x with the letter of your pendrive (see previous step).

Then…

d (to delete the current partition)
n (to create a new partition)
p (for primary partition)
1 (Create the first partition)
Enter (to use the first cylinder)
Enter again (to use the default value for the last cylinder)
a (for active)
1 (to mark the first partition as bootable)
w (to write changes and close fdisk)

2.- Create a FAT32 file system on the flash drive:

umount / dev / sdx1 # (to unmount the pendrive partition)
mkfs.vfat -F 32 -n MULTIBOOT / dev / sdx1 # (to format the partition as fat32)

3.- Install Grub2 on the pendrive:

mkdir / media / MULTIBOOT # (creates the directory for the mount point)
mount / dev / sdx1 / media / MULTIBOOT # (mount the pendrive)
grub-install --force --no-floppy --root-directory = / media / MULTIBOOT / dev / sdx # (install Grub2)
cd / media / MULTIBOOT / boot / grub # (change directory)
wget pendrivelinux.com/downloads/multibootlinux/grub.cfg # (downloads the grub.cfg file)

4.- Test that your pendrive starts with Grub2:

Restart the computer, and enter the BIOS. Set the boot order to boot from USB - Boot from USB or similar. Save the changes and reboot. If all goes well, a GRUB menu will appear.

5.- Adding ISOs:

cd / media / MULTIBOOT # (if the Pendrive is still mounted there)

I followed the instructions for each distro, changing the ISO name to the default one used in the grub.cfg you downloaded, for example to xubuntu.iso rename to ubuntu.iso

On Windows: YUMI

How it works: YUMI (Your Universal Multiboot Installer) allows you to create a multi-boot pendrive (multiboot) and add or remove new distributions once they have already been loaded on the pendrive.

If you run YUMI from the same location where the ISO files are stored, it should detect them automatically, eliminating the need to search for each ISO manually.

YUMI uses Syslinux, and only loads Grub if necessary.

The distros uninstaller works fine, but ISOs that are not listed in the program and that were added anyway must be uninstalled manually. It is also important to remember that not all ISOs that are not listed will boot effectively (for this reason, although it can be achieved, booting ISOs that are not listed is an option that does not include any support from the program's developers).

Source: pendrivelinux


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Quetzal said

    Wouldn't it be better to use some ext than FAT32 at once?

  2.   we falter said

    Greetings for me it did not work, very complicated for a newbie, thanks.

  3.   Let's use Linux said

    Good idea! Corrected. 🙂
    Cheers! Paul.

  4.   kdoe said

    Very good, just a recommendation, put a # in the comments, in case we copy and paste no errors

    E.g.

    cd / media / MULTIBOOT # (if the Pendrive is still mounted there)

    regards

  5.   Silva said

    I had not read it but I recommend multisystem, for Linux it has its interface that simplifies everything

  6.   Gibran barrera said

    This is a copy of what appears on the pendrivelinux

    http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/
    and it does not solve my doubts once I installed grub as I configure it or extract iso files downloaded manually