3

This is the menuentry I currently have under my grub.cfg.

menuentry "Xubuntu 20.04 Live CD (64-bit AMD64)" {
    insmod part_gpt
    insmod exfat
    insmod search_fs_uuid
set iso_file=/iso/xubuntu-20.04-desktop-amd64.iso
search --no-floppy --set=root --fs-uuid 92AE-07D5

loopback loop ($root)$iso_file
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$iso_file noprompt noeject
initrd (loop)/casper/initrd

}

I've checked the following article examples but no luck.

The issue that after I've chosen the menuentry. It finds the ISO just fine but later after it has echoed some starting dialogue it says it's unable to find the ISO.

This script works fine with Xubuntu 18.04.4 Live CD and Lubuntu Boot Recovery ISO in the same iso folder.

I've tried chainload a loopback of the ISO but after going through numerous search results I've found an article that says it isn't possible. Preferably, I like to keep all my grub ISOs in one folder instead of separate drive partitions.

Nova
  • 147

1 Answers1

2

Booting ISO files Ubuntu 20.04

rmmod tpm is necessary for booting ISO files with Ubuntu 19.10 and later, (due to the use of GRUB 2.04.

You might also want to get rid of the Disk Check every boot and maybe speed things up by booting toram, (optional).

menuentry "Ubuntu 20.04 ISO" {
    rmmod tpm
    set root=(hd0,3)
    set isofile="/isos/ubuntu-20.04-desktop-amd64.iso"
        loopback loop $isofile
        linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile persistent persistent-path=/ub2004-1/ fsck.mode=skip quiet splash toram -- 
        initrd (loop)/casper/initrd
}

persistent and persistent-path are only necessary if you want persistence.

See: 20.04 booting .iso from GRUB menu

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125