使用 Cubic 编辑 Ubuntu ISO 以跳过磁盘检查?

n00*_*les 2 live-usb custom-installer

有没有办法通过使用 Cubic 编辑 ISO 来跳过 Ubuntu 20.04 LTS 中的磁盘检查?如果可能,我们是否可以对其进行编辑,以便在尝试/安装页面上获得一个新的菜单条目。那么,在“无需安装即可试用 Ubuntu”的正上方,我将有类似“试用 Ubuntu(自定义)”之类的内容,它会跳过磁盘检查?

编辑:请原谅我将 20.04 LTS 称为 20 LTS 的坏习惯

PJ *_*ngh 5

我假设您指的是 Ubuntu 20.04 或 Ubuntu 20.10。Ubuntu 桌面版本的过程是相同的。

Cubic 中,当您进入Options 页面时,单击 Boot 选项卡并编辑显示的文件。

对于boot/grub/grub.cfgboot/grub/loopback.cfg文件,创建一个新menuentry项目,例如“Try Ubuntu (Custom)”,并将参数fsck.mode=skip添加到该linux行。

对于该isolinux/txt.cfg文件,创建一个新label项目,例如“live-no-fsck”,并fsck.mode=skip添加参数append行。

例如,在文件中boot/grub/grub.cfg

menuentry "Try Ubuntu (Custom)" {
    set gfxpayload=keep
    linux   /casper/vmlinuz boot=casper fsck.mode=skip file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
    initrd  /casper/initrd.lz
}
Run Code Online (Sandbox Code Playgroud)

例如,在文件中boot/grub/loopback.cfg

menuentry "Try Ubuntu (Custom)" {
    set gfxpayload=keep
    linux   /casper/vmlinuz boot=casper fsck.mode=skip file=/cdrom/preseed/ubuntu.seed maybe-ubiquity iso-scan/filename=${iso_path} quiet splash ---
    initrd  /casper/initrd.lz
}
Run Code Online (Sandbox Code Playgroud)

例如,在文件中isolinux/txt.cfg

default live-no-fsck
label live-no-fsck
  menu label ^Try Ubuntu (Custom)
  kernel /casper/vmlinuz
  append  boot=casper fsck.mode=skip file=/cdrom/preseed/ubuntu.seed initrd=/casper/initrd.lz quiet splash ---
Run Code Online (Sandbox Code Playgroud)

请注意,在boot/grub/grub.cfgboot/grub/loopback.cfg文件中,第一个条目是默认值。在 中isolinux/txt.cfg,您可以使用指令指定默认条目default <your default entry>

(另外,请注意,这仅影响 ISO 启动。如果您希望已安装的系统具有相同的行为,则需要在 Cubic 的终端页面中修改 grub,并且需要在预置文件中采取特殊步骤以确保您的安装期间不会覆盖自定义的 grub。)

这是 Cubic 的“选项”页面“引导”选项卡的屏幕截图,显示了一个跳过文件系统检查的新菜单项。

Cubic 的“选项”页面的屏幕截图,“引导”选项卡