无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3716|回复: 4

[求助] grub2 loopback引导ubuntu失败

[复制链接]
发表于 2018-5-14 14:20:29 | 显示全部楼层 |阅读模式
尝试用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"
            }
 楼主| 发表于 2018-5-14 16:15:49 | 显示全部楼层
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 ---
回复

使用道具 举报

发表于 2018-7-29 22:04:53 | 显示全部楼层
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
}
回复

使用道具 举报

发表于 2018-7-30 01:21:24 | 显示全部楼层
本帖最后由 2011cwj6958 于 2018-7-30 01:24 编辑

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

以前部分版本支持放在ntfs磁盘格式下
回复

使用道具 举报

发表于 2018-8-2 21:00:47 来自手机 | 显示全部楼层
iso-scan/filename=$iso_path
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-3-29 13:25

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表