kernel command line
The list of options the bootloader passes to the kernel at start-up, such as root=/dev/sda2 quiet, which shapes early boot.
In more detail
Parameters can choose the root filesystem, change logging with loglevel or quiet, set the console or boot into a recovery target. One wrong parameter can make a healthy kernel choose the wrong root or hide useful messages. cat /proc/cmdline shows what the running kernel received.
Example
root=/dev/root loglevel=4 console=tty quiet=yes is a quiet boot with an explicit root and console.Related terms
- bootloader — The small program the firmware starts, which loads the kernel and initramfs into memory and passes the kernel its command line.
- GRUB — The bootloader most Linux distributions use to pick a kernel and initramfs and start it with a command line.
- root filesystem — The top of the directory tree, written as a single slash, under which every other file and directory hangs.
- kernel parameter — A tunable setting of the running kernel, such as how much network buffer memory to allow.
Taught in
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration
- Disk Layout And The Boot Loader — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep