LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-19-2010, 12:07 AM   #16
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Original Poster
Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179

Quote:
Originally Posted by gauchao View Post
Take a look into /var/log
Thanks gaucho. I am familiar with all the logs modified during boot in that directory. Did you have something specific in mind?

BTW, I have been experimenting with bootlogd and have found it generates a log under the following conditions:
  • /var/log/boot exists.
  • GRUB kernel line kernel /vmlinuz-huge-smp-2.6.29.6-smp root=/dev/sda7 console=/dev/tty0 ro.
  • bootlogd started at the end of rc.S
Having got something working I am experimenting to determine what is necessary. So far I have found that bootlogd does not produce a log when:
  1. /var/log/boot does not exist (subject to confirmation)
  2. bootlogd is started from rc.S:
    1. At the beginning.
    2. After starting udev.
 
Old 03-21-2010, 03:12 AM   #17
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Original Poster
Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Summarising recent experiments ...

No getty on tty1

Does not allow Shift+PgUp after boot has finished.

Commenting out the tty1 getty line in inittab does not result in tty1 being used for the graphical display manager (xdm on the test system) as suggested in the OP and does not, of course, display a logon prompt. But Shift+Pg does not work as it does during boot either. Perhaps the keyboard is switched from tty0 (console) to tty1 at the end of boot; it would be interesting to know how that works.

bootlogd

bootlogd creates and populates /var/log/boot providing:
  • /var/log/ is accessible when it is started.
  • The kernel is started with a valid console parameter.
Notes:
  1. Tested on Slackware 13.0 32-bit with bootlogd 2.86 and /var on a separate file system.
  2. bootlogd works with kernel parameter vga=791 (tested. There are reports, not Slackware-specific, of bootlogd not working with frame buffers).
  3. bootlogd will create /var/log/boot if it does not exist (tested. At least one version of bootlogd does not create it).
  4. If bootlogd is running at shutdown, it logs console shutdown messages up to "Unmounting remote filesystems" (tested. bootlogd was left running from startup to shutdown).
  5. The bootlogd man page says "If the logfile is not accessible, the messages will be buffered in-memory until it is" but test results did not support that; the earliest bootlogd startup that logged messages was in rc.S after "Mounting non-root local filesystems" and before the second swapon.
  6. bootlogd was not seen to log any activity on tty1 (there have been reports that it does so, including capturing passwords entered during logon).
 
Old 03-21-2010, 04:56 AM   #18
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
xdm does this just after authenticating the user login in /etc/X11/xdm/GiveConsole:
chown $USER /dev/console

You might try this in the boot params:
console=/dev/console
excerpt from a bootup:
Boot logging started on /dev/tty1(/dev/console)

Last edited by gnashley; 03-21-2010 at 05:55 AM.
 
  


Reply

Tags
inittab, tty, xdm


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
Hide boot messages (not using frame/boot/gensplash) noisebleed Linux - Kernel 0 01-31-2008 10:01 AM
Boot messages Fritz_Monroe Linux - Newbie 3 06-24-2005 07:09 AM
Remotely viewing boot messages during boot? flysideways Linux - Networking 6 05-11-2004 02:35 PM
Boot Message Review coolie Linux - Newbie 1 04-17-2004 05:51 PM
Boot messages not the same as "dmesg" or "/var/log/messages"? massai Linux - General 5 03-10-2004 01:18 AM


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