Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2010 19:01:15 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        oscar Seo <oscar815@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How can I repair wrong /etc/rc.conf ?
Message-ID:  <20100310000115.GA51767@gizmo.acns.msu.edu>
In-Reply-To: <861961dd1003082145w4c19d4f0g1f59597d2d077ec7@mail.gmail.com>
References:  <861961dd1003082145w4c19d4f0g1f59597d2d077ec7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 09, 2010 at 02:45:22PM +0900, oscar Seo 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?

It is because not all of your filesystems are mounted.
Probably you can gett away with just doing    
  fsck -a
  mount -u
  mount -a 

>From then you can edit.

If it will not run the fsck or the mount -a, then you will have
to reboot in to single user mode and do the above.

////jerry

> 
> Thanks in advanced.
> Oscar
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100310000115.GA51767>