How can I remove the Try Ubuntu / Install Ubuntu screen on my 20.04 Persistent USB drive?
Being diverted to this screen increases boot time on both Rufus and mkusb Persistent USB drives.
I would prefer a GRUB menuentry for installing Ubuntu.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityFor mkusb, (12.4.3), the Try/Install screen can be eliminated by removing "maybe-ubiquity" from the persistent grub.cfg menuentry, on a drive made using mkusb. Try/Install has been removed from Persistence option in latest version of mkusb.
For Rufus, (3.10), the Try/Install screen can be eliminated in BIOS mode by overwriting the contents of syslinux.cfg with:
default persistent
label persistent
say Booting an Ubuntu Persistent session...
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd quiet splash noprompt --
In UEFI mode the Try/Install screen can be eliminated by removing "maybe-ubiquity" from the persistent grub.cfg menuentry.
For Unetbootin, (677), there is not a problem with Try/Install in BIOS mode, but in UEFI mode the Try/Install screen can be eliminated by removing "maybe-ubiquity" from the first grub.cfg menuentry.
The grub.cfg menuentry for installing Ubuntu is:
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash ---
initrd /casper/initrd
}
syslinux.cfg
, you will still get the prompt in UEFI mode. Please bear in mind that Ubuntu uses Syslinux for BIOS boot and GRUB for UEFI boot, therefore, with utilities that follow the bootloaders used by the ISO exactly (rather than add their own as you seem to believe), you need to edit BOTH grub.cfg
and syslinux.cfg
. Can you please amend your post to reflect that then?
maybe-ubiquity
when creating persistent drives with Rufus, but as @sudodus pointed out in the related bug report it may also remove other options that users may want, so I want to consider this carefully.
grub.cfg
. Only editing syslinux.cfg
, which is what you suggested, will change nothing when it comes to UEFI boot. So, once again, you need to edit both files for BIOS+UEFI to remove the prompt, and I just wanted to make sure you rectified that.