From owner-freebsd-questions@FreeBSD.ORG Wed Mar 10 00:04:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADB45106564A for ; Wed, 10 Mar 2010 00:04:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 732D98FC15 for ; Wed, 10 Mar 2010 00:04:26 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o2A01FGl051813; Tue, 9 Mar 2010 19:01:15 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o2A01FeM051812; Tue, 9 Mar 2010 19:01:15 -0500 (EST) (envelope-from jerrymc) Date: Tue, 9 Mar 2010 19:01:15 -0500 From: Jerry McAllister To: oscar Seo Message-ID: <20100310000115.GA51767@gizmo.acns.msu.edu> References: <861961dd1003082145w4c19d4f0g1f59597d2d077ec7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <861961dd1003082145w4c19d4f0g1f59597d2d077ec7@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: How can I repair wrong /etc/rc.conf ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 00:04:26 -0000 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"