From owner-freebsd-questions Wed Sep 18 17:44:56 2002 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 D849A37B401 for ; Wed, 18 Sep 2002 17:44:54 -0700 (PDT) Received: from anu.edu.au (anumail4.anu.edu.au [150.203.2.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3E0B43E3B for ; Wed, 18 Sep 2002 17:44:53 -0700 (PDT) (envelope-from Gregory.Lane@anu.edu.au) Received: from nucl03.anu.edu.au (nucl03.anu.edu.au [150.203.19.120]) by anu.edu.au (8.12.3/8.12.3) with ESMTP id g8J0ipI8019577; Thu, 19 Sep 2002 10:44:51 +1000 (EST) Received: from nucl03.anu.edu.au (localhost [127.0.0.1]) by nucl03.anu.edu.au (8.12.6/8.12.6) with ESMTP id g8J0ipsj013876; Thu, 19 Sep 2002 10:44:51 +1000 (EST) (envelope-from gjl103@nucl03.anu.edu.au) Received: (from gjl103@localhost) by nucl03.anu.edu.au (8.12.6/8.12.6/Submit) id g8J0ip2g013875; Thu, 19 Sep 2002 10:44:51 +1000 (EST) Date: Thu, 19 Sep 2002 10:44:50 +1000 From: Greg Lane To: Danny Cc: questions@FreeBSD.ORG Subject: Re: /etc/rc.conf question Message-ID: <20020919004450.GB13736@nucl03.anu.edu.au> Reply-To: gregory.lane@anu.edu.au Mail-Followup-To: Danny , questions@FreeBSD.ORG References: <000b01c25f75$a886e3e0$bf01a8c0@x.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c25f75$a886e3e0$bf01a8c0@x.com> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 19, 2002 at 10:44:05AM +1000, Danny wrote: > Hi, > > I was trying to add a additional ip address to my test FreeBSD machine by > issuing the following command : > > 1) cp /etc/rc.conf /etc/rc.conf_backup > 2)vi /etc/rc.conf > 3)I typed in the following entry > > ifconfig_rl0_alias0="192.168.1.189 netmask 255.255.255.0 > > When I reboot the computer I get the following error message: > > Mount root from ufs:/dev/ads1sa > /etc/rc.conf 24 Syntax Error: Unterminated quotated string > Enter Full path name of shell or return for /bin/sh > > I have tried typing in cp /etc/rc.conf_backup /etc/rc.conf > > I have tried typing in fsck then typing in > > cp /etc/rc.conf_backup /etc/rc.conf > > > How do I get it to restart properly? G'day The cause of the original error is probably because you left the final quote (") off of the following line. > ifconfig_rl0_alias0="192.168.1.189 netmask 255.255.255.0 When you reboot and it asks which shell, just hit return. You will now be in single user mode (it wasn't clear from your mail if you actually did this or started typing cp and fsck commands immediately at this prompt). You will need to remount your root filesystem rw: mount -o rw / Then you will need to either edit your rc.conf to (presumably) fix the quotation mark, or else (as you tried): cp /etc/rc.conf_backup /etc/rc.conf Hope this helps, Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message