DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Starting and stopping the system

Cannot open /etc/inittab

If the system fails to enter multiuser mode when you press <Ctrl>D, or this message is displayed at boot time, the /etc/inittab file is missing:

   INIT: Cannot open /etc/inittab errno: 2

INIT: SINGLE USER MODE

The /etc/inittab file contains instructions for init. When inittab is missing, init cannot execute the system startup instructions and the system cannot enter multiuser mode. When you press <Ctrl>D, the system remains in single-user mode and displays the error message above.

To restore inittab, you must recreate the kernel environment:

  1. Enter the root password to go into system maintenance mode.

  2. Enter these commands:

    cd /etc/conf/cf.d
    touch /etc/.new_unix
    ../bin/idmkenv

  3. When you see these messages:
       The kernel environment includes device node files and /etc/inittab.
       The new kernel may require changes to /etc/inittab or device nodes.
    

    Do you want the kernel environment rebuilt? (y/n)

    Enter ``y'' and press <Enter>. This message is displayed:
       The kernel has been successfully linked and installed.
       	To activate it, reboot your system.
    

    Setting up kernel environment

  4. Enter the command:

    cat /etc/inittab

    If you see a message that the system cannot open the file, enter this command:

    ln -s /var/opt/K/SCO/Unix/*/etc/inittab /etc/inittab

    This restores the symbolic link to the inittab file in the UNIX system software storage object.

  5. Enter the command:

    exit

  6. You see the message:
       ENTER RUN LEVEL (0-6,s or S):
    
    Enter 2 and the system will continue into multiuser mode.
The new /etc/inittab file is in place. You do not need to reboot your system.
Next topic: /etc/initscript: /bin/sulogin: not found
Previous topic: Cannot exec /bin/login: No such file or directory

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003