elementary / elementary/os

Grub boot ISO from HDD(NTFS)

Open
#450 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.2k
Forks
146
Avg merge
4d 23h
Merged PRs (30d)
5

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.