LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-22-2008, 10:04 AM   #1
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Rep: Reputation: 15
How to capture boot messages?


Hi,
My question is in the header.
best regards
torben friis
 
Old 11-22-2008, 10:10 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
see the log files in /var
If logging is not enabled, do that
 
Old 11-24-2008, 05:55 AM   #3
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
boot logging

Quote:
Originally Posted by amani View Post
see the log files in /var
If logging is not enabled, do that
Thanks Amani,
How do I enable boot logging (Mandriva 2008)? I can find an empty file /var/log/boot.log and an entry local7.* -> pointing to that file in /etc/syslog.conf, but no explanation on how to do. WWW does'nt help.
regards
torben friis
 
Old 11-24-2008, 07:05 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
How do I enable boot logging (Mandriva 2008)?

# vi /etc/default/bootlogd

You’ll see the following lines:

# Run bootlogd at startup ?
BOOTLOGD_ENABLE=No

Change No to Yes
 
Old 11-24-2008, 09:27 AM   #5
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
boot logging

Quote:
Originally Posted by repo View Post
# vi /etc/default/bootlogd

You’ll see the following lines:

# Run bootlogd at startup ?
BOOTLOGD_ENABLE=No

Change No to Yes
Hi repo,
I had to make the file, but it had no effect. Could it be, since extensive searching www gives no result, that it is not possible to log to boot.log?
regards
torben friis
 
Old 11-24-2008, 09:45 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Is bootlogd instlalled ?
Perhaps mandriva doesn't instal it by deault?
Perhaps you can do a search for bootlogd on your system
 
Old 11-25-2008, 01:22 PM   #7
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I use Mandriva 2009.0 here and boot logging is enabled by default in /etc/sysconfig

The boot log file(s) are located at /var/log/boot.log and (at present) four archived log files exist: /var/log/boot.log.1.gz thru /var/log/boot.log.4.gz.

bootlogd is included in the package sysvinit-2.86-8mdv2009.0.x86_64 (on my system). There is also a 32 bit package sysvinit-2.86-8mdv2009.0.i586

HTH,
 
Old 11-26-2008, 04:34 AM   #8
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ernie View Post
I use Mandriva 2009.0 here and boot logging is enabled by default in /etc/sysconfig

The boot log file(s) are located at /var/log/boot.log and (at present) four archived log files exist: /var/log/boot.log.1.gz thru /var/log/boot.log.4.gz.

bootlogd is included in the package sysvinit-2.86-8mdv2009.0.x86_64 (on my system). There is also a 32 bit package sysvinit-2.86-8mdv2009.0.i586

HTH,
Thanks repo and ernie,
I found /sbin/bootlogd and ran it and got the message: cannot find console device &"-:1 in /dev.
But I have to install it so it runs when I boot - right?
I have Mandriva 2008 (32 bit), free and there is only /var/log/boot.log
regards
torben
 
Old 11-28-2008, 11:06 PM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
You need to be root to view logs.

Hi, to see what your kernel output during boot, type

dmesg |more

To check the errors when x starts, open as text

/home/user-name/.xsession-errors

Cheers, Glenn

<edit>You might need root access to view the log files in /var/log/, depends on security setting (I think).</edit>

Last edited by GlennsPref; 11-28-2008 at 11:11 PM. Reason: new point
 
Old 12-02-2008, 11:46 AM   #10
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GlennsPref View Post
Hi, to see what your kernel output during boot, type

dmesg |more

To check the errors when x starts, open as text

/home/user-name/.xsession-errors

Cheers, Glenn

<edit>You might need root access to view the log files in /var/log/, depends on security setting (I think).</edit>
Hi Glenn,
I did not understand .xsession-errors. I now get just one line in boot.log for every boot telling that resolv.conf has been updated.
But if I key Esc and I at a certain point in boot I can step through the boot. Maybe the best.
regards
torben
 
Old 12-02-2008, 07:34 PM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Wink

dmesg is a log file found /vag/log/

piping it to more, a way to view text.

From a shell, or a teminal for the shell from your favourite window manager,

like xterm or konsole.
For long texts you may need to increase the buffer for
konsole to be able to display all the lines, not just the
last bit.

This is how you view the messages captured during (AFTER) boot.

dmesg | more

use the "space" key to scroll down as you read. When it reaches the end it exits.

You can copy and paste from the terminal/shell if you have a GUI. For later reference.

To view the screen errors, if any, type

cat /var/log/Xorg.0.log | grep EE

This will only display lines with EE from the current log.

To view the whole .xsession-errors (it's a hidden-system file)file, type

vim ~/.xsession-errors

use the vi manual to get the key strokes for vi...
Code:
arrows and PageUp PageDown work as normal to navigate
i insert, to insert
esc to exit (all modes) insert mode
:wq to write and quit
:q to quit without writing
! to force command :wq
dd delete line
dw delete word
a enter append mode
e enter edit mode
/ find forwards
:w save
see how you go, Glenn

Last edited by GlennsPref; 12-02-2008 at 07:36 PM.
 
Old 12-07-2008, 01:48 PM   #12
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GlennsPref View Post
dmesg is a log file found /vag/log/

piping it to more, a way to view text.

From a shell, or a teminal for the shell from your favourite window manager,

like xterm or konsole.
For long texts you may need to increase the buffer for
konsole to be able to display all the lines, not just the
last bit.

This is how you view the messages captured during (AFTER) boot.

dmesg | more

use the "space" key to scroll down as you read. When it reaches the end it exits.

You can copy and paste from the terminal/shell if you have a GUI. For later reference.

To view the screen errors, if any, type

cat /var/log/Xorg.0.log | grep EE

This will only display lines with EE from the current log.

To view the whole .xsession-errors (it's a hidden-system file)file, type

vim ~/.xsession-errors

use the vi manual to get the key strokes for vi...
Code:
arrows and PageUp PageDown work as normal to navigate
i insert, to insert
esc to exit (all modes) insert mode
:wq to write and quit
:q to quit without writing
! to force command :wq
dd delete line
dw delete word
a enter append mode
e enter edit mode
/ find forwards
:w save
see how you go, Glenn
Hi Glenn,
Thanks very much. That was clear.
best regards
torben
 
Old 11-14-2010, 11:22 AM   #13
simeon.mattes
Member
 
Registered: Feb 2009
Posts: 60

Rep: Reputation: 15
How is that possible in slackware? There are some log files in /var/log but I would like only one file which has all the boot messages.

Last edited by simeon.mattes; 11-14-2010 at 11:24 AM.
 
Old 11-14-2010, 12:49 PM   #14
simeon.mattes
Member
 
Registered: Feb 2009
Posts: 60

Rep: Reputation: 15
What worked for me, but I don't know if there is a problem with that is:

at the beginning of /etc/rc.d/rc.S

bootlogd -l /var/log/boot/boot.$(date +%Y%m%d.%H%M%S)

This means that all messages will be written in /var/log/boot/boot.yyyymmdd.HHMMSS file


However bootlogd should be installed in your system
 
Old 11-14-2010, 01:18 PM   #15
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by simeon.mattes View Post
How is that possible in slackware? There are some log files in /var/log but I would like only one file which has all the boot messages.
Summarised in this LQ post. Slackware64 13.1 in a VirtualBox VM does allow Shift+PgUp/PgDn paging of tty1/console but not on real hardware
 
  


Reply



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 find/capture install messages gw1500se Mandriva 5 11-08-2008 07:22 AM
How to capture SCTP messages on Ethereal???(urgent) praveendandin Linux - Newbie 1 02-24-2008 11:40 AM
Hide boot messages (not using frame/boot/gensplash) noisebleed Linux - Kernel 0 01-31-2008 09:01 AM
Boot lockup/TV Capture Card quentusrex Debian 1 06-13-2005 06:19 AM
how to capture error messages during ./configure or make rsol4747 Linux - Newbie 3 02-22-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:00 AM.

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
Open Source Consulting | Domain Registration