如何再次看到启动时的错误?

如何再次看到启动时的错误?

我在启动时看到一些错误

[ FAILED ] bla bla
[ FAILED ] bla bla

但是在直接进入 GUI 之前速度太快了,如何查看这些消息?我已经尝试过了journalctl -r,还是dmesg -w没有显示类似的内容。 ctrl+alt+F1/F2 也已经成为 GUI,ctrl+alt+F3 到 F6 也只是普通的 tty 登录提示,所以再也看不到那些了。

那么如何再次看到那些启动错误呢?

我正在使用 PopOS 22.04 (Ubuntu 22.04)

答案1

Debian 11 似乎有/var/log/boot.log(及其 logrotated 旧版本boot.log.1boot.log.2)。它似乎包含您正在寻找的消息类型。

也许Ubuntu也有这个功能?

例子:

------------ <timestamp redacted> ------------
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Debian GNU/Linux 11 (bullseye)!

[  OK  ] Created slice system-modprobe.slice.
[  OK  ] Created slice system-openvpn.slice.
[  OK  ] Created slice system-postfix.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[  OK  ] Reached target Slices.

...等等,如果您使用查看它,则具有颜色和大胆的效果less -R boot.log

相关内容