LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Logging Console Boot Messages (https://www.linuxquestions.org/questions/linux-general-1/logging-console-boot-messages-335177/)

candyman123 06-19-2005 01:06 PM

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).

jonaskoelker 06-19-2005 02:02 PM

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

jxi 06-19-2005 02:12 PM

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

candyman123 06-19-2005 02:24 PM

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?

jonaskoelker 06-19-2005 02:35 PM

Quote:

Can't I output the buffer to a file?
*gentle nudge*
http://homepages.tesco.net/~J.deBoyn...o-answers.html

jxi 06-19-2005 02:38 PM

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 02:47 PM.