How can I repair wrong /etc/rc.conf ?

Adam Vande More amvandemore at gmail.com
Tue Mar 9 05:54:22 UTC 2010


On Mon, Mar 8, 2010 at 11:45 PM, oscar Seo <oscar815 at gmail.com> wrote:

> I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
> I edited /etc/rc.conf to use LAN other ip address is different from my home
> address in my school.
> I got error message from this
> [
> /etc/rc.conf: 131: Syntax error: Unterminated quoted string
> Enter full pathname of shell or RETURN for /bin/sh:
> ]
> so that I returned, I decided to edit /etc/rc.conf using vi.
> But freebsd didn't find vi, less any other application.
> I can't modify even if read /etc/rc.conf.
> fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
> can't modify any files cause the system changed into read only file system.
> How can I repair /etc/rc.conf file with fault statements using any editor?
>
> Thanks in advanced.
> Oscar
>

The are multiple ways to do this, easiest is to type in at the sh prompt:

mount -a

You would then have access to /usr, vi is in /usr/bin/vi






-- 
Adam Vande More


More information about the freebsd-questions mailing list