Sunday, June 26, 2016

grub2 - How can I show or hide boot messages when Ubuntu starts?


Is there a way to easily turn on/off showing the boot messages (loading the services) when Ubuntu starts? Is it something in Grub2?


I am running 10.04.



You would need to edit the file /etc/default/grub. In this file you'll find an entry called GRUB_CMDLINE_LINUX_DEFAULT. This entry must be edited to control the display of the splash screen.


The presence of the word splash in this entry enables the splash screen, with condensed text output. Adding quiet as well, results in just the splash screen; which is the default for the desktop edition since 10.04 (Lucid Lynx). In order to enable the "normal" text start up, you would remove both of these.


So, the default for the desktop, (i.e. splash screen only):


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" #Hide text and show splash

For the traditional, text display:


GRUB_CMDLINE_LINUX_DEFAULT=        #Show text but not the splash

For the splash, but the ability to show the boot messages by pressing Esc:


GRUB_CMDLINE_LINUX_DEFAULT="splash"

Or, finally, for just a (usually) black screen, try:


GRUB_CMDLINE_LINUX_DEFAULT=quiet   #Don't show Ubuntu bootup text
GRUB_CMDLINE_LINUX="console=tty12" #Don't show kernel text

After editing the file, you need to run update-grub.


sudo update-grub

For more details, see this: https://help.ubuntu.com/community/Grub2


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...