Not sure what the problem is. As you write it, it might be any of several
things.

1. "editing /etc/inittab through a rescue disk" is a bit ambiguous. If the
rescue disk boots via a RAM disk, its version of /etc/inittab isn't the one
on the hard-disk root filesystem. You need to mount it ("mount /dev/hda1
/mnt", except it might be a different device), then edit /mnt/etc/inittab .

2. Does the editor you are using claim that the edit succeeds? I noticed
that someone else (Richard, I think) suggested the possibility that the
filesystem was mounted RO. That should generate an error message when you
try to save your edits, though.

3. Might there be a problem with the disk or partition? The error message is
hard to interpret (since you only tell us what it is "something like", not
what it is), but it might mean that a filesystem error is causing your edit
not to be saved properly. While you have the rescue disk boot active, you
might try fsck'ing the root filesystem.

4. Is it possible that someone broke into your system and added a script
that rewrites /etc/inittab ? This would be a bit tricky to do, since inittab
is open at the point when init scripts are being run ... but the trickiness
would make it hard to find. You might want to grep on "inittab" in whatever
directory RH keeps init scripts in (I think /sbin/rc.d/init.d/).

If none of this seems to work, why not check the exact error message and see
what is on the offending line?

At 02:16 PM 3/26/00 +0200, pm wrote:
>HI.
>Somebody messed around with my X server and now I have a graphical login
>(RedHat 6.0 - kernel 2.2.5) which doesn't work and respawns itself with
>CTRL-ALT-DELETE.
>So I can't use Linux.
>In the past I've come around that by editing /etc/inittab through a
>rescue disk, but this time, every time I edit it and reboot,
>/etc/inittab gets restored back as it was before editing it.
>During the boot I can read something like this:
>"INIT: booting inittab version 2.77
>  INIT: missing action in line [58]"

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to