无忧启动论坛

标题: grub2 loopback引导ubuntu失败 [打印本页]

作者: exhen    时间: 2018-5-14 14:20
标题: grub2 loopback引导ubuntu失败
尝试用loopback iso镜像后用configfile loopback.cfg报错 initramfs unable to find a medium containing live system
换用loopback 后用syslinux_configfile报错could not find the ISO
望大佬们指教

引导代码

menuentry "ISO boot(loopback)" ($root)$2 {
            set root=loop;
            iso_path=$2
            export iso_path;
            configfile /boot/grub/loopback.cfg
          }

menuentry "Boot ISO (ISOLINUX) ${cfgpath}" "$2" "${cfgpath}" {
              insmod syslinuxcfg
              root=loop;
              linux_extra="iso-scan/filename=$2"
              export linux_extra;
              syslinux_configfile -i "$3"
            }

作者: exhen    时间: 2018-5-14 16:15
wintoflash 发表于 2018-5-14 15:50
进到initramfs环境后输入cat /proc/cmdline,看看启动参数对不对。
另外,官方版grub2不支持第二个菜单中l ...

BOOT_IMAGE=///casper/vmlinuz file=/cdrom/preseed/ubuntu.seed oot=casper initrd=/casper/initrd.lz quiet splash ---
作者: sixa200    时间: 2018-7-29 22:04
menuentry "Ubuntu Linux 18.04 20180426" --class ubuntu --class os {
search --set -f /Ubuntu/vmlinuz
linux  /Ubuntu/vmlinuz boot=casper iso-scan/filename=/Ubuntu/ubuntu.iso locale=zh_CN.UTF-8 splash
initrd /Ubuntu/initrd.lz
}

menuentry "Ubuntu Kylin Linux 18.04 20180428" --class ubuntukylin --class os {
search --set -f /UbuntuKylin/vmlinuz
linux  /UbuntuKylin/vmlinuz boot=casper iso-scan/filename=/UbuntuKylin/ubuntukylin.iso locale=zh_CN.UTF-8 splash
initrd /UbuntuKylin/initrd.lz
}
作者: 2011cwj6958    时间: 2018-7-30 01:21
本帖最后由 2011cwj6958 于 2018-7-30 01:24 编辑

Ubuntu Linux 18.04版本iso整体启动  iso文件要放在fat32磁盘格式下  放在ntfs磁盘格式下无法进入系统 ,报错could not find the ISO

以前部分版本支持放在ntfs磁盘格式下
作者: 2010eflying    时间: 2018-8-2 21:00
iso-scan/filename=$iso_path




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3