Debugging a kernel on boot

Sometimes, your system might fail to boot changes within the kernel. Hence, it is important that when you're creating reports about these failures, all the appropriate information about debugging is included. This will be useful for the kernel team in order to resolve the issue.

How to do it…

If you are trying to capture error messages that appear during boot, then it is better to boot the kernel with the quiet and splash options removed. This helps you to see messages, if any, that appear on the screen.

To edit the boot option parameters, perform the following steps:

  1. Boot the machine.
  2. During the BIOS screen, press the Shift key and hold it down. You should see the Grub menu after the BIOS loads.
  3. Navigate to the kernel entry ...

Get Practical Linux Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.