Logging Console Boot Messages
Hi, I am getting some output during boot up that does not appear in any of the log files in /var/log. How can I get access to these messages? I would like them logged in the future...that is, I would like to have a log file that is an exact duplicate of the output I see during bootup (no extra details, no missing details...just an exact duplicate).
|
The naive brute-force solution would be to use tee (man tee) to, well, tee stdout to /where/ever/stdout.log; similarly for stderr.
I do believe (hope, at least), however, that better solutions exist. I wouldn't know any :( hth --Jonas |
Did you look in /etc/syslog.conf ?
look for a line that has /dev/console on the right side like kern.warning /dev/console ("kern.warning" is just an example) change /dev/console to /var/log/<mybootmessages> and you need to run from the command line: touch /var/log/<mybootmessages> (of course naming this latter file whatever ) HTH |
If I change the output from /dev/console to a log file, then I won't see it at the console anymore. I could try tee, but there should be a nice way to keep the output going to console...additionally, it should log these to a file. Note, to see the display before I log in, I could hold down shift and press page-up. This will allow me to see the messages...so this is stored in some buffer. Can't I output the buffer to a file?
|
Quote:
http://homepages.tesco.net/~J.deBoyn...o-answers.html |
after boot is completed,
as root; dmesg |more of course this isn't everything that scrolled by on boot ... |
All times are GMT -5. The time now is 11:14 PM. |