LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2015, 01:59 PM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,387

Rep: Reputation: 51
How to not clear screen at the end of boot sequence?


Hello everyone,

I running a Debian Whezzy with UML. I see the boot sequence, that starts with:

Code:
Core dump limits :
	soft - 0
	hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking environment variables for a tempdir...none found
Checking if /dev/shm is on tmpfs...OK
Checking PROT_EXEC mmap in /dev/shm...OK
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
[ ok ] ...
[ ok ] ...
[ ok ] ...
And goes on. When it ends, though, it erases the last few messages to clear the screen:

Code:
[ ok ] Starting the hotplug events dispatcher: udevd.
udevd[350]: starting version 175
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
EXT4-fs (ubda): re-mounted. Opts: (null)

### THERE WERE MORE MESSAGES HERE, WHERE THE START OF THE
### LOGIN PROMPT IS PUT, IN THE UPPER AREA OF THE SCREEN:
Debian GNU/Linux 7 coiso tty0

computer login: root
Last login: Wed Nov 11 18:34:31 UTC 2015 on tty0
Linux computer 4.2.6 #1 Wed Nov 11 15:14:29 BRST 2015 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
$
What should I do to keep all the messages? Where should I change something?

:-/
 
Old 11-12-2015, 09:37 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Make a backup copy of /etc/inittab, then open your /etc/inittab as root in a text editor and find the entries that look like this
Code:
1:2345:respawn:/sbin/getty 38400 tty1
Add the --noclear option to the getty commands, so that they look like this
Code:
1:2345:respawn:/sbin/getty --noclear 38400 tty1
 
1 members found this post helpful.
Old 11-12-2015, 04:20 PM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,387

Original Poster
Rep: Reputation: 51
Arrow

Got it, thank you very much! Not hard at all, but something hard to search when you don't know exactly what it is. Too many unrelated results - glad we have fora like these here.

My case was a bit different, though, so I'm putting here my /etc/inittab, and the change I've made to it. It may be useful to others as well.

Code:
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
#0:2345:respawn:/sbin/getty 38400 tty0
#1:2345:respawn:/sbin/getty 38400 tty1
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

# Virtual environments rarely need more than one console:
c0:1235:respawn:/sbin/getty --noclear 38400 tty0 linux
s0:1235:respawn:/sbin/getty --noclear 115200 ttyS0 linux
The Debian image I use seems to be set up for UML, after reading these lines (and the only changes I did are the red parts in the end).

Last edited by dedec0; 11-12-2015 at 04:22 PM.
 
Old 11-12-2015, 05:46 PM   #4
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,190
Blog Entries: 2

Rep: Reputation: 277Reputation: 277Reputation: 277
You can also install bootlogd which will log all of those messages to /var/log/boot.
 
1 members found this post helpful.
Old 11-13-2015, 07:27 AM   #5
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,387

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by replica9000 View Post
You can also install bootlogd which will log all of those messages to /var/log/boot.
dmesg? (I think dmesg have these messages, at least for sometime until its limited space; probably a wrong guess)

Last edited by dedec0; 11-13-2015 at 09:06 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Shutdown sequence stops before end Thomas Mueller Debian 3 05-27-2013 04:39 PM
How to display boot sequence on external screen? hyperfluid Linux - Newbie 2 12-13-2010 02:23 PM
Are results sent to an output file only at the end of a command sequence? Zebe Linux - Newbie 2 03-19-2009 07:34 PM
'rivafb_pan_display START/END' screen overun@boot (splashy install) oldtlhingan Linux - Newbie 1 03-04-2006 07:45 PM
I would like to have the mandrake screen instead of the text boot sequence alberto2498 Linux - General 20 09-06-2003 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration