A guide to essential kernel parameters and their usage
Kernel parameters, also known as kernel boot parameters or kernel command line parameters, are options passed to the Linux kernel at boot time. These parameters can modify kernel behavior, enable or disable features, and provide configuration information.
/etc/default/grub and update the GRUB_CMDLINE_LINUX line.sysctl to modify kernel parameters at runtime (some parameters only).| Parameter | Description | Example |
|---|---|---|
| root= | Specifies the root filesystem | root=/dev/sda1 |
| init= | Specifies the init process | init=/bin/bash |
| quiet | Reduces verbosity of kernel messages | quiet |
| splash | Enables the boot splash screen | splash |
| mem= | Sets the amount of memory the kernel can use | mem=4G |
| nomodeset | Disables kernel mode setting | nomodeset |
acpi=off: Disables ACPI (Advanced Configuration and Power Interface)noapic: Disables Advanced Programmable Interrupt Controllernoapm: Disables Advanced Power Managementvga=: Sets the VGA mode for consoleelevator=: Selects I/O scheduler (e.g., elevator=deadline)pci=nomsi: Disables Message Signaled Interrupts for PCI devicessingle or 1: Boots into single-user modeemergency: Boots into emergency mode (minimal environment)debug: Enables kernel debugging outputignore_loglevel: Prints all kernel messages to consolenosmp: Disables SMP (Symmetric Multi-Processing)maxcpus=: Limits the number of CPUs usedsudo nano /etc/default/grub
GRUB_CMDLINE_LINUX line to add your parameterssudo update-grub (Ubuntu/Debian) or sudo grub2-mkconfig -o /boot/grub2/grub.cfg (CentOS/RHEL)