From owner-freebsd-questions Wed Feb 20 13:26: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.188.158]) by hub.freebsd.org (Postfix) with ESMTP id 5750237B41A for ; Wed, 20 Feb 2002 13:25:55 -0800 (PST) Received: (from lowell@localhost) by be-well.ilk.org (8.11.6/8.11.4) id g1KLPlR75125; Wed, 20 Feb 2002 16:25:47 -0500 (EST) (envelope-from lowell@world.std.com) X-Authentication-Warning: be-well.ilk.org: lowell set sender to lowell@world.std.com using -f To: freebsd-questions@freebsd.org, messmate@free.fr Subject: Re: can't start References: <20020220211347.EA8BD17F67@postfix3-2.free.fr> From: Lowell Gilbert Date: 20 Feb 2002 16:25:47 -0500 In-Reply-To: <20020220211347.EA8BD17F67@postfix3-2.free.fr> Message-ID: <44k7t7dew4.fsf@lowellg.ne.mediaone.net> Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 mess-mate writes: > Hello guys,I did a mistake. > Forgot a quote in /etc/rc.conf, so is there a way to acces this file > in read-write mode to correct the error ? > Falling back to 'sh' give only access to this file in read mode and > no editer available. > So the only way (I think) is to cp my /etc/rc.conf-old to /rc.conf > and reboot. This is a Frequently Asked Question. Quoting http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY: I made a mistake in rc.conf, or another startup file, and now I cannot edit it because the filesystem is read-only. What should I do? When you get the prompt to enter the shell pathname, simply press ENTER, and run mount / to re-mount the root filesystem in read/write mode. You may also need to run mount -a -t ufs to mount the filesystem where your favourite editor is defined. If your favourite editor is on a network filesystem, you will need to either configure the network manually before you can mount network filesystems, or use an editor which resides on a local filesystem, such as ed(1). If you intend to use a full screen editor such as vi(1) or emacs(1), you may also need to run export TERM=cons25 so that these editors can load the correct data from the termcap(5) database. Once you have performed these steps, you can edit /etc/rc.conf as you usually would to fix the syntax error. The error message displayed immediately after the kernel boot messages should tell you the number of the line in the file which is at fault. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message