os icon indicating copy to clipboard operation
os copied to clipboard

Grub boot ISO from HDD(NTFS)

Open sonichy opened this issue 3 years ago • 3 comments

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
......

sonichy avatar Mar 01 '21 02:03 sonichy

same problem for elementaryos-6.0

fizzka avatar Sep 20 '21 14:09 fizzka

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 }

enigma131 avatar Mar 24 '23 08:03 enigma131

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 }

enigma131 avatar Mar 24 '23 09:03 enigma131