By removing the parameters quiet
and splash
from GRUB_CMDLINE_LINUX_DEFAULT
line at the /etc/default/grub
file, I am able to display the messages displayed by system startup scripts (services) to the screen during Ubuntu boot.
However, these messages are scrolling very fast and it is practically impossible to catch any FAILED
messages. The file /var/log/boot.log
used to hold these messages. For example:
# grep -a FAILED /var/log/boot.log
[FAILED] Failed to start Raise network interfaces.
...
However, this file is no longer updated (since April 2019) on my system, which suggests that starting with Ubuntu 19.04 it is deprecated. Where can I find that content on Ubuntu 19.10? Is there a way to capture the data displayed by init scripts on the console during boot to a file?
Note
The same functionality (i.e., the exact console text output) is not provided by journalctl
. For example:
# journalctl -b 0 | grep Raise
Jan 13 12:01:25 ... systemd[1]: Starting Raise network interfaces...
Jan 13 12:01:25 ... systemd[1]: Started Raise network interfaces.
After doing some tests, I finally got the following:
Bootlogd
is no longer supported.Plymouth
service takes over. The file/etc/default/bootlogd
is irrelevant.plymouth.service
to log messages to/var/log/boot.log
file, the file/etc/default/grub
should contain the following line:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
. Otherwise plymouth service will not log anything toboot.log
!So, the answer of @WinEunuuchs2Unix is more or less the correct one.
One may view messages from this boot with
Read
man journalctl
and see my AskUbuntu profile forjournalctl
hints.The problem has been around since Ubuntu 16.04:
Answers there also recommend
journalctl
but buried in comments:When I first started using 16.04 I recall
/var/log/boot.log
was empty but I didn't care enough to investigate. I looked after reading this question and now it is populated. There was a bug that has since been fixed:There may have been a bug regression in 19.10 or the
sysvinit
package is not installed. On my 16.04 installation I have this:To those that do not know, the advantage of
/var/log/boot.log
overjournalctl -b
is the color formatting that mirrors the console boot messages: