LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-17-2005, 11:50 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754
Blog Entries: 1

Rep: Reputation: 34
Smile which files contain system startup logs....


Hello All,
As with any kernel panic or other reasons,we need to check/read the screen what is happening and its very fast sometimes scrolling up.So i thought 'dmesg' and various files in /var/log will help.But Some messages other than kernel messages are not found there too.Somebody can help me find any hidden files or is there any shell script/program to catch the screen messages..Thanks please help...
 
Old 12-17-2005, 01:08 PM   #2
cor67393
Member
 
Registered: May 2005
Distribution: Slackware 12.1
Posts: 50

Rep: Reputation: 15
Check /etc/syslog.conf (if you are using syslog as your logger) to see what is logged and where.

You might want to add
Code:
*.*  /dev/tty12
to the end of the file to have everything which syslog can handle be printed to your 12th console (ctrl-alt-f12).
 
Old 12-17-2005, 03:12 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Smile

Thank You..
 
Old 12-18-2005, 01:20 AM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,280

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you're looking for boot messages, you may need to enable logging of them first.

Edit the file /etc/default/bootlogd and add or change the following line:

BOOTLOGD_ENABLE=Yes

The next time you boot there will be a file /var/log/boot that contains your boot messages.

The /var/log directory is where you'll find many things logged. /var/log/messages is handy, as is /var/log/syslog. There are many others.
 
Old 12-18-2005, 03:00 PM   #5
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Thank You.that's what i exactly wanted.iedited BOOTLOGD_ENABLE=No to Yes.
 
Old 12-19-2005, 10:48 AM   #6
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

But i checked /var/log/ and there is no 'boot' file.so i 'touch'ed boot file.But after that also there is nothing i found in after every startup.so i tried restarting bootlogd:
Code:
cosmic:/# etc/init.d/bootlogd restart
Restarting Bootlog daemon: bootlogd: cannot find console device 136:1 in /dev
bootlogd.
cosmic:/#
please help

Last edited by deepclutch; 12-19-2005 at 10:57 AM.
 
Old 12-19-2005, 12:07 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,280

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I'm no sure why bootlogd won't work for you. Mine worked first time, every time, so I can't go in and do any troubleshooting (nothing to troubleshoot!) I don't even have a guess as to why yours isn't working. Sorry.
 
Old 12-19-2005, 10:44 PM   #8
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Smile

OK.I found from web that in sarge, the solution was to make sure that bootlogd starts before udev.
Change etc/rcS.d/S05bootlogd to etc/rcS.d/S03bootlogd. Udev is etc/rcS.d/S04udev.Also i checked these in /boot/config..
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

but am not able to understand the above properly.someone please show me howto use update-rc.d to achieve this...please help..Thank You
 
Old 12-20-2005, 09:22 AM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
well I would just do it this way... lower numbers start first so it's simply changing the name of the link.

mv /etc/rc2.d/S05bootlogd /etc/rc2.d/S03bootlogd



for update-rc.d you would do update-rc.d bootlogd start 03 2 3 4 5
 
Old 12-20-2005, 09:39 AM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,280

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by deepclutch
...but am not able to understand the above properly.someone please show me howto use update-rc.d to achieve this...please help..Thank You
[edit]Oops. Went off to talk on the phone while typing this post and now I see someone else posted the answe before I posted mine. Sorry about the duplicate info.[/edit]

I don't use update-rc.d (I manage my startup scripts manually).

To make the above change manually:

(1) Login as root
(2) Type "mv /etc/rcS.d/S05bootlogd /etc/rcS.d/S03bootlogd" (without the quotes)

On my system, where bootlogd works, it loads udev before bootlogd. However, I am running SID not SARGE and maybe there's a difference there.

Last edited by haertig; 12-20-2005 at 09:41 AM.
 
Old 12-20-2005, 03:32 PM   #11
deepclutch
Member
 
Registered: Nov 2004
Distribution: Devuan
Posts: 754

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Thanks to Both of You.I'm right now apt-getting Xorg backport for sarge and i edited as mv /etc/rcS.d/S05bootlogd /etc/rcS.d/S03bootlogd.i''ll reply after a reboot...

EDIT:Thanks both! Now bootlogd works perfectly.../EDIT

Last edited by deepclutch; 12-20-2005 at 03:55 PM.
 
  


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
Which files contains a full logs of system starting Up... deepclutch Linux - Software 6 12-17-2005 02:13 PM
Grub is not loaded on startup!!!!! logs on to win2k directly akshay_jp Linux - Software 3 10-13-2005 01:03 AM
System Logs NSKL Linux - General 1 06-07-2002 04:29 PM

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

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