Skip to content

Grub boot ISO from HDD(NTFS) #450

Description

@sonichy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions