ttys 1-2 have disappeared
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
We got to our console only to find no prompt, and it echo back what we typed.
We managed to log in by switching ttys to one that had a login prompt.
Next:
$ ps ax | grep getty
4342 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
4343 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
4347 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
4349 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
20146 pts/3 R+ 0:00 grep getty
~$ ls -l /etc/event.d/
total 76
-rw-r--r-- 1 root root 260 2008-09-30 00:54 control-alt-delete
-rw-r--r-- 1 root root 299 2008-09-30 00:54 logd
-rw-r--r-- 1 root root 552 2008-09-30 00:54 rc0
-rw-r--r-- 1 root root 342 2008-09-30 00:54 rc1
-rw-r--r-- 1 root root 403 2008-09-30 00:54 rc2
-rw-r--r-- 1 root root 403 2008-09-30 00:54 rc3
-rw-r--r-- 1 root root 403 2008-09-30 00:54 rc4
-rw-r--r-- 1 root root 403 2008-09-30 00:54 rc5
-rw-r--r-- 1 root root 422 2008-09-30 00:54 rc6
-rw-r--r-- 1 root root 485 2008-09-30 00:54 rc-default
-rw-r--r-- 1 root root 392 2008-09-30 00:54 rcS
-rw-r--r-- 1 root root 575 2008-09-30 00:54 rcS-sulogin
-rw-r--r-- 1 root root 558 2008-09-30 00:54 sulogin
-rw-r--r-- 1 root root 306 2008-09-30 00:54 tty1
-rw-r--r-- 1 root root 300 2008-09-30 00:54 tty2
-rw-r--r-- 1 root root 300 2008-09-30 00:54 tty3
-rw-r--r-- 1 root root 300 2008-09-30 00:54 tty4
-rw-r--r-- 1 root root 300 2008-09-30 00:54 tty5
-rw-r--r-- 1 root root 300 2008-09-30 00:54 tty6
$ cat /etc/event.d/tty1
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/getty 38400 tty1
There's nothing in /var/log/ (grepped for 'getty').
Any ideas why these ttys would have disappeared and regardless how does one restart them in a safe way (it's a production LAMP box)?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: