我正在尝试从 GRUB 启动 Ubuntu .iso 映像。在Full Circle杂志,#157 page 61,他们描述了如何做到这一点。它不起作用。
我编辑了/etc/grub.d/40-custom,并添加了以下内容...
# Full Circle #157, page 61
menuentry "Ubuntu 20.04 ISO" {
insmod part_gpt
insmod ext2
set root=(hd0,gpt7)
set isofile="/ubuntu-20.04-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd
}
Run Code Online (Sandbox Code Playgroud)
我的 Ubuntu 根目录在 /dev/sda7 上。
我的 .iso 文件位于 /。
我尝试启动 .iso 时遇到的错误是...
disk hd0,gpt7 not found
no server is specified
can't find command noprompt
you need to load the kernel first
Run Code Online (Sandbox Code Playgroud)
关于如何使这项工作的任何想法?