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

Grub2启动菜单添加Clonezilla Live选项后的启动异常求助

Grub2启动菜单添加Clonezilla Live选项后的启动异常求助

各位好,我最近在Ubuntu的Grub2菜单里加了Clonezilla Live(版本是3.0.3-22-amd64)的启动选项,把ISO文件直接放在了系统根目录,然后修改了/etc/grub.d/40_custom文件,写了这么一段菜单条目:

menuentry "Clonezilla live" {
set isofile="/clonezilla-live-3.0.3-22-amd64.iso"
loopback loop $isofile 
linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset nodmraid ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts= ocs_live_batch="no" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile 
initrd (loop)/live/initrd.img 
}

结果现在启动的时候出问题了:正常来说应该先弹出Clonezilla的GNU分辨率选择菜单(就是选800x600、1024x768那些的界面),但现在直接跳过了这个界面,一上来就是第二屏的语言选择(en_us.utf-8那个)。我查了好多资料都没搞定,有没有大佬能给看看问题出在哪?


我之前碰到过类似问题,给你几个可行的调整方向:

  • 先把quiet和nosplash这俩参数删掉!这俩是用来抑制启动输出和隐藏启动菜单的,你加了它们肯定会跳过分辨率选择界面。
  • 添上live-config参数:新版Clonezilla需要这个参数来正确加载启动时的菜单配置,不加的话可能会直接进入默认流程。
  • 可以把vga=788换成gfxpayload=keep:vga=xxx是比较老的分辨率指定方式,换成gfxpayload=keep能让Grub保持当前分辨率,也有助于菜单正常显示。

调整后的菜单条目大概是这样的:

menuentry "Clonezilla Live (显示启动菜单)" {
    set isofile="/clonezilla-live-3.0.3-22-amd64.iso"
    loopback loop $isofile
    linux (loop)/live/vmlinuz boot=live union=overlay username=user config components noswap nolocales edd=on nomodeset nodmraid ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts= ocs_live_batch="no" locales= ip=frommedia toram=filesystem.squashfs findiso=$isofile live-config
    initrd (loop)/live/initrd.img
}

改完之后别忘了跑一遍sudo update-grub更新Grub配置,然后重启试试。

另外还有个更彻底的方法,就是直接引导Clonezilla ISO里的原生syslinux配置,这样能完全复刻它自己的启动流程,不过这个需要你的Grub支持linux16和initrd16命令,你可以试试:

menuentry "Clonezilla Live (原生启动菜单)" {
    set isofile="/clonezilla-live-3.0.3-22-amd64.iso"
    loopback loop $isofile
    linux16 (loop)/isolinux/isolinux.bin
    initrd16 (loop)/isolinux/initrd.img
}

要是这个方法报错的话,就还是用第一种调整参数的方式,那个更稳妥。


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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.22 15:43:09