No login prompt and no tty's

  • Moin!


    I have tested settings for my NIC and lost the network conection to my server. So, I would login me directly on the server and correct my settings - but there was no login promt after boot, only the boot messages. And all virtual consoles didn't work.
    (I had to boot from a OS from a USB stick to reanable the network.)


    A check over ssh confirmed: no tty is running.

    Code
    root@server:~# ps -e | grep tty
    root@server:~#


    The getty settings in inittab looks correct to me:

    Code
    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


    Starting getty manually is working.

    Code
    root@server:~# getty 38400 tty2 &
    [1] 8137
    root@server:~# ps -e | grep tty
    8137 pts/0 00:00:00 getty


    I never had this problem before. And Google mostly find Xserver related stuff.


    OMV 0.5.44
    Linux 3.2.0-0.bpo.4-amd64
    GUI and ssh working.
    No other problems noticed.


    So, what can I do?
    Why do the tty's not start?


    kalle

  • A little more information.


    Based an this (https://www-304.ibm.com/support/docview.wss?uid=isg3T1012075) my inittab is not load completly.


    Code
    root@server:~# who -p
    2014-04-13 08:55 1186 id=l2


    Code
    root@server:~# ps -ef | grep 1186
    root 1186 1 0 08:55 ? 00:00:00 /bin/sh /etc/init.d/rc 2
    root 1189 1186 0 08:55 ? 00:00:00 startpar -p 4 -t 20 -T 3 -M start -P N -R 2
    root 4688 2159 0 16:20 pts/0 00:00:00 grep 1186


    This startpar process isn't finished and prevent the load of the rest of the inittab file, for example getty.


    Code
    root@server:~# kill -9 1189


    Code
    root@server:~# ps -ef | grep tty
    root 4765 1 0 16:21 tty1 00:00:00 /sbin/getty 38400 tty1
    root 4766 1 0 16:21 tty2 00:00:00 /sbin/getty 38400 tty2
    root 4767 1 0 16:21 tty3 00:00:00 /sbin/getty 38400 tty3
    root 4768 1 0 16:21 tty4 00:00:00 /sbin/getty 38400 tty4
    root 4769 1 0 16:21 tty5 00:00:00 /sbin/getty 38400 tty5
    root 4770 1 0 16:21 tty6 00:00:00 /sbin/getty 38400 tty6
    root 4789 2159 0 16:21 pts/0 00:00:00 grep tty


    When I kill startpar all tty's are loading.


    Anyone know this problem?
    What can I do?


    kalle

  • Thanks for replying.


    The last package I installed were Autoshutdown. And I modified it a little because I get multiple processes after a few suspend cycles, but not in the init script.
    I have purged ASD and rebooted my server - but the problem still exists.


    The last two lines on the screen when booting are:

    Code
    Stopping watchdog keepalive daemon...
    Starting watchdog daemon...


    Maybe its helpfull.


    The problem is, I'm not knowing when this began.
    Normally, I dont have a screen connected to my server and don't using any of the tty's.


    How can I find the faulty init script?


    kalle

  • Oh, what a shame.


    In rc.local I'm starting a little script, translating network names into IP's for using with autoshutdown.
    And because it's running in a loop, rc.local never finished to load.


    Sending my script to the background solves the tty problem.


    SORRY!


    Thanks.
    kalle

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!