You are not logged in.

#1 2024-08-13 10:14:37

laegnur
Member
Registered: 2013-07-23
Posts: 12

Multiboot usb and large than 4Gb iso

Hello

I'm following this tutorial from an old website to make a USB with Grub and boot a lot of Linux distros directly from the ISOs contained on the USB.

But I found a problem, UEFI needs a FAT filesystem, and the last Ubuntu ISO is 6Gb... so it can't be copied to the fat32 partition on the USB...

I think on use a fat32 partition for boot and UEFI, and a ext4 partition for the ISOs on the USB

These are the two commands to install the UEFI and the Bios Grub

# grub-install --target=x86_64-efi --efi-directory=/mnt/multiboot --boot-directory=/mnt/multiboot/boot --removable --recheck
# grub-install --target=i386-pc --boot-directory=/mnt/multiboot/boot --recheck /dev/sdc

And the Archlinux grub menu to load from the ISO on the USB

## ARCHLINUX 2024.08
menuentry 'GNU/Linux Archlinux 2024.08.01 x86_64' --class arch --class gnu-linux --class gnu --class os{
    set isofile='/boot/iso/archlinux-2024.08.01-x86_64.iso'
    loopback loop $isofile
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile archisobasedir=arch archisosearchuuid=2024-08-01-14-36-07-00 earlymodules=loop
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

I need guidance on how to modify the Grub config to use the ISOs on a second partition.

Last edited by laegnur (2024-08-13 10:15:12)

Offline

#2 2024-08-13 13:15:43

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,211
Website

Re: Multiboot usb and large than 4Gb iso

Change $imgdevpath to the correct identifier for the second partition, as per https://wiki.archlinux.org/title/Multib … figuration.


"It's impossible for a white person to believe in capitalism and not believe in racism. You can't have capitalism without racism."
— Malcolm X

Offline

#3 2024-08-13 15:59:37

laegnur
Member
Registered: 2013-07-23
Posts: 12

Re: Multiboot usb and large than 4Gb iso

Hello

Thanks for the answer. I didn't know that article on the wiki. I will read it immediately. Many thanks.

Offline

Board footer

Powered by FluxBB