Capturing verbose boot messages

Asked by peterzay

I have commented out the quiet splash in /etc/default/grub and want to capture all those console messages into a log file.

Can this be done?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

It's already in a log file, you can get it with:

dmesg > ~/dmesg.txt; gedit ~/.dmesg.txt

or if you don't want to make a file, run:

dmesg | less

Both are fine

Revision history for this message
peterzay (peterzay) said :
#2

Thanks.

Note the typo above in the gedit filename. The file is not hidden.

Here is the correct edit: gedit ~/dmesg.txt

Note also that some boot messages, those just before the user id login screen, do not appear in dmesg.txt. They can be found in /var/log/boot.log, well, mostly.

The message of EXT4 file system which I get on screen just before login panel does not show up anywhere in boot.log. It does, however, show up in dmesg.txt.

The on screen order of messages does not appear to follow the order in the log files. I can live with that.

Revision history for this message
peterzay (peterzay) said :
#3

Thanks actionparsnip, that solved my question.