LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2005, 09:14 AM   #1
danielganea
LQ Newbie
 
Registered: Jan 2005
Location: Romania
Distribution: Slackware 10.1
Posts: 14

Rep: Reputation: 0
inittab is missing


Hi all,i've accidentaly deleted my inittab file and i cant find a way to make my X eviroment work.i'am a newbie,i search a inittab file in slackware site and i found one in sysvinit-2.84-i486-50.tgz package named inittab.new,i renamed it and copy to a floppy disk,i've booted from a Slackware CD,and i've copied it to etc directory.The problem is that after i boot in Linux and he tries to read from inittab some errors appear on the screen and i have acces to linux console, he doesen't recognize my computer name,the linux partitition is read-only,and i think that is the reason why my X server won't start,he can't write in tmp directory(there is a error saying so),the console is very basic.i'll print here the inittab i've used:

#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf:owerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg:owerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait:/etc/rc.d/rc.4

# End of /etc/inittab
---------------------------------------------
can anyone help me pls
 
Old 02-13-2005, 09:41 AM   #2
roAder
Member
 
Registered: May 2004
Location: Sweden, Stockholm
Distribution: Slackware 10.1
Posts: 142

Rep: Reputation: 15
Do you have any important programs on your Slackware partition?
If no, then just reinstall slack...
 
Old 02-13-2005, 09:46 AM   #3
danielganea
LQ Newbie
 
Registered: Jan 2005
Location: Romania
Distribution: Slackware 10.1
Posts: 14

Original Poster
Rep: Reputation: 0
i hope i resolve my problem without a fresh install.I have programs important there that i use : Apache,Php, and Mysql.I've saved my work,but i want to fix inittab too.
 
Old 02-13-2005, 10:40 AM   #4
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
Unless they've been edited, all inittabs look pretty much a like. Posting the errors would be a lot more useful. It sounds like inittab wasn't the only thing removed. This sounds fixable to me, reinstalling would be a last resort, this isn't windows.
 
Old 02-13-2005, 02:59 PM   #5
danielganea
LQ Newbie
 
Registered: Jan 2005
Location: Romania
Distribution: Slackware 10.1
Posts: 14

Original Poster
Rep: Reputation: 0
I have the errors :

-----------------------------
......................
VFS:Mounted root (ext2 filesystem) read-only
Freeing unused kernel memory:120k freed
INIT:versoin 2.84 booting
INIT:/etc/inittab [13] : missing action field
INIT:/etc/inittab [22] : missing action field
INIT:/etc/inittab [25] : missing action field
INIT:/etc/inittab [28] : missing action field
INIT:/etc/inittab [31] : missing action field
INIT:/etc/inittab [34] : missing action field
INIT:/etc/inittab [37] : missing action field
INIT:/etc/inittab [40] : missing action field
INIT:/etc/inittab [43] : missing action field
INIT:/etc/inittab [46] : missing action field
INIT:/etc/inittab [49] : missing action field
INIT:/etc/inittab [57] : missing action field
INIT:/etc/inittab [61] : missing action field
INIT:/etc/inittab [65] : missing action field
INIT:/etc/inittab [73] : missing action field
"NIT:cannot execute "etc/rc.d/rc.S
INIT:Entering runlevel : 4
"NIT:cannot execute "etc/rc.d/rc.M
"NIT:cannot execute "etc/rc.d/rc.4


and here it stops,no console nothing,to still get console but without X graphical and a simple one
i used the next one inittab:
------------------------------------
# Level to run in
id:2:initdefault:

# System initialization before anything else.
si::sysinit:/etc/rc.d/bcheckrc

# Runlevel 0,6 is halt and reboot, 1 is maintenance mode.
l0:0:wait:/etc/rc.d/rc.halt
l1:1:wait:/etc/rc.d/rc.single
l2:2345:wait:/etc/rc.d/rc.multi
l6:6:wait:/etc/rc.d/rc.reboot

# What to do at the "3 finger salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -rf now

# Runlevel 2&3: getty on console, level 3 also getty on modem port.
1:23:respawn:/sbin/getty tty1 VC linux
2:23:respawn:/sbin/getty tty2 VC linux
3:23:respawn:/sbin/getty tty3 VC linux
4:23:respawn:/sbin/getty tty4 VC linux
S2:3:respawn:/sbin/uugetty ttyS2 M19200
----------------------
thanks for replaying
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having an issue with inittab Zerodark Linux - Distributions 3 11-08-2005 02:35 AM
rc[0-6] and inittab kpachopoulos Linux - General 1 08-12-2005 04:27 PM
inittab mikedeatworld Linux - Software 3 08-13-2004 10:01 AM
Cant get out of inittab InEeDhElPlInUx Linux - Newbie 3 10-09-2003 02:13 PM
/etc/inittab sakeeb Linux - General 9 05-29-2002 09:04 AM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration