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 |
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 ? |
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 :) |
does single mode not also run the rc.local script ?
|
Quote:
lilo will do the trick ... Cheers, Tink |
All times are GMT -5. The time now is 05:09 PM. |