Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old July 18th, 2005   #1
Sephiriz
Just Give Me the Beans!
 
Sephiriz's Avatar
 
Join Date: Jul 2005
Location: New York
Beans: 53
Send a message via AIM to Sephiriz
HOWTO: Log Boot Messages

At times I find it very difficult to see what has succesfully loaded or not during boot up, and at those times I wish I could have a log to look over in calm. After inquiring, someone (namely Nequeo) discovered this logging functionality.

Here's how to set it up:

You need to enable boot logging by opening a terminal and typing the following:
Code:
$ sudo gedit /etc/default/bootlogd
The text editor will open, and the following will be show:

Code:
# Run bootlogd at startup ?
BOOTLOGD_ENABLE=No
Change BOOTLOGD_ENABLE to yes

Now, everytime you restart, /var/log/boot will be created, and it will contain a log of all your boot messages. You need to be root to open it, so you can easily open it up again with sudo.

All thanks go to Nequeo for figuring this out, he also added the following:

Quote:
NOTE: On my machine, I get a message on my screen during boot saying that the boot log has failed. But it was lying, the boot log worked just fine.

ALSO NOTE: The boot log will be full of lines like this '^[[A^[[74G[ ok ]'. All that 'garbage' is just the color code used to display the text as white or red during boot. It seems to get captured along with all the rest of the text.
So there you have it! This is a really useful feature, and I was slightly surprised that this was disabled by default.
Sephiriz is offline   Reply With Quote
Old July 18th, 2005   #2
renoir98
5 Cups of Ubuntu
 
Join Date: Nov 2004
Beans: 19
Re: HOWTO: Log Boot Messages

Quote:
This is a really useful feature, and I was slightly surprised that this was disabled by default.
Totally agreed!
renoir98 is offline   Reply With Quote
Old September 29th, 2005   #3
raphha
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 37
Kubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Log Boot Messages

Very helpful indeed, thank you Sephiriz
raph
raphha is offline   Reply With Quote
Old September 29th, 2005   #4
henriquemaia
Fresh Brewed Ubuntu
 
henriquemaia's Avatar
 
Join Date: Apr 2005
Location: Berlin, Germany
Beans: 1,213
Send a message via ICQ to henriquemaia Send a message via AIM to henriquemaia Send a message via Skype™ to henriquemaia
Re: HOWTO: Log Boot Messages

Very helpful! Thanks a lot.
henriquemaia is offline   Reply With Quote
Old September 29th, 2005   #5
mlomker
Skinny Extra Sweet Ubuntu
 
mlomker's Avatar
 
Join Date: Aug 2005
Location: Saint Paul, MN
Beans: 2,903
Re: HOWTO: Log Boot Messages

I was looking for this the other day and couldn't find it. I assumed that since it was running out of rcS.d that it must just be the kernel.log or something.

As I open a terminal to read through ALL of the files in /etc/default...
mlomker is offline   Reply With Quote
Old February 21st, 2008   #6
DioSonoIo
First Cup of Ubuntu
 
Join Date: Feb 2008
Beans: 7
Re: HOWTO: Log Boot Messages

Quote:
Originally Posted by henriquemaia View Post
Very helpful! Thanks a lot.
DioSonoIo is offline   Reply With Quote
Old February 25th, 2006   #7
Marcos.Rufino
Just Give Me the Beans!
 
Join Date: Oct 2005
Location: São Paulo, Brazil
Beans: 80
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to Marcos.Rufino
Re: HOWTO: Log Boot Messages

Quote:
Originally Posted by renoir98
Totally agreed!
For Christ sake!! I've lost hours trying to figure out where I could read the boot log. I really don't know why the developers disabled this log. Thanks!
Marcos.Rufino is offline   Reply With Quote
Old July 4th, 2006   #8
Peepsalot
Quad Shot of Ubuntu
 
Peepsalot's Avatar
 
Join Date: Apr 2006
Location: Tejas
Beans: 442
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Log Boot Messages

Hmm, I tried this and rebooted, but I see no boot file in /var/log
Any ideas what is going on?

There is a bootstrap.log, but I don't think that is the same thing.
__________________
Quote:
Originally Posted by smcnally
For me, it's all about the penguin...If the Linux mascot was a tiger or an elephant, I would have never even tried it.

Last edited by Peepsalot; July 4th, 2006 at 12:43 PM..
Peepsalot is offline   Reply With Quote
Old July 7th, 2006   #9
jfdill_2
A Carafe of Ubuntu
 
jfdill_2's Avatar
 
Join Date: Mar 2005
Location: MD, US
Beans: 119
Re: HOWTO: Log Boot Messages

bootlogd seems to be borked:

bootlogd: cannot find console device 136:0 in /dev

Trying this to start it up before udev:

update-rc.d -f bootlogd remove
update-rc.d bootlogd defaults 08

Update: Yeah, that fixed it for me.

Last edited by jfdill_2; July 7th, 2006 at 03:02 PM..
jfdill_2 is offline   Reply With Quote
Old August 21st, 2006   #10
UeB
Just Give Me the Beans!
 
Join Date: Nov 2005
Location: Vienna
Beans: 80
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Log Boot Messages

Hallo!

i also want to use this usefull feature.
but after changing
BOOTLOGD_ENABLE=No
to
BOOTLOGD_ENABLE=yes
in /etc/default/bootlogd

and rebooting twice still no file nameed "boot" exists in /vat/log or anywhere on the hard disk (after serching for "boot")

anybody have an idea why?
thanks!

PS i use the dapper version of ubuntu i dont know if this makes a difference...
UeB is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:56 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry