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
......
I need to boot from HDD not USB(Ventoy).
Edit /etc/grub.d/40_custom, add these at end, sudo update-grub.
Success
Fail
echo: