问题原文
原帖链接 · MarkDBlackwell · CC BY-SA 3.0
How can the messages that scroll by when booting a Debian system be reviewed later?
In other words, how can I review absolutely all of them conveniently? That's the important point to the question; merely a subset of them is insufficient.
Some boot time messages are written only to /var/log/daemon.log and /var/log/syslog, where I have seen messages like: udevd[240]: SYSFS{}= will be removed in a future udev version.
In squeeze, these are not in /var/log/dmesg. Nor are they in /var/log/boot with setting BOOTLOGD_ENABLE=yes in /etc/default/bootlogd and package bootlogd installed.
For more details on rsyslogd's various logging locations see your /etc/rsyslog.conf.
已采纳解答
原帖链接 · MarkDBlackwell · CC BY-SA 3.0
Bootup messages pass by so fleetingly that, for some, one might not be sure what they say. You may wish to check all the files where they might be logged, in addition to the usual (well-known) log files, for verification purposes (at least).
On Debian, logs generally are kept in directory /var/log.
After booting, what changed there today (which files) can be seen in the Bash shell by:
sudo ls -ld --sort=time `sudo find /var/log -type f -daystart -ctime 0 | sed -r 's/^.*\.([0-9]+|old|gz)$//g'`
The scrolling output may contain interesting strings like 'will be removed'. Here's how to find them:
sudo grep -ilF 'will be removed' `sudo find /var/log -type f -daystart -ctime 0 | sed -r 's/^.*\.([0-9]+|old|gz)$//g' | sort` > log-list; sudo nano `cat log-list`
Boot-time logging can be enabled by:
apt-get install bootlogd
and edit /etc/default/bootlogd to contain
BOOTLOGD_ENABLE=yes
Unfortunately, bootlogd seems unavailable on squeeze.
For color information, see here.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
