Boot From Ubuntu 18.04.2.iso, MXLinux18.3.iso, ... Files From Hard Disk / USB disk Using GRUB2
To Boot Ubuntu18.04.2.iso, MXLinux18.3.iso, etc... File From USB disk
Create AIOBoot USB disk.
Place Ubuntu18.04.2.iso, MXLinux18.3.iso, etc... Files Inside <USB disk>/AIO/Files/ Folder.
Boot From USB disk and Press J and Select .iso Listed From <USB disk>/AIO/Files/ Folder
To Boot Ubuntu18.04.2.iso, MXLinux18.3.iso, etc... File From HDD Without Installing Any in HDD
Create AIOBoot USB disk. Boot From it and Use its File Manager and Select .iso From HDD
To Create AIOBoot USB disk From Ubuntu 18.04.2
Download AIOBoot .7z File From
https://github.com/nguyentumine/AIO-Boot/releases
Extract Into $HOME/AIOBoot/ Folder
In Terminal, Run The Below Command (Change sdb As Per Your USB disk)
sudo grub-bios-setup -d $HOME/AIOBoot/AIO/grub/i386-pc/ /dev/sdb
(If we boot from USB disk now, booting to <grub-rescue> prompt will come)
Copy all files & folders of $HOME/AIOBoot/ folder into USB disk (use command - sudo nautilus)
For More Details:
https://www.aioboot.com/en/aio-boot-linux/
To Create AIOBoot USB disk With 2 Partitions From Ubuntu 18.04.2
Using GParted, Create Following Partitions in USB disk
Partition 1
Primary
NTFS
Space Following 4096MB
Partition 2
Primary
FAT32
Remaining Space ~4096MB
Enable Flags - Boot,Hidden
Note:
Use EXT4 partition instead of FAT32, only if want to keep an .iso file of more than 4GB in USB disk. Advantage of FAT32 partition is it supports hidden flag, unlike EXT4 partition.
Download AIOBoot .7z File From
https://github.com/nguyentumine/AIO-Boot/releases
Extract Into $HOME/AIOBoot/ Folder
In Terminal, Run The Below Command (Change sdb As Per Your USB disk)
sudo grub-bios-setup -d $HOME/AIOBoot/AIO/grub/i386-pc/ /dev/sdb
(If we boot from USB disk now, booting to <grub-rescue> prompt will come)
Use Disks or GParted software to mount the hidden (2nd) partition of the USB disk
Copy all files & folders of $HOME/AIOBoot/ folder into the hidden (2nd) partition of the USB disk
(use command - sudo nautilus)
For More Details:
https://www.aioboot.com/en/aio-boot-linux/
To Install AIOBoot in MBR of Hard Disk
Download AIOBoot .7z File From
https://github.com/nguyentumine/AIO-Boot/releases
Extract Into $HOME/AIOBoot/ Folder
In Terminal, Run The Below Command (Change sda As Per Your Hard disk)
sudo grub-bios-setup -d $HOME/AIOBoot/AIO/grub/i386-pc/ /dev/sda
Copy all files & folders of $HOME/AIOBoot/ folder into a NTFS / FAT32 / EXT4 Primary partition of Hard disk. Set Boot Flag in Primary partition
(use command - sudo nautilus)
To Create AIOBoot USB disk From Windows
Download AIOBoot .exe File From
https://github.com/nguyentumine/AIO-Boot/releases
Or
https://www.aioboot.com/en/download/
Follow the Procedure Given in The Below Link
https://www.aioboot.com/en/how-to-use/
To Boot Ubuntu18.04.2.iso, MXLinux18.3.iso, etc... File From Hard Disk in a PC Running Windows
Download AIOBoot .exe File From
https://github.com/nguyentumine/AIO-Boot/releases
Or
https://www.aioboot.com/en/download/
Follow the Procedure Given in The Below Link
https://www.aioboot.com/en/how-to-use/
To Change Menu Order in The AIOBoot
Note: The 1st Menu Item Will Be The Default
Change menuentry Order in The Below File
<AIOBoot>/AIO/grub/Main.cfg
To Boot Ubuntu18.04.2.iso File From Hard Disk in a PC Running Ubuntu
Note: Assuming below 4 points
1) (hd0,2)/isos/Ubuntu18.04.2.iso file is inside isos folder of 2nd partition of 1st hard disk (/dev/sda2)
2) Ubuntu 18.04.x is installed in hard disk
3) sudo update-grub (command to update GRUB2 after editing 40_custom)
4) sudo gedit /etc/grub.d/40_custom (command to edit 40_custom)
menuentry "Ubuntu 18.04.2" {
loopback loop (hd0,2)/isos/Ubuntu18.04.2.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/isos/Ubuntu18.04.2.iso
initrd (loop)/casper/initrd
}
To Boot MX Linux 18.3.iso File From Hard Disk in a PC Running Ubuntu
Note: Assuming below 4 points
1) (hd0,2)/isos/MXLinux18.3.iso file is inside isos folder of 2nd partition of 1st hard disk (/dev/sda2)
2) Ubuntu 18.04.x is installed in hard disk
3) sudo update-grub (command to update GRUB2 after editing 40_custom)
4) sudo gedit /etc/grub.d/40_custom (command to edit 40_custom)
menuentry "MX Linux 18.3" {
loopback loop (hd0,2)/isos/MXLinux18.3.iso
set root=(loop)
linux (loop)/antiX/vmlinuz fromiso=/isos/MXLinux18.3.iso bdev=/dev/sda2
initrd (loop)/antiX/initrd.gz
}
References:
Boot Mx Linux .iso Files From Hard Disk 1 - https://antixlinux.com/forum-archive/booting-antix-with-grub-2-t3720.html
Boot Mx Linux .iso Files From Hard Disk 2 - https://mxlinux.org/forum/viewtopic.php?t=40215
Boot Mx Linux .iso Files From Hard Disk 3 - https://forum.mxlinux.org/viewtopic.php?t=47650
Boot Ubuntu 18.04 From Hard Disk - http://unixnme.blogspot.com/2018/05/boot-from-ubuntu-live-iso-directly-from.html
Boot Linux .iso Files From Hard Disk - https://www.howtogeek.com/196933/how-to-boot-linux-iso-images-directly-from-your-hard-drive/
Clover EFI Bootloader - https://sourceforge.net/projects/cloverefiboot/
40_custom grub2 config files for various Linux Distributions - https://github.com/thias/glim/tree/master/grub2
GRUB2 40_custom file
https://wiki.archlinux.org/index.php/GRUB
https://www.systutorials.com/docs/linux/man/8-grub-install/
https://www.systutorials.com/docs/linux/man/8-grub-bios-setup/
https://www.systutorials.com/docs/linux/man/8-grub-mkconfig/
GRUB2 Live ISO Multiboot - https://github.com/thias/glim/blob/master/README.md
GRUB2 Config file examples - https://pendrivelinux.com/downloads/multibootlinux/grub.cfg
GRUB2 USB Boot Creation Using Ubuntu - https://help.ubuntu.com/community/Grub2/ISOBoot
Install GRUB2 on a Windows Only PC - https://www.aioboot.com/en/install-grub2-from-windows/