can't reboot after messing up my rc.conf file
chodgins at cis.strath.ac.uk
Thu Feb 17 01:42:26 GMT 2005
Mike Jeays wrote:
> On Wed, 2005-02-16 at 13:42, aklist_061666 wrote:
>>I was editing my rc.conf file and left off a quote mark, and now when I try
>>to reboot I get an error and am prompted to drop into shell to fix it.
>>The default prompt is /bin/sh, and if I hit return I get a prompt.
>>How can I edit the file while I'm in that prompt? VI doesn't work...is there
>>another text editor I can use to fix the file?
>>freebsd-questions at freebsd.org mailing list
>>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> Be prepared with a printed manual and a wet towel for your head!
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
Or you could just simply:
# /bin/mv /etc/rc.conf /etc/rc.conf.bad
# /bin/echo "<variable>=<value>" >> /etc/rc.conf
This will give you a nice new rc.conf that you can edit once you are up
and running again.
More information about the freebsd-questions