On Sun, 21 Jan 2001 at 4:09pm (-0000), 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
> floppy disk and open the copy with Windows notepad but it's useless because
> I can't erase the original on the hard drive. It looks like while in
> emergency mode all the files are read only.
> That's where I need some help:
> -     How can I remove the 3 lines I added to rc.sysinit and save the file?
> -     Is rc.sysinit corrupted? And if so could I use root/rc.sysinit~ as a
> backup?
> -     Is there an alternate solution?
>
> Guys I am stuck so I really need your help.
>

Grrrr... write reply then send. :)

Chances are /etc (or / really) is still mounted read only which is the
default at boot time.  Try remounting it read/write which is something
rc.sysinit normally does for you...

        bash# mount -o remount,rw /

Then you should be able to save your changes.  But becuase you're in a
rescue mode you disk unmounting stuff isn't going to happen either so you
prolly want to safe yourself an fsck and do..

        bash# sync
        bash# mount -o remount,ro /

... the sync is redundant I think but it can't hurt. :)

M.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to