User talk:Gabriel-mlt
test [1]
test [1]
test [2]
test [2]
Directly booting an ISO file - Multi-Boot USB Stick
- STILL BEING CREATED ****
| Method Of Date Produced [ bash ] | TZ='Europe/Malta' date +"%Y-%m-%d %H:%M:%S" |
| Created Date | 2026-03-22 00:23:27 |
| First Published Date | [ n/a ] |
| Last Modified Date | [ n/a ] |
| Created By | --Gabriel-mlt (talk) 23:28, 21 March 2026 (UTC) |
Master GRUB Multiboot USB Setup
This guide explains how to install a master GRUB bootloader onto a USB stick to boot multiple ISOs from dedicated partitions.
1. Prepare the Environment
First, install the necessary tools and identify your USB drive: <source lang="bash"> sudo apt update && sudo apt install grub-pc-bin grub-efi-amd64-bin mtools lsblk # Identify your USB (e.g., /dev/sdb) </source>
2. Partitioning the USB
Use gdisk or fdisk to create the following structure:
- Partition 1: EFI System Partition (500MB, FAT32) - Target: /dev/sdb1
- Partition 2: ISO/Data Storage (Remaining space, ext4 or NTFS) - Target: /dev/sdb2
3. Mount and Install GRUB
Mount the EFI partition and install the bootloader for both UEFI and BIOS compatibility. <source lang="bash"> sudo mount /dev/sdb1 /mnt sudo grub-install --target=x86_64-efi --efi-directory=/mnt --boot-directory=/mnt/boot --removable /dev/sdb </source>
4. Configure the Multiboot Menu
Create the configuration file at /mnt/boot/grub/grub.cfg:
<source lang="text">
set timeout=10
set default=0
- Example: Booting an ISO from the second partition
menuentry "Ubuntu 24.04 LTS Live" {
set isofile="/iso/ubuntu-24.04.iso" loopback loop (hd0,gpt2)$isofile linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet splash initrd (loop)/casper/initrd
}
- Example: Booting Windows PE/Lite via Memdisk
menuentry "Windows Lite (RAM Mode)" {
linux16 /boot/memdisk iso raw initrd16 /iso/windows_lite.iso
} </source>
5. Finalize
Ensure you copy the memdisk binary to /mnt/boot/ and place your ISOs in the /iso folder on the second partition.
<source lang="bash">
sudo cp /usr/lib/syslinux/memdisk /mnt/boot/
sudo umount /mnt
</source>
Insert non-formatted text here