Differences
This shows you the differences between two versions of the page.
— | linux:kernel_add_param [2019/10/31 08:55] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Add parameters to kernel boot ====== | ||
+ | ===== To temporarily add a boot parameter to a kernel: ===== | ||
+ | - Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left < | ||
+ | - Now highlight the kernel you want to use, and press the < | ||
+ | - Go down to the line starting with **linux** and add your parameter **foo=bar** to its end. | ||
+ | - Now press < | ||
+ | |||
+ | ===== To make this change permanent: ===== | ||
+ | - Run **sudo vim / | ||
+ | - Find the line starting with **GRUB_CMDLINE_LINUX_DEFAULT** and append **foo=bar** to its end. For example: **GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | - Finally, start a terminal and run: **sudo update-grub** to update GRUB's configuration file (you probably need to enter your password). | ||
+ | |||
+ | On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from **GRUB_CMDLINE_LINUX_DEFAULT** and run **sudo update-grub** again. | ||
+ | |||
+ | To verify your changes, you can see exactly what parameters your kernel booted with by executing **cat / |