1

My goal:

Install grub2 EFI in a USB to be multiboot with ISOs.
I partition the USB, 1 FAT to install EFI, and another EXT4 for the ISOs.

What works:

Install grub in the USB from a live linux using chroot:

sudo grub-install --force --removable --target=x86_64-efi --efi-directory=/media/user/BOOT/ /dev/sdb1

The USB boots the grub.

What does not work:

I add the menuentry, for example of clonezilla:

menuentry "Clonezilla live (Default settings, VGA 800x600)"{
  loopback loop (hd0,msdos2)/clonezilla-live-2.6.0-37-i686.iso
  linux (loop)/live/vmlinuz boot=live iso-scan/filename=(hd0,msdos2)/clonezilla-live-2.6.0-37-i686.iso
  initrd (loop)/live/initrd.img
}

... but I always get the error

Unable to find a medium containing a live file system

But from the grub console I can check that the paths and names are correct.
I've bee all over the internet and tried many things, other USBs, different computers, different ISOs (Linux Mint, Linux Lite)...but always fall in the same error.

What am I doing wrong or what am I missing?

zx485
  • 2,865

1 Answers1

1

I changed

menuentry "Clonezilla live (Default settings, VGA 800x600)"{
  loopback loop (hd0,msdos2)/clonezilla-live-2.6.0-37-i686.iso
  linux (loop)/live/vmlinuz boot=live iso-scan/filename=(hd0,msdos2)/clonezilla-live-2.6.0-37-i686.iso
  initrd (loop)/live/initrd.img
}

for

set root='hd0,1'

menuentry "Clonezilla live (Default settings, VGA 800x600)"{
  loopback loop /clonezilla-live-2.6.0-37-i686.iso
  linux (loop)/live/vmlinuz boot=live iso-scan/filename=(hd0,msdos2)/clonezilla-live-2.6.0-37-i686.iso
  initrd (loop)/live/initrd.img
}

... and it works fine.