Yes I tried and it doesn't work. Here is what happen
1) I type "vi rc.sysinit"
2) The file open and the bottom line says "rc.sysinit [readonly]
3) I jump to the lines I want to delete and do a "dd" on the first one
4) The bottom line becomes red and says "warning: changing a readonly file"
5) immediatly after a message pops up saying "Unable to open swap file for
"rc.sysinit", recovery impossible
6) follows by a new message "Press RETURN or enter command to continue"
7) I press RETURN and go back to the lines
8) I can now "dd" the 3 lines
9) but when I try to "wq!" I get a message saying "rc.sysinit Can't open
file for writing" and then "Press RETURN or enter command to continue"
Nothing was saved. I can't understand why it was so easy to modify a sys
file in the first place with a text pad and now it's impossible to modify it
again. Looks like all the files are read-only. I am wondering if it's due to
the linux emergency mode.
Patrick
>From: rpjday <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Boot issue. INIT cannot execute etc/rc.d/sysinit
>Date: Sun, 21 Jan 2001 11:17:04 -0500 (EST)
>
>On Sun, 21 Jan 2001, Patrick Lacchia wrote:
>
> > Guess what? I stupidly added 3 lines to etc/rc.d/rc.sysinit. It looked
>safe,
> > you just open the file with gnupad, add the lines, save. Safe until the
>next
> > time you reboot and find out that you can't use RedHat 6.2 anymore.
>During
> > the launch I now have a message saying, "INIT cannot execute
> > etc/rc.d/sysinit". I tried several rescue solutions and so far the only
>one
> > that gives me some result is to boot by typing linux emergency. That
>gives
> > me the chance to log as root before INIT (and therefore rc.sysinit) is
> > launched. From there I can access the file, edit it with VI but
> > unfortunately not save it. The file is read only. I can copy the file on
>a
>
>if you're logged in as root, have you tried saving the file with ":wq!"??
>even when you're root, you normally aren't allowed to overwrite readonly
>files unless you add the "!" to the ":wq". give that a shot.
>
>rday
>
>--
>Robert P. J. Day
>Eno River Technologies, Durham NC
>Unix, Linux and Open Source training
>
>
>"This is Microsoft technical support. How may I misinform you?"
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list