LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-22-2007, 10:37 PM   #1
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Rep: Reputation: 15
where do startup messages live?


Hi,

How can I access the messages I get on startup once I've logged in?
I mean after the little grub screen where I choose my kernel, all those nice messages that scroll past telling me which things are starting and which things have failed. Usually they go by so fast I can't read them (and no, hitting pause on my keyboard doesn't work) but I'm sure they must get stored somewhere. I've looked around in /var/log but I don't really know what these messages would be called.

Thanks
 
Old 04-22-2007, 11:23 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
After you boot, open a console and run:

$ dmesg

To print this lengthy output to a text file, run:

$ dmesg > dmesg.txt

and the output of the dmesg command will be written to the text file, dmesg.txt, in your home directory.
 
Old 04-23-2007, 12:05 AM   #3
person132
Member
 
Registered: Jan 2006
Posts: 30

Rep: Reputation: 15
You might also type

dmesg | less

to get a scrollable version (assuming you distribution has less installed)
 
Old 04-23-2007, 01:16 AM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Why not just read the file that's already present (if it is present on whatever system you are running)? /var/log/dmesg and while you're there, there's more of the same type stuff in /var/log/messages if your system produces that file too. (they also can be found in /var/adm)
 
Old 04-23-2007, 02:00 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The start and stop messages probably aren't there - they come from the init scripts.
Try something like bootlog for those.
 
Old 04-23-2007, 07:34 PM   #6
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
Hi,

Syg00, what is "something like bootlog"? Does that mean /var/log/bootlog? Also, Grapefruitgirl, what is "the same type stuff"? Is that just a copy of the startup messages or other messages entirely? I'm not trying to be pedantic, I'm just a bit dense.

I tried dmesg and got a TON of messages. I mean, my terminal was scrolling for about five minutes. Guess that's why you suggested printing to a text file. Is there anyway to just get the errors, not the things that went right?

Thanks,

PS: Love the username, Kilgore. Vonnegut's my favorite author.
 
Old 04-23-2007, 07:55 PM   #7
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Well, on my system, /var/log/dmesg and /var/log/messages contain about 98% the same information. The files of the same name in /var/adm/ also contain the identical information.
As is often enough (I'm new to linux also) I could be off-track here, but I thought *MOST* linuxes produce these same files during bootup.
Getting *just* the errors might be more trouble than it's worth, but the bootup can be tweaked in various ways to lessen the amount of junk that is outputted. Such things as debug levels from drivers and kernel components can usually be configured to me more or less verbose.
 
Old 04-23-2007, 09:41 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Bootlog is handled differently depending on distro. I think for Debian you need to look in /etc/default/bootlogd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing Startup messages Ian D Linux - Software 2 03-08-2007 07:40 PM
Error Messages at startup of KDE Kevin1290X KTPX Linux - Software 0 07-05-2004 03:52 PM
Startup messages SolarBear Slackware 8 06-22-2004 09:16 PM
squid messages in the startup log hiplainsdrifter Linux - Networking 1 05-04-2004 04:22 AM
MDK8.2 --> Turning on startup messages amp2000 Linux - Distributions 3 05-23-2002 03:15 PM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration