Debian / Ubuntu Record Boot Messages

by Vivek Gite on February 3, 2010 · 4 comments

Once the userspace boot messages are gone from the console in Debian, they're gone forever. How do I log all messages sent to the /dev/console device to a logfile under Debian Linux sever?

You need to use the bootlogd to record boot messages to a file called /var/log/boot. However, this is turned off by default. Edit /etc/default/bootlogd, enter:
# vi /etc/default/bootlogd
To run bootlogd at startup set it as follows:

BOOTLOGD_ENABLE=yes

After reboot you can see message in /var/log/boot:
# tail -f /var/log/boot
OR
# egrep -iw 'word1|err|warn' /var/log/boot

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 4 comments… read them below or add one }

1 Al B.. February 3, 2010

Interesting…But I thought usually whatever is in console is usually piped to messages anyway

Reply

2 dj February 6, 2010
3 techbrainless February 12, 2010

Thanks for the nice post ,

dj you are right regarding Ubuntu , i have tried the above method but it did not work for me (I am using ubuntu 9.10) but unfortunately i have just noticed your comment after applying the above method ……………………..

Reply

4 Yogesh May 18, 2010

How do I do same with CentOS/RHEL?
Plz help Vivek!

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 10 + 5 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: