how to restore my /etc/inittab file


Results 1 to 5 of 5

Thread: how to restore my /etc/inittab file

  1. #1
    Join Date
    Jun 2001
    Location
    Washington
    Posts
    7

    how to restore my /etc/inittab file

    Hello, I am running red hat 6.1 server, and not too long ago I installed ssh on it. Ever since I installed ssh, I have not been able to get past the initialization process. I get an error that says - init: no more processes left in this runlevel (this error message always comes up right after linuxconf service starts). I did a search on past forums, someone suggested that maybe the etc/inittab file was corrupt. I decided to check my etc/inittab file, and sure enough most of it got deleted somehow. Can someone please tell me what the best way to restore this file is, ore could someone email me this file at: kennyw1000@netzero.net Thanks

  2. #2
    Join Date
    Mar 1999
    Posts
    2,711
    Here's one I pulled off a site by searching for etc/inittab. You will need to modify it or wait for someone else to post their specific inittab for RH6.1.

    #
    # inittab This file describes how the INIT process should set up
    # the system in a certain run-level.
    #
    # Author: Miquel van Smoorenburg,
    # Modified for RHS Linux by Marc Ewing and Donnie Barnes
    #

    # Default runlevel. The runlevels used by RHS are:
    # 0 - halt (Do NOT set initdefault to this)
    # 1 - Single user mode
    # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
    # 3 - Full multiuser mode
    # 4 - unused
    # 5 - X11
    # 6 - reboot (Do NOT set initdefault to this)
    #
    id:3:initdefault:

    # System initialization.
    si::sysinit:/etc/rc.d/rc.sysinit

    l0:0:wait:/etc/rc.d/rc 0
    l1:1:wait:/etc/rc.d/rc 1
    l2:2:wait:/etc/rc.d/rc 2
    l3:3:wait:/etc/rc.d/rc 3
    l4:4:wait:/etc/rc.d/rc 4
    l5:5:wait:/etc/rc.d/rc 5
    l6:6:wait:/etc/rc.d/rc 6

    # Things to run in every runlevel.
    ud: nce:/sbin/update

    # Trap CTRL-ALT-DELETE
    ca::ctrlaltdel:/sbin/shutdown -t3 -r now

    # When our UPS tells us power has failed, assume we have a few minutes
    # of power left. Schedule a shutdown for 2 minutes from now.
    # This does, of course, assume you have powerd installed and your
    # UPS connected and working correctly.
    pf: owerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

    # If power was restored before the shutdown kicked in, cancel it.
    pr:12345 owerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


    # Run gettys in standard runlevels
    1:12345:respawn:/sbin/mingetty tty1
    2:2345:respawn:/sbin/mingetty tty2
    3:2345:respawn:/sbin/mingetty tty3
    4:2345:respawn:/sbin/mingetty tty4
    5:2345:respawn:/sbin/mingetty tty5
    6:2345:respawn:/sbin/mingetty tty6

    # Run xdm in runlevel 5
    x:5:respawn:/usr/bin/X11/xdm -nodaemon

  3. #3
    Join Date
    Jun 2001
    Location
    Washington
    Posts
    7
    Thanks for the help. I was able to get the server started with what you gave me. I posted a new question, maybe you know some more about that too? here is the link: http://www.linuxnewbie.org/cgi-bin/u...c&f=4&t=012604
    Thanks Again, Kenny.

  4. #4
    Join Date
    Mar 2012
    Posts
    1
    Hi,

    if you are running redhat release 6, below /etc/inittab file could go for you.


    # inittab is only used by upstart for the default runlevel.
    #
    # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
    #
    # System initialization is started by /etc/init/rcS.conf
    #
    # Individual runlevels are started by /etc/init/rc.conf
    #
    # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
    #
    # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
    # with configuration in /etc/sysconfig/init.
    #
    # For information on how to write upstart event handlers, or how
    # upstart works, see init(5), init(8), and initctl(8).
    #
    # Default runlevel. The runlevels used are:
    # 0 - halt (Do NOT set initdefault to this)
    # 1 - Single user mode
    # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
    # 3 - Full multiuser mode
    # 4 - unused
    # 5 - X11
    # 6 - reboot (Do NOT set initdefault to this)
    #
    id:3:initdefault:


    warm regards

  5. #5
    Join Date
    Jul 2003
    Location
    Spokane, Washington
    Posts
    580
    Ha ha. I sure hope he's not talking about the same Red Hat 6 that the original poster was using at the time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •