Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grub boot ISO from HDD(NTFS) #450

Open
sonichy opened this issue Mar 1, 2021 · 3 comments
Open

Grub boot ISO from HDD(NTFS) #450

sonichy opened this issue Mar 1, 2021 · 3 comments

Comments

@sonichy
Copy link

sonichy commented Mar 1, 2021

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
......
@fizzka
Copy link

fizzka commented Sep 20, 2021

same problem for elementaryos-6.0

@enigma131
Copy link

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
Copy link

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants