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 addfsck.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.
fsck.mode=skip
sounds like a kernel parameter, and should be inlinux
line ingrub.cfg
or in theappend
line intxt.cfg
(i.e., it's not an instruction to the bootloader, but something that either the kernel will interpret or something it starts will) – muru May 17 '20 at 19:08fsck.mode=skip
after... lubuntu.seed
worked. – lubunewbu May 17 '20 at 19:22fsck.mode=skip
after... lubuntu.seed
? In general if the answer had a link to a tutorial on how to edit these kinds of files then that would help new users a lot. – lubunewbu May 17 '20 at 19:24fsck.mode=skip
after... lubuntu.seed
? Is the answer to that "yes"? – lubunewbu May 17 '20 at 19:33