Ubuntu Cheat Codes | Startup Parameters

Ubuntu Cheat Codes, boot options, and kernel parameters can help you boot Ubuntu from a USB flash drive on different machines. These Ubuntu boot parameters allow you to customize the boot process, fix hardware compatibility issues, and enable persistence, among other features. To append cheat codes during bootup, press the ESC key if you are booting from Syslinux or press E to edit, if booting from GRUB. Then proceed to add one or more of the following boot options to your existing boot string, and press ENTER to boot.

How to Live Boot Ubuntu with Persistence

One of the most popular use cases is booting with persistence. This allows Ubuntu to save system settings and user data on the USB drive, instead of running in a completely volatile mode. To boot with persistence, simply add the word persistent to your Linux boot line, as shown below:

ubuntu cheat codes - boot parameters
Ubuntu Cheat Codes - Adding 'persistent' to the Linux line to live boot with persistence enabled.

If you do not want Ubuntu to save any changes made during your session, use the nopersistent option instead.

Ubuntu Cheat Codes and Boot Options

Here are some commonly used Ubuntu cheat codes or Ubuntu boot options and what they do. These boot parameters can help you troubleshoot hardware issues, configure your system, or optimize performance during live USB sessions.

Cheat Code/Boot OptionResult of setting this Boot Parameter
casper-gettyEnables a serial login shell. Useful for remote management via serial interface.
xdebconfLaunches the X server configuration tool to automatically configure your display settings.
hostname=
username=
userfullname=
Overrides default values for hostname, username, and user full name at boot time.
{live-media|bootfrom}=DEVICESpecify the device containing the live boot files. If not found, all block devices will be scanned.
live-media-path=PATHDefine a custom directory for boot files instead of the default /casper path.
persistentEnable persistent storage using a casper-rw overlay file.
nopersistentDisable persistence and run in a clean session without saving any changes.
persistent-path=PATHSpecify a custom path to your persistent storage (casper-rw or writable image).
toramLoad the entire filesystem into RAM, allowing you to remove the USB drive after booting.
nopromptPrevent the system from prompting to eject a CD or USB after rebooting. Useful when using a live USB.
vga=xxxSet the framebuffer resolution manually using VESA modes.
acpi=off or noacpiDisable ACPI (Advanced Configuration and Power Interface) for systems that do not support it or if ACPI is causing issues such as reboots or lockups.
acpi=forceForce ACPI to be enabled even on older systems where it might be disabled by default.
pci=noacpi or acpi=noirqDisable PCI IRQ routing via ACPI.
pci=acpiEnable PCI IRQ routing via ACPI.
acpi_irq_balanceAllow ACPI to balance IRQ assignments across PIC interrupts.
acpi_irq_nobalanceDisable ACPI from balancing IRQ assignments.
acpi=oldbootDisable ACPI except for the parts required for booting (useful on older machines).
acpi=htDisable ACPI except for portions required for HyperThreading support.
noapicDisable the APIC (Advanced Programmable Interrupt Controller).
nolapicDisable the local APIC on multi-core systems.
apm=off or noapmDisable APM (Advanced Power Management).
irqpollEnable polling of IRQs, useful when you encounter hardware interrupt issues.
acpi.power_nocheck=1 or acpi_osi=LinuxDisable power state checking, useful for broken BIOS implementations to fix fan or temperature control issues.

Where to Find More Ubuntu Boot Options

For a more exhaustive list of kernel command-line parameters, check out the official documentation here: Kernel Boot Parameters Documentation.

Additional Ubuntu Boot Parameters