Dmesg from previous boot?

What’s the Fedora way of checking dmesg output from the previous boot?

Try: journalctl -b -1. You might have to run that command with sudo, but I don’t think so.

Good luck!

1 Like

For some reason I was getting that condensed before…and now it outputted all lines. Thanks.

I believe the only way to check the dmesg messages from an earlier boot is to look at the journalctl output
journalctl -b -1 --system
It may become necessary to use sudo with that since dmesg now requires the use of sudo to see the content but it worked as my regular user just now.

About the permissions needed to read the system journal, this is from the manual page:

All users are granted access to their private per-user journals. However, by default, only root and users who are members of a few special groups are granted access to the system journal and the journals of other users. Members of the groups “systemd-journal”, “adm”, and “wheel” can read all journal files. Note that the two latter groups traditionally have additional privileges specified by the distribution. Members of the “wheel” group can often perform administrative tasks.

1 Like