3

I used Rufus to put Lubuntu 20.04 on a USB pendrive with persistant storage. I can boot Lubuntu from USB and can save stuff persistently - great.

But the disk checkup runs for several minutes on every boot. Text says press Ctrl+C to cancel disk checkup but that does not cancel the already ongoing check of a very large file. So it still takes minutes.

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

This is my grub.cfg . You can see where I have already tried to add the string. That did not work, the disk check still runs on boot.

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

This is my txt.cfg. I have no idea where to add the string here so have not tried anything yet.

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

I tried to ask this in a comment to the above linked answer but do not have enough reputation to add comments yet. Thus this new question.

1 Answers1

2

Location of fsck.mode=skip

Location in grub.cfg, (mkusb, UNetbootin and Rufus)

menuentry "Ubuntu" {
    set gfxpayload=keep
    linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed maybe-ubiquity fsck.mode=skip quiet splash ---
    initrd  /casper/initrd
}

Location in syslinux.cfg, (UNetbootin)

label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed fsck.mode=skip quiet splash ---

Location in txt.cfg, (Rufus)

label live
  menu label ^Try Ubuntu without installing
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed initrd=/casper/initrd fsck.mode=skip quiet splash ---

Exact location in the linux line is not important, it can even go one space after ---.

Edit 20200524: The above workaround is no longer needed.

This bug was fixed in the package casper - 1.447, as announced in: https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1875548

Run:

sudo apt-get update
sudo apt-get install -y casper

(I am still testing the fix, It does not seem to be working yet).

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125