LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I screwed up my /etc/rc.d/rc.local...How do I fix it? (https://www.linuxquestions.org/questions/linux-newbie-8/i-screwed-up-my-etc-rc-d-rc-local-how-do-i-fix-it-210349/)

tjt 07-27-2004 04:22 PM

I screwed up my /etc/rc.d/rc.local...How do I fix it?
 
I do an init 0 in rc.local (don't ask me why). So I shutdown before I can go in and remove that.

Basically I need to boot into a "safe mode" to fix it... How do I do this?

Incidentally, I still want to do a shutdown, but I want to pause for 30 seconds first. Can I just do:

pause 60

???

Thanks

qwijibow 07-27-2004 04:30 PM

you will need a rescue disk.
boot the rescue disk, and use an editor (vi, nano, vim, emacs) to remove the bad init 0 call.

most distro cd's come with windows programs for creating Linux boot disks...
i assume you are using windows to post this thread ?

JayCnrs 07-27-2004 04:50 PM

What distro are you using? Nothing is under your name.

If you are using Grub type e when the grub choice screen comes up then highlight the kernel you use and at the end of the line that says kernel /boot/vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet, just put this single. Then hit enter and then b, this will get you into a safe mode.

HTH :)

qwijibow 07-27-2004 09:36 PM

does single mode not also run the rc.local script ?

Tinkster 07-27-2004 09:46 PM

Quote:

Originally posted by qwijibow
does single mode not also run the rc.local script ?
As a matter of fact, it doesn't. giving single as a parameter to
lilo will do the trick ...



Cheers,
Tink


All times are GMT -5. The time now is 05:09 PM.