How to enable boot messages, kernel messages and other logs of various services to be printed on screen during boot up?
5 Answers
You'd need to remove the kernel boot parameters quiet and splash from the linux line in GRUB:
- Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
- Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
- Go down to the line starting with
linux
and remove the parametersquiet
andsplash
. - Now press Ctrl + x to boot.
To make this change permanent:
From a terminal (or after pressing Alt + F2) run:
gksudo gedit /etc/default/grub
and enter your password.
Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT
and remove the parametersquiet
andsplash
.Save the file and close the editor.
Finally, start a terminal and run:
sudo update-grub
to update GRUB's configuration file.
-
I this still the recommended way? I remember that there is a keyboard shortcut you can press already during the boot process, during the splash screen, which will switch to the boot messages.– AlbertMay 2, 2020 at 10:47
-
There is a variable $vt_handoff passed as argument in the linux line, that must be removed manually and update-grub readds it... so the solution is editing grub.cfg manually also. Nov 12, 2021 at 10:44
Edit you bootloader kernel command-line and remove quiet
argument. You may also want to remove splash
argument to disable graphical animation during boot to be able to see the console with messages.
In more recent releases, including 12.04 and 12.10 it is also necessary to either delete, or change the GFXMODE
line to text
, as well as removing quiet
and splash
. (See the other answers.)
When making the changes permanent find the commented line:
#GRUB_GFXMODE=640x480
and remove the beginning #
, so it is no longer a comment, and also set its value to text
.
With the latter change the menu will be white on black in a larger text font, and therefore hold fewer entries, but the messages should be visible once an item is selected for booting.
Remove these 3 words/variable from linux command line:
quiet splash $vt_handoff
End add the argument to force verbosing:
debug
My linux line looks like this:
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=14xxee5-1e84-4xx5-9e17-a6xx5 ro debug