LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-05-2012, 11:36 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
How to redirect boot messages (user-mode/kernel-mode/whatever) to a file ?


Hi all.

I have been debugging a NetworkManager issue on Fedora; and I am wanting to have a look at the boot messages (leisurely )

For this, I need to have the boot messages (whatever mode) be persisted to a file; I can look at the file contents after the system finishes booting up. How could I do this?


I will be grateful for a reply.


Thanks and Regards,
Ajay
 
Old 04-05-2012, 12:42 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
The dmesg command will show your hardware boot messages. Is that what you are looking for?
 
1 members found this post helpful.
Old 04-05-2012, 12:48 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You could also look at /var/log/messages for boot messages. There may also be other logs of interest in /var/log.
 
1 members found this post helpful.
Old 04-05-2012, 12:50 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
/var/log/messages does not contain boot information. /var/log/dmesg and /var/log/dmesg.old contain the boot information. The command
Code:
 dmesg | less
will allow you to view it.
 
1 members found this post helpful.
Old 04-05-2012, 01:21 PM   #5
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks Kustom42 and bigrigdriver.

The information provided by you guys was useful, thanks a lot

But, what I am wanting is all the messgaes that appear during boot-up. For example, during the limited time I had as the mesages flied by during bootup, I could see messages like "Starting NetworkManager dameon"; "Starting avahi daemon", etc. etc.
But I could not find these messages anywhere in "dmesg", or "/var/log/messages".

Any way we could get ALL the messages?


Thanks anyways.

Regards,
Ajay
 
Old 04-05-2012, 01:30 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Those messages will not do much for you. The log file /var/log/messages will report any errors collected by syslogd. Dmesg will show boot errors for hardware. The other daemons may have their own logging but most will not log all messages. Some distros have the /etc/init.d/functions file set to log to a /var/log/boot.log file. You can google search for how to set this up if you do not have the boot.log file available to you.
 
Old 04-25-2012, 10:06 AM   #7
nigel333
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
When I wanted to investigate my fast moving openSUSE 11.3 boot startup screen, at leisure, I found it very useful to:-

1. first log in as root.
2. open up the /etc/sysconfig/boot file using vi...
3. set PROMPT_FOR_CONFIRM="yes" and CONFIRM_PROMPT_TIMEOUT="300".
4. Save edits and reboot.

Then I could easily note the name of each boot script being run, in order, and of each daemon being summoned. :-)
 
  


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
How to identify processes running in user mode and kernel mode subha109 Linux - Kernel 1 10-21-2009 12:37 PM
how to use the buffer of user mode in kernel mode liqiuhua123 Programming 2 02-05-2009 10:54 PM
how to switch from kernel mode to user mode manas_sem Programming 3 01-23-2007 10:14 AM
Interface between user mode and kernel mode santosh_pn Linux - Software 1 06-17-2005 08:20 AM
how to open /proc file in RW mode in user mode? cranium2004 Programming 3 03-06-2005 04:03 AM


All times are GMT -5. The time now is 10:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration