Hybrid MBR partition table creation example using gdisk: It will not find the partitions it expects to find. Without it, a BIOS MBR based system will not boot. Next you must create a hybrid MBR partition table. This partition can take up the rest of the space of your drive.
This partition can be as small as 50 MiB. This configuration is useful for creating a universal USB key, bootable everywhere.įirst of all you must create a GPT partition table on your device. # grub-install -target=x86_64-efi -removable -boot-directory=/mnt/boot -efi-directory=/mntįor UEFI, the partition has to be the first one in an MBR partition table and formatted with FAT32. In case you want to boot ISOs in UEFI mode, you have to install grub for the UEFI target: # grub-install -target=i386-pc -recheck -boot-directory=/mnt/boot /dev/sdX Mount the filesystem located on the USB drive:
Choose the size based on the total size of the ISO files that you want to store on the drive, and plan for extra space for the bootloader. See Partitioning and File systems#Create a file system. Reason: How much extra space is needed for the bootloader? (Discuss in Talk:Multiboot USB drive)Ĭreate at least one partition and a filesystem supported by GRUB on the USB drive.