到底要在Lubuntu永久USB上放置字符串`fsck.mode = skip`以禁用磁盘检查吗?

我用Rufus将Lubuntu 20.04放在具有永久性存储的USB笔式驱动器上。 我可以从USB启动Lubuntu,并且可以持久保存内容-太好了。

但是每次启动时磁盘检查都会运行几分钟。文本显示按Ctrl + C取消磁盘检查,但不会取消已经在进行的大文件检查。因此仍然需要几分钟。

This https://askubuntu.com/a/1232719/1083672 post says

Add fsck.mode=skip to the Default menuentry for (UEFI boot mode).
Open /isolinux/txt.cfg as root and add fsck.mode=skip to the "Try Ubuntu without installing" menuentry, (for BIOS boot mode).

But I do not know where exactly in those files to add the string fsck.mode=skip and there is no example of that string in context in that answer

这是我的grub.cfg。您可以看到我已经尝试在其中添加字符串的位置。那没有用,磁盘检查仍在启动时运行。

if loadfont /boot/grub/font.pf2 ; then
  set gfxmode=auto
  insmod efi_gop
  insmod efi_uga
  insmod gfxterm
  terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

set timeout=30
menuentry "Start Lubuntu" {
  fsck.mode=skip
  set gfxpayload=keep
  linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed quiet splash ---
  initrd    /casper/initrd
}
menuentry "Start Lubuntu (safe graphics)" {
  fsck.mode=skip
  set gfxpayload=keep
  linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed quiet splash nomodeset ---
  initrd    /casper/initrd
}
menuentry "OEM install (for manufacturers)" {
  set gfxpayload=keep
  linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed only-ubiquity quiet splash oem-config/enable=true ---
  initrd    /casper/initrd
}
grub_platform
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
  exit
}
menuentry 'UEFI Firmware Settings' {
  fwsetup
}
fi

这是我的txt.cfg。我不知道在哪里在这里添加字符串,所以还没有尝试过。

default live
label live
  menu label ^Start Lubuntu
  kernel /casper/vmlinuz
  append  persistent file=/cdrom/preseed/lubuntu.seed initrd=/casper/initrd quiet splash ---
label live-nomodeset
  menu label ^Start Lubuntu (safe graphics)
  kernel /casper/vmlinuz
  append  persistent file=/cdrom/preseed/lubuntu.seed initrd=/casper/initrd quiet splash nomodeset ---
label memtest
  menu label Test ^memory
  kernel /install/mt86plus
label hd
  menu label ^Boot from first hard disk
  localboot 0x80

我试图在对以上链接的答案的评论中问这个问题,但没有足够的声誉来添加评论。因此这个新问题。

评论