Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I would like to add a line to the inittab that will create a terminal console, lets say tty11, and I would like that console to display the output from dmesg. (this tty will have no other purpose in life but to output dmesg)
this would allow me to press alt+f11 at any time to view anything that might have changed/updated both during the boot process and after.
In inittab, you add a line like (in you are running standard sysV init):
c7:2345:respawn:bash -c "cat /proc/kmsg >/dev/tty11"
or you can add it anywhere in your boot process (like in /etc/rc.d or anywhere your distro execute the code)
line in the inittab and I get messages on tty1 saying that c7 will be halted for 5 min.
when I switch over to tty11 I see no output
c7:2345:respawn:bash -c "dmesg -c >/dev/tty11"
while I was able to see the information I expected to see on tty11 but I was unable to scroll up or down, and I was still recieving the c7 will be halted for 5min messages on tty1
I like the output generated by dmesg, it is helpful when different events trigger... such as inserting a usb device ...it is also helpful to be able to see what is going on during the boot process, so I can learn how things are being loaded.
I must be missing something...
as for the console=tty11 setting, I do not have the /boot/grub/menu.lst file.
Last edited by joeuser123; 02-26-2009 at 04:11 PM.
does it work if you just type bash -c "cat /proc/kmsg >/dev/tty11" on the terminal as root?
expected result: the command should hang and you should see kernel messages on /des/tty11 (only new messages, not old ones). At first if will not print anything but if you insert a module it should be printed there.