LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-05-2005, 05:37 AM   #1
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Rep: Reputation: 15
Exclamation edited inittab and now have some errors


Well.... here's whole the story, hope someone can help me cause i don't want to format beacuse of such a stupid thing
---
I tried to setup DMA but i always get and error, then i thought that it could be because it couldn't find the module so i decided to recompile the kernel.
It wasn't the first time i did that but this time i used make mrproper
without know that it wuold have delete my old .config...
After that i only selected the DMA module and one for the usb-storage and for the SiS graphic chipset and the usually thing: make, make modules_install and make install...
Everything looked fine so i decided to reboot...but after the reboot KDM won't start!!! (yeah i had the runlevel 4 as the default one)...after seeing what i have made (my kernel config totally changed so it couldn't even mount my usb-hdd at boot) i decided to edit the /etc/inittab through a Windows-tool called LTOOLS...i changed the runlevel from 4 to 3 and then rebooted, but now i get a lot of errors at boot like:
Code:
INIT: /etc/inittab["line_number"] : missing action field
with a lot of "line_numbers" and at the end:
Code:
"INIT: cannot read: "/etc/rc.d/rc.M
Notice that the words "INIT and "/etc/rc.d/rc.M aren't mistakes..i mean... there is the character "

Then after this i get the "classic" prompt but with no hostname....something like:
Code:
login (none):
and i cannot connect to x server even if i change console with Ctrl-Alt-F3 or others....

Ah...it even gives me an error like: /dev/tty1 read-only filesystem....

Can someone post me the "original" /etc/inittab and help me to fix that somehow, it would be so appriciated....
TX!

Last edited by thugic; 07-05-2005 at 05:39 AM.
 
Old 07-05-2005, 05:59 AM   #2
munkie_poo
Member
 
Registered: Apr 2004
Location: Newcastle, UK
Distribution: Slackware 10.2
Posts: 134

Rep: Reputation: 15
This is mine taken from Slackware 10.1, hope this helps.





#
# 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::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/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

Last edited by munkie_poo; 07-05-2005 at 06:00 AM.
 
Old 07-05-2005, 06:10 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
my actual inittab:

Code:
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               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

# Trap CTRL-ALT-DELETE
#ca::ctrlaltdel:/sbin/shutdown -t3 -r now
ca::ctrlaltdel:/bin/echo "<ctrl><alt><del> disabled"

# 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::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

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


# Run gettys in standard runlevels
1:2345: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:/etc/X11/prefdm -nodaemon
 
Old 07-05-2005, 06:33 AM   #4
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
no...i'm getting the same errors...it cannot execute rc.M ... rc.S .... and the ususally error:
INIT: /etc/inittab[*] : missing action field

i don't know how to fix this...it's getting me mad...and i don't wanna lose all my configs and stuff....

please if someone can help me....
one another thing....which program can i use to edit inittab through windows because i cannot edit it through linux... i'm actually using LTOOLS but i thibk that it is not the best choice...even ext2fsd isn't so good...
HEEEEEEEEEEEELP
 
Old 07-05-2005, 06:40 AM   #5
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
Perhaps the permissions are changed in your /etc/rc.d folder. What does

ls -l /etc/rc.d/

show?
 
Old 07-05-2005, 06:41 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Why don't you boot from slackware CD 1 or 2,
then mount your root partition in /mnt/hd and
cp /etc/inittab /mnt/hd/etc/
 
Old 07-05-2005, 08:49 AM   #7
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
Re: edited inittab and now have some errors

Quote:
Originally posted by thugic
Well.... here's whole the story, hope someone can help me cause i don't want to format beacuse of such a stupid thing
---
I tried to setup DMA but i always get and error, then i thought that it could be because it couldn't find the module so i decided to recompile the kernel.
It wasn't the first time i did that but this time i used make mrproper
without know that it wuold have delete my old .config...
After that i only selected the DMA module and one for the usb-storage and for the SiS graphic chipset and the usually thing: make, make modules_install and make install...
Everything looked fine so i decided to reboot...but after the reboot KDM won't start!!! (yeah i had the runlevel 4 as the default one)...after seeing what i have made (my kernel config totally changed so it couldn't even mount my usb-hdd at boot) i decided to edit the /etc/inittab through a Windows-tool called LTOOLS...i changed the runlevel from 4 to 3 and then rebooted, but now i get a lot of errors at boot like:
Code:
INIT: /etc/inittab["line_number"] : missing action field
with a lot of "line_numbers" and at the end:
Code:
"INIT: cannot read: "/etc/rc.d/rc.M
Notice that the words "INIT and "/etc/rc.d/rc.M aren't mistakes..i mean... there is the character "

Then after this i get the "classic" prompt but with no hostname....something like:
Code:
login (none):
and i cannot connect to x server even if i change console with Ctrl-Alt-F3 or others....

Ah...it even gives me an error like: /dev/tty1 read-only filesystem....

Can someone post me the "original" /etc/inittab and help me to fix that somehow, it would be so appriciated....
TX!
well, you have done something very bad yo your system... the login (none): seens like SIngle mode to me, you tryed login as root ? Because single mode dont gives you more them one tty. Of you may try in lilo boot screen enter the follow parameter, I will suppose that the name of the kernel that you start is Linux tem Linux S or Linux 1
 
Old 07-05-2005, 12:30 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
thugic, Windows/DOS uses different line ending characters in text files, be sure you're saving as Linux text files.
As keefaz suggested the better way is to edit the file from some Linux boot CD.
 
  


Reply



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
edited logrotation cyberpunx Linux - Software 0 09-06-2005 01:55 PM
Edited a text using CAT, Wreck-It Linux - Software 2 09-24-2003 05:07 PM
edited modules/no sound bibilit Linux - Software 9 06-09-2003 12:06 PM
Graphical login not working? Edited inittab... streamalot Linux - General 6 02-22-2002 09:24 AM
Edited times CragStar LQ Suggestions & Feedback 1 03-08-2001 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration