From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 14:02:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4316F16A555 for ; Fri, 9 Apr 2004 14:02:25 -0700 (PDT) Received: from av8-1-sn2.hy.skanova.net (av8-1-sn2.hy.skanova.net [81.228.8.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 781CC43D31 for ; Fri, 9 Apr 2004 14:02:24 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: by av8-1-sn2.hy.skanova.net (Postfix, from userid 502) id CBE8F37E43; Fri, 9 Apr 2004 23:02:22 +0200 (CEST) Received: from smtp2-2-sn2.hy.skanova.net (smtp2-2-sn2.hy.skanova.net [81.228.8.178]) by av8-1-sn2.hy.skanova.net (Postfix) with ESMTP id BE6EB37E42 for ; Fri, 9 Apr 2004 23:02:22 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-2-sn2.hy.skanova.net (Postfix) with SMTP id B1A1A37E43 for ; Fri, 9 Apr 2004 23:02:22 +0200 (CEST) Received: (qmail 10726 invoked by uid 1001); 9 Apr 2004 21:02:22 -0000 Date: Fri, 9 Apr 2004 23:02:22 +0200 From: Erik Trulsson To: lrnobs Message-ID: <20040409210221.GA10699@falcon.midgard.homeip.net> Mail-Followup-To: lrnobs , freebsd-questions@freebsd.org References: <4076527F.1060902@users.sourceforge.net> <003b01c41e75$03ffa8f0$0a05010a@NCSXP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003b01c41e75$03ffa8f0$0a05010a@NCSXP> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Syntax error in rc.conf - cannot fix X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 21:02:25 -0000 On Fri, Apr 09, 2004 at 03:55:39PM -0500, lrnobs wrote: > I am setting up a new server so I could just reinstall, but this is a > learning opportunity. > > I was changing the hostname of the computer. In rc.conf I apparently left > the leading " off the name. > > BSD doesn't like this. It stops the boot and allows/forces me to a shell. So > I found that "cat" shows me the error of my ways. vi apparently doesn't > exist or is stored somewhere that I cannot find because "find" does not work > either. > > I did find "ed" and thought I would be learning how to use it, but alas > trying to launch it tells me that I have a readonly file system. > > So, is there any way for me to fix my typo, or is reinstall my only option. Your boot apparently halted before any filesystems had been mounted yet (except for '/' which is mounted read-only.) Do a 'mount -u /' to make sure that the root-filesystem is mounted read/write, and then a 'mount /usr' to mount /usr where vi and find lives. Then you should be able to fix rc.conf without much trouble. -- Erik Trulsson ertr1013@student.uu.se