LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-26-2007, 12:04 PM   #1
val3xiv
Member
 
Registered: Jun 2007
Location: ita
Distribution: slackware
Posts: 35

Rep: Reputation: 15
Slackware 12 boot log


Hi all.
I think this is a pretty stupid question, but... it is my problem.
I cannot retrieve messages that my Slackware 12 shows to me during boot. When it boot I can see some messages with the prefix FATAL, but, once booted, I cannot retrieve again these messages. I tryed with dmesg, but I don't see all messages.
Any suggest?
Thanks in advance.

VALTER
 
Old 10-26-2007, 12:39 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Have alook through the logs in /var/log, like syslog. dmesg only gives you part of the log info which is produced.
 
Old 10-26-2007, 01:30 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
If you boot into run level 3, you can always do shift-pgup to scroll back the screen.

Brian
 
Old 10-26-2007, 06:42 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
val3xiv,

You should see all the messages by issuing "dmesg", from the beginning of the boot process. The first line should print out your kernel version, such as:
Code:
mingdao@wired_silas:~$ dmesg
Linux version 2.6.21.5-smp (root@midas) (gcc version 4.1.2) #2 SMP Tue Jun 19 14:58:11 CDT 2007
unless your system has been up so long that other kernel messages have pushed your buffer too large. Issue and read "man dmesg".

Is your problem that you can't scroll back in the terminal where you're trying to read the messages? Or can you scroll back to where you issued "dmesg" and they do not start with that line which states your kernel version?
 
Old 10-26-2007, 07:31 PM   #5
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 32
Quote:
Originally Posted by Bruce Hill View Post
val3xiv,

You should see all the messages by issuing "dmesg", from the beginning of the boot process.
I certainly don't get all boot messages. I think there's a kernel setting as dmesg reads some sort of ring buffer? "man dmesg" alludes to this too.
 
Old 10-26-2007, 07:51 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Can you just not scroll? Is that your problem?

I have three computers in this LAN atm running Slackware-12.0. No problem on any of them outputting all of dmesg. What do you get when you issue "dmesg | less":
Code:
mingdao@wired_silas:~$ dmesg | less
Linux version 2.6.21.5-smp (root@midas) (gcc version 4.1.2) #2 SMP Tue Jun 19 14:58:11 CDT 2007
BIOS-provided physical RAM map:
sanitize start
sanitize end
copy_e820_map() start: 0000000000000000 size: 000000000009fc00 end: 000000000009fc00 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000000009fc00 size: 0000000000000400 end: 00000000000a0000 type: 2
copy_e820_map() start: 00000000000e4000 size: 000000000001c000 end: 0000000000100000 type: 2
copy_e820_map() start: 0000000000100000 size: 000000007fe30000 end: 000000007ff30000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000007ff30000 size: 0000000000010000 end: 000000007ff40000 type: 3
copy_e820_map() start: 000000007ff40000 size: 00000000000b0000 end: 000000007fff0000 type: 4
copy_e820_map() start: 000000007fff0000 size: 0000000000010000 end: 0000000080000000 type: 2
copy_e820_map() start: 00000000fff80000 size: 0000000000080000 end: 0000000100000000 type: 2
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007ff30000 (usable)
 BIOS-e820: 000000007ff30000 - 000000007ff40000 (ACPI data)
 BIOS-e820: 000000007ff40000 - 000000007fff0000 (ACPI NVS)
 BIOS-e820: 000000007fff0000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
1151MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000ff780
Entering add_active_range(0, 0, 524080) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   229376
  HighMem    229376 ->   524080
early_node_map[1] active PFN ranges
    0:        0 ->   524080
On node 0 totalpages: 524080
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 2302 pages used for memmap
  HighMem zone: 292402 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP 000FAAC0, 0021 (r2 ACPIAM)
ACPI: XSDT 7FF30100, 003C (r1 A M I  OEMXSDT  10000409 MSFT       97)
ACPI: FACP 7FF30290, 00F4 (r3 A M I  OEMFACP  10000409 MSFT       97)
ACPI: DSDT 7FF303E0, 362A (r1  A0091 A0091006        6 MSFT  100000D)
ACPI: FACS 7FF40000, 0040
ACPI: APIC 7FF30390, 004A (r1 A M I  OEMAPIC  10000409 MSFT       97)
ACPI: OEMB 7FF40040, 003F (r1 A M I  OEMBIOS  10000409 MSFT       97)
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Code:
mingdao@james:~$ dmesg | less
Linux version 2.6.21.5-smp (root@midas) (gcc version 4.1.2) #2 SMP Tue Jun 19 14:58:11 CDT 2007
BIOS-provided physical RAM map:
sanitize start
sanitize end
copy_e820_map() start: 0000000000000000 size: 000000000009d800 end: 000000000009d800 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000000009d800 size: 0000000000002800 end: 00000000000a0000 type: 2
copy_e820_map() start: 00000000000f0000 size: 0000000000010000 end: 0000000000100000 type: 2
copy_e820_map() start: 0000000000100000 size: 000000003fefb000 end: 000000003fffb000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000003fffb000 size: 0000000000004000 end: 000000003ffff000 type: 3
copy_e820_map() start: 000000003ffff000 size: 0000000000001000 end: 0000000040000000 type: 4
copy_e820_map() start: 00000000fec00000 size: 0000000000001000 end: 00000000fec01000 type: 2
copy_e820_map() start: 00000000fee00000 size: 0000000000001000 end: 00000000fee01000 type: 2
copy_e820_map() start: 00000000ffff0000 size: 0000000000010000 end: 0000000100000000 type: 2
 BIOS-e820: 0000000000000000 - 000000000009d800 (usable)
 BIOS-e820: 000000000009d800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffb000 (usable)
 BIOS-e820: 000000003fffb000 - 000000003ffff000 (ACPI data)
 BIOS-e820: 000000003ffff000 - 0000000040000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
127MB HIGHMEM available.
896MB LOWMEM available.
Entering add_active_range(0, 0, 262139) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   229376
  HighMem    229376 ->   262139
early_node_map[1] active PFN ranges
    0:        0 ->   262139
On node 0 totalpages: 262139
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 255 pages used for memmap
  HighMem zone: 32508 pages, LIFO batch:7
DMI 2.3 present.
ACPI: RSDP 000F5E30, 0014 (r0 ASUS  )
ACPI: RSDT 3FFFB000, 0030 (r1 ASUS   A7V600-X 42302E31 MSFT 31313031)
ACPI: FACP 3FFFB0B2, 0074 (r1 ASUS   A7V600-X 42302E31 MSFT 31313031)
ACPI: DSDT 3FFFB126, 3098 (r1   ASUS A7V600-X     1000 MSFT  100000B)
ACPI: FACS 3FFFF000, 0040
ACPI: BOOT 3FFFB030, 0028 (r1 ASUS   A7V600-X 42302E31 MSFT 31313031)
ACPI: APIC 3FFFB058, 005A (r1 ASUS   A7V600-X 42302E31 MSFT 31313031)
ACPI: PM-Timer IO Port: 0xe408
ACPI: Local APIC address 0xfee00000
Code:
anna@peter:~$ dmesg | less
Linux version 2.6.21.5-smp (root@midas) (gcc version 4.1.2) #2 SMP Tue Jun 19 14:58:11 CDT 2007
BIOS-provided physical RAM map:
sanitize start
sanitize end
copy_e820_map() start: 0000000000000000 size: 000000000009fc00 end: 000000000009fc00 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000000009fc00 size: 0000000000000400 end: 00000000000a0000 type: 2
copy_e820_map() start: 00000000000f0000 size: 0000000000010000 end: 0000000000100000 type: 2
copy_e820_map() start: 0000000000100000 size: 000000001fefc000 end: 000000001fffc000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000001fffc000 size: 0000000000003000 end: 000000001ffff000 type: 3
copy_e820_map() start: 000000001ffff000 size: 0000000000001000 end: 0000000020000000 type: 4
copy_e820_map() start: 00000000fec00000 size: 0000000000001000 end: 00000000fec01000 type: 2
copy_e820_map() start: 00000000fee00000 size: 0000000000001000 end: 00000000fee01000 type: 2
copy_e820_map() start: 00000000ffff0000 size: 0000000000010000 end: 0000000100000000 type: 2
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fffc000 (usable)
 BIOS-e820: 000000001fffc000 - 000000001ffff000 (ACPI data)
 BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
Entering add_active_range(0, 0, 131068) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   131068
  HighMem    131068 ->   131068
early_node_map[1] active PFN ranges
    0:        0 ->   131068
On node 0 totalpages: 131068
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 991 pages used for memmap
  Normal zone: 125981 pages, LIFO batch:31
  HighMem zone: 0 pages used for memmap
DMI 2.3 present.
ACPI: RSDP 000F5F50, 0014 (r0 ASUS  )
ACPI: RSDT 1FFFC000, 0030 (r1 ASUS   A7V8X-X  42302E31 MSFT 31313031)
ACPI: FACP 1FFFC0B2, 0074 (r1 ASUS   A7V8X-X  42302E31 MSFT 31313031)
ACPI: DSDT 1FFFC126, 2983 (r1   ASUS A7V8X-X      1000 MSFT  100000B)
ACPI: FACS 1FFFF000, 0040
ACPI: BOOT 1FFFC030, 0028 (r1 ASUS   A7V8X-X  42302E31 MSFT 31313031)
ACPI: APIC 1FFFC058, 005A (r1 ASUS   A7V8X-X  42302E31 MSFT 31313031)
ACPI: PM-Timer IO Port: 0xe408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Do you see the kernel information when you use less with dmesg?

If not, post the entire output of "dmesg". Might be easier to copy and paste if you make it into a file:
Code:
dmesg > dmesg.txt
 
Old 10-27-2007, 05:00 PM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
val3xiv,
I sympathize with your problem. I am sure that you are correct that not all messages seen at boot are stored in dmesg.
I had a similar issue some while back, and never really got to the bottom of it.
I think the answer lies somewhere in the fact that dmesg reports kernel messages. Your FATAL messages are (I think) coming from userspace.
Usually a problem will show up in one of the log files in /var/log, especially syslog or messages (see /etc/syslog.conf to see how these messages get divided according to severity).

The trouble is that the boot messages go past so fast that you can't easily read it. You may be able to slow it down by using a high resolution framebuffer mode eg 791.
The FATAL may not be as serious as it sounds. It could just be a module unable to load because you compiled it into the kernel.

tobyl
 
Old 11-02-2007, 06:36 AM   #8
val3xiv
Member
 
Registered: Jun 2007
Location: ita
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tobyl View Post
val3xiv,
I sympathize with your problem. I am sure that you are correct that not all messages seen at boot are stored in dmesg.
I had a similar issue some while back, and never really got to the bottom of it.
I think the answer lies somewhere in the fact that dmesg reports kernel messages. Your FATAL messages are (I think) coming from userspace.
Usually a problem will show up in one of the log files in /var/log, especially syslog or messages (see /etc/syslog.conf to see how these messages get divided according to severity).

The trouble is that the boot messages go past so fast that you can't easily read it. You may be able to slow it down by using a high resolution framebuffer mode eg 791.
The FATAL may not be as serious as it sounds. It could just be a module unable to load because you compiled it into the kernel.

tobyl
Ty tobyl. You focused perfectly my problem.
I know that with SHIFT PGUP I can read all my boot messages as soon as my boot process is ended, but my question is another: how can I retreive all my boot messages later and, for example, store them in a text file?
Still haven't found a solution.
Other ideas?
Thanks again

val3xiv
 
Old 11-02-2007, 06:45 AM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by val3xiv View Post
how can I retreive all my boot messages later and, for example, store them in a text file?
If you don't mind modifying your boot scripts, you can use the logger command to force commands to log their output. For example, in /etc/rc.d/rc.inet1 if /usr/bin/logger is executable (and syslogd is running), commands are logged to syslog. If /usr/bin/logger is not executable, commands output to stdout/stderr.

You could add your own logging in a similar way.
 
  


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
/var/log/boot.log doesn't exist??? big_gie Fedora 5 05-17-2008 05:44 AM
Logging is not happening on my /var/log/boot.log Copain Linux - Security 2 09-28-2007 05:34 PM
Slackware boot.log ?? dunka Slackware 5 11-27-2004 10:19 AM
boot log for slackware shanenin Linux - Software 2 10-16-2003 07:25 PM

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

All times are GMT -5. The time now is 11:36 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