From owner-freebsd-questions Wed Apr 12 12:43:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24]) by hub.freebsd.org (Postfix) with ESMTP id 0C0F837BE64 for ; Wed, 12 Apr 2000 12:36:50 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat35.x-treme.gr [212.120.197.227]) by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id WAA25295; Wed, 12 Apr 2000 22:05:24 +0300 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id FAA16225; Wed, 12 Apr 2000 05:06:59 +0300 (EEST) (envelope-from charon) Date: Wed, 12 Apr 2000 05:06:59 +0300 From: Giorgos Keramidas To: Tom Vollmer Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problem Message-ID: <20000412050658.B16060@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <000801bfa40d$168f3f80$0b0000c0@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000801bfa40d$168f3f80$0b0000c0@mindspring.com>; from vollmert@mindspring.com on Tue, Apr 11, 2000 at 04:24:28PM -0700 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 11, 2000 at 04:24:28PM -0700, Tom Vollmer wrote: > I made an error in the /etc/rc.conf file. I quote character was not > inserted after the hostname parameter. Now, the machine stops when > parsing the file and I can only get to a '#' prompt. I can't get > prompted for login and I do not have enough rights to fix the file. That is because the first time that /etc/rc.conf is read, the root filesystem is still mounted read-only. You have to mount it read-write first, and then use your favorite editor to change whatever it is that bit you :) > Can I get procedure to get enough rights to put the quote character > in? Hopefully, I won't have to reinstall the OS. Thanks, You don't have to reinstall anything. Just do the following things: - Boot your system, and wait until you get the # prompt. - Mount your root-filesystem read-write: # mount -u / - Mount /usr, /var, and what else you keep in separate partitions, at this spot. I have /usr and /usr/home on separate partitions, and I have to do at this spot: # mount /usr # mount /usr/home - Edit /etc/rc.conf and correct the mistake. - Exit from the single-user mode shell, and let the system try to boot itself normally: # exit You should be fine, after all this. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Pessimists are just optimists, who got burnt at least once." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message