os
os copied to clipboard
Grub boot ISO from HDD(NTFS)
I need to boot from HDD not USB(Ventoy). Edit /etc/grub.d/40_custom, add these at end, sudo update-grub.
Success
menuentry "ubuntu 16" {
set root=(hd0,5)
set isofile="/ISO/ubuntu-16.04.7-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile locale=zh_CN
initrd (loop)/casper/initrd
}
Fail
menuentry "elementaryos" {
set root=(hd0,5)
set isofile="/ISO/elementaryos-5.1-stable.20200814.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile locale=zh_CN
initrd (loop)/casper/initrd.lz
}
echo:
......
stdin: Not a typewriter
stdin: Not a typewriter
stdin: Not a typewriter
stdin: Not a typewriter
stdin: Not a typewriter
stdin: Not a typewriter
......
same problem for elementaryos-6.0
Same on elementary 7 Have try also : menuentry "ElementaryOs-7.0 stable" { set iso="/isos/elementaryos-7.0-stable.20230129rc.iso" set isoname=ElementaryOs_7.0 loopback loop (hd0,6)$iso linux (loop)/boot/vmlinuz root=live:LABEL=${isoname} iso-scan/filename=${iso} locale.LANG=fr_FR.UTF-8 vconsole.> echo 'initrd loading, please wait ...' initrd (loop)/boot/initrd.img }
Solved via toram : menuentry "ElementaryOs-7.0 stable" { set iso="/isos/elementaryos-7.0-stable.20230129rc.iso" loopback loop (hd0,6)$iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$iso noprompt noeject toram echo 'initrd loading, please wait ...' initrd (loop)/casper/initrd.lz }