LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-09-2004, 09:35 AM   #1
k_b_stephens
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Unhappy /etc/inittab problems.....won't boot :(


Running Redhat 9 and having a problem during bootup with my /etc/inittab file. The error is:

Init: /etc/inittab[54]: 2345: unknown action filed

The line in the /etc/inittab file its complaining about it

b::2345: once:/usr/include/esc/mingetty

of which /usr/include/esc/mingetty does not exist.

So, I tried booting up into rescue mode off the Redhat CD, mount the sysimage to modify the inittab and no go. Inittab seems to be write protected and I've tried everything to modify it.

I also tried creating /usr/include/esc/ and cp'd mingetty to that dir and no go either......Redhat just locks up.

Any suggestions on how to modify that inittab file or change permissions?

Thanks,
Keith
 
Old 11-09-2004, 09:57 AM   #2
Musikolo
Member
 
Registered: Jul 2003
Distribution: Arch Linux x64
Posts: 115

Rep: Reputation: 15
If you already know the file doesn't exist, the the best thing you might do it is to remove this line, or even better, comment it by placing a '#' character at the beginning of the line.

Reboot the machine and check it again.

Good luck!
 
Old 11-09-2004, 10:02 AM   #3
Musikolo
Member
 
Registered: Jul 2003
Distribution: Arch Linux x64
Posts: 115

Rep: Reputation: 15
Oohhh by the way. You shouldn't change the permissions of this file, but change to root user. For it run:

su

the root password will be asked for. Then you can edit the file using 'vi' or 'joe'. I preffer joe by you'll probably don't have it installed. So try:

vi inittab

Then press the key 'i' to change to insert mode

Put the comment (#)

To save and exit press: Esc + :wq Don't forget the semicolon ':'
To exit withouth saving: Esc + :q

Good luck once again!
 
Old 11-09-2004, 10:05 AM   #4
k_b_stephens
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I've tried removing the line and get a read-only error in emacs and vi

Can't move, rename, or edit inittab I assume that the linux rescue mode user is root...





Thanks,
Keith

Last edited by k_b_stephens; 11-09-2004 at 10:06 AM.
 
Old 11-09-2004, 10:29 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by k_b_stephens
I've tried removing the line and get a read-only error in emacs and vi

Can't move, rename, or edit inittab I assume that the linux rescue mode user is root...
Did you try "whoami" to make sure you're operating as root?

It seems odd not to be able even to move the file as root. Something similar to this happened to me once after I made some truly awful mistake and lost permission, as root, to do anything, and I mean ANYTHING. In my typical fashion I just reinstalled from my distro disks and spent several hours getting back to "normal."

I was going to suggest doing "mv" on the file and then re-writing it by hand, till this last post of yours... Wish I had some better ideas.
 
Old 11-09-2004, 10:35 AM   #6
k_b_stephens
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jonr
Did you try "whoami" to make sure you're operating as root?

It seems odd not to be able even to move the file as root. Something similar to this happened to me once after I made some truly awful mistake and lost permission, as root, to do anything, and I mean ANYTHING. In my typical fashion I just reinstalled from my distro disks and spent several hours getting back to "normal."

I was going to suggest doing "mv" on the file and then re-writing it by hand, till this last post of yours... Wish I had some better ideas.
Did a "whoami" and i'm root......

Thanks for the suggestion.
 
Old 11-09-2004, 10:41 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I guess in the rescue system, the whole filesystem is mounted read-only. Maybe you could try to remount it, this time writable:

mount -n -o remount,rw /

Note: Just googled this command, better check the syntax yourself first
 
  


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
Installed Debian and experiencing problems: fubarred my inittab/kdm and no internet. shodekiagari Debian 1 06-01-2005 02:09 PM
How To Edit My /etc/inittab To Boot Into VGA console mode (non-X) CAL Linux - Newbie 3 04-06-2004 07:06 AM
Cant get out of inittab InEeDhElPlInUx Linux - Newbie 3 10-09-2003 02:13 PM
oops - screwed up inittab, can't boot kaise Linux - General 3 03-13-2003 09:15 PM
Inittab - stopping processes upon boot jfshadow Linux - General 5 06-08-2002 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 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