LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2003, 05:01 AM   #1
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Rep: Reputation: 30
Enter runlevel: on startup


During boot I am getting the error,
INIT: /etc/inittab[18]: rlevel field too long (max 11 characters)

Enter runlevel:

I modified inittab before rebooting and a keboard key pressed and add somechacters in it and I didn't notice. Now when I rebooted getting this message. How to modify this file as machine is not going to any prompt.
 
Old 08-26-2003, 05:10 AM   #2
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
try booting into single user mode

http://www.redhat.com/docs/manuals/l...ng-single.html
 
Old 08-26-2003, 05:22 AM   #3
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
I used Enter Level : 1 and able to login in text with root but as now I am trying to modigy inittab it is saying readonly. How to change readonly to readwrite here.
 
Old 08-26-2003, 05:27 AM   #4
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
mount -o rw,remount /
 
Old 08-26-2003, 05:36 AM   #5
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Pl paste your inittab here so I will be able to find the wrong entry in the file.
 
Old 08-26-2003, 05:41 AM   #6
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
id:5:initdefault
id:5:/etc/rc.d/rc.sysinit << some issue with this like and it is red heighlighted

10:0:wait:/etc/rc.d/rc 0
.
.
 
Old 08-26-2003, 05:47 AM   #7
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Shouldn't there be a colon after the first line.

id:5:initdefault:
 
Old 08-26-2003, 05:53 AM   #8
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
id:5:initdefault << line 18
id:5:/etc/rc.d/rc.sysinit << line 19

now the message after reboot is
INIT: /etc/inittab[18]: missing process field
INIT: /etc/inittab[19]: missing process field

and still asking for Enter runlevel:
 
Old 08-26-2003, 06:22 AM   #9
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Without the Colon on the end of the line you will get this message. and you will be request for a runlevel. as one has not been selected. (init ignores incomplete lines.)

Your second line has no command. I pressume your trying a sysinit, but its in the wrong place.

Also I don't get this line at all it looks screwy to me, But I ain't running RedHat.

My Best would be

id:5:initdefault:
si::sysinit:/etc/init.d/rcS

Last edited by leonscape; 08-26-2003 at 06:24 AM.
 
Old 08-26-2003, 06:27 AM   #10
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Sorry for not pasted colon in my last post but I had in the inittab.

I already did this and getting message cannot execute /etc/init.d/rcs and now even not asking about enter level. I am also trying to run rescue while booting from CD but unable to get rid of this issue.
 
Old 08-26-2003, 06:30 AM   #11
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
You did use capital S on the end of rcS?

ALso check /etc to make sure you have init.d
 
Old 08-26-2003, 06:38 AM   #12
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
No I used rcs but now unable to get into inittab to change it more.


Now I am in rescue mode and mounted under the /mnt/sysimage

Now how can I access inittab file from here.

sh-2.05b# as it is not available in etc folder.

Sorry for so basic questions.
 
Old 08-26-2003, 06:42 AM   #13
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
So you've

cd /mnt/sysimage/etc

?
 
Old 08-26-2003, 06:45 AM   #14
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
chroot /mnt/sysimage
Then cd to the /etc folder, there should be a file called inittab.
 
Old 08-26-2003, 06:51 AM   #15
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
I have changed /mnt/sysimage/etc/inittab to

id:5:initdefault:
si::sysinit:/etc/init.d/rcS

I saved it but now got the same message when rebooted. Seems this change not yet effected the actual.
 
  


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
Freezing on 'enter runlevel' nappy501 Red Hat 8 04-13-2004 05:18 PM
Freezing on 'enter runlevel' nappy501 Linux - Software 0 03-24-2004 01:16 PM
Cant enter runlevel 3 automaticaly pawn-o-matic Linux From Scratch 3 12-28-2003 03:19 PM
Runlevel 3 and 4 startup configs ghight Linux - Software 4 12-19-2003 10:27 AM
Enter runlevel: Student2 Linux - General 7 11-08-2002 03:52 AM


All times are GMT -5. The time now is 04:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration