How to boot ubuntu.iso file using grub2 on UEFI machines?
#1
Posted 18 May 2019 - 07:55 PM
- Mov AX 0xDEAD likes this
#2
Posted 18 May 2019 - 08:20 PM
This is a working solution that can be made easily.
http://reboot.pro/to...drive/?p=208817
http://reboot.pro/to...drive/?p=209075
#3
Posted 19 May 2019 - 06:37 AM
Download ubuntu-19.04-desktop-amd64.iso from here copied to folder images on FAT32 partition of Portable SSD T5
Download UEFI_MULTI-89 from here will make UEFI Grub2 boot configuration files Boot\grub\grub.cfg and Boot\grub\grub_Linux.cfg
In case UEFI Grub2 is not available as Boot option in your F8 Boot Menu for your Portable SSD
File Boot\grub\grub_Linux.cfg has entry for UEFI Secure booting of ubuntu-19.04-desktop-amd64.iso located in folder images on FAT32 partition of Portable SSD T5
where Boot\grub\grub.cfg will export iso_drive
if [ -e "$iso_drive/images/ubuntu-19.04-desktop-amd64.iso" ]; then menuentry "ISO Ubuntu - ubuntu-19.04-desktop-amd64.iso $iso_drive" { set iso_path=/images/ubuntu-19.04-desktop-amd64.iso loopback loop $iso_drive$iso_path linux (loop)/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=$iso_path quiet splash --- initrd (loop)/casper/initrd } fi
#4
Posted 19 May 2019 - 09:08 AM
Most Ubuntu ISOs contain a loopback.cfg file. This already has the correct cheat codes to boot correctly from an ISO file.
https://rmprepusb.bl...menu-using.html
so you just need to run it from your grub2 menu after using loop to mount the iso file - this way you won't have to change the cheat code line when you come to change Ubuntu version.
configfile /boot/grub/loopback.cfg
#5
Posted 19 May 2019 - 10:03 AM
I confirm that the ubuntu internal loopback.cfg as proposed by steve6375 can be used.
It is not enough to just add the configfile line for using loopback.cfg, but it requires in that case a grub2 menuentry as given below
if [ -e "$iso_drive/images/ubuntu-19.04-desktop-amd64.iso" ]; then menuentry "ISO Ubuntu - ubuntu-19.04-desktop-amd64.iso $iso_drive - loopback.cfg" { set iso_path=/images/ubuntu-19.04-desktop-amd64.iso export iso_path loopback loop $iso_drive$iso_path set root=(loop) configfile /boot/grub/loopback.cfg loopback --delete loop} fi
Screenshot from 2019-05-19 09-57-21.png 530.07KB 0 downloads
#6
Posted 21 July 2019 - 06:48 PM
- wimb likes this
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users