You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

自定义Ubuntu 22.04 Server ISO镜像启动时提示‘unable to find a medium containing a live file system’问题求助

Ubuntu 22.04 Server ISO镜像启动时提示‘unable to find a medium containing a live file system’问题求助

我最近在尝试制作一个带Cloud-init自动安装的自定义Ubuntu 22.04 Server ISO镜像,但遇到了个头疼的问题:GRUB引导完成后,initramfs始终找不到文件系统,报错提示找不到包含live文件系统的介质。

一开始我怀疑是自己加的Cloud-init配置或者其他自定义修改搞出的问题,于是索性完全不做任何修改,直接拿官方原版22.04.3 Server镜像来提取再重新打包,结果居然还是能复现同样的错误!

我操作的步骤如下:

提取官方ISO内容

7z -y x ubuntu-22.04.3-live-server-amd64.iso -osource-files
mv source-files/[BOOT]/ BOOT  # 把镜像里的MBR和EFI相关文件单独取出来

重新打包生成新ISO

sudo xorriso -outdev Custom.iso \
-map source-files / -- -volid "Shield 1.1 Ubuntu Remix amd64" \
-boot_image grub grub2_mbr=BOOT/1-Boot-NoEmul.img \
-boot_image any partition_table=on \
-boot_image any partition_cyl_align=off \
-boot_image any partition_offset=16 \
-boot_image any mbr_force_bootable=on -append_partition 2 28732ac11ff8d211ba4b00a0c93ec93b BOOT/2-Boot-NoEmul.img \
-boot_image any appended_part_as=gpt \
-boot_image any iso_mbr_part_type=a2a0d0ebe5b9334487c068b6b72699c7 \
-boot_image any cat_path='/boot.catalog' \
-boot_image grub bin_path='/boot/grub/i386-pc/eltorito.img' \
-boot_image any platform_id=0x00 \
-boot_image any emul_type=no_emulation \
-boot_image any load_size=2048 \
-boot_image any boot_info_table=on \
-boot_image grub grub2_boot_info=on \
-boot_image any next \
-boot_image any efi_path=--interval:appended_partition_2:all:: \
-boot_image any platform_id=0xef \
-boot_image any emul_type=no_emulation \
-boot_image any load_size=4349952

我是照着Ubuntu社区的LiveCD自定义指南来做的,也看到指南里提到需要更新MD5校验和,我已经尝试过执行这一步,但问题还是没解决。

有没有朋友遇到过类似的情况?或者能指点下到底是哪里出了问题导致文件系统检测失败?

备注:内容来源于stack exchange,提问作者Josef Loeffler

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 12:45:01