From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 08:01:47 2003 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 82EED16A4C0 for ; Wed, 3 Sep 2003 08:01:47 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40CBE43FDF for ; Wed, 3 Sep 2003 08:01:46 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.9/8.12.9) with ESMTP id h83F1iOg005210; Wed, 3 Sep 2003 11:01:45 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.9/8.12.9/Submit) id h83F1iHa005209; Wed, 3 Sep 2003 11:01:44 -0400 (EDT) From: Jerry McAllister Message-Id: <200309031501.h83F1iHa005209@clunix.cl.msu.edu> To: sb.mailinglist@lambdabroadband.com Date: Wed, 3 Sep 2003 11:01:44 -0400 (EDT) In-Reply-To: <00bf01c37224$6a5a7c90$0b4e1151@blackbox> from "Colin Watson" at Sep 03, 2003 03:05:22 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Booting bit-by-bit (rc.conf broken) 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: Wed, 03 Sep 2003 15:01:47 -0000 > > My rc.conf file appears to be broken in some way, and this is preventing > my system from booting. It boots to a heavily resticted system, with only > the / file system mounted and the statically linked binaries available. > Problem is, I can't edit my rc.conf or remove it. Is their any way I can > either selectivly execute statements in the rc.conf during bootup (similar > to the old dos method), or a way I can force login, so I can remove the > damaged rc.conf. First, please break your lines at around 72 characters. It makes it much easier for some of us to read ant to respond to. If you can't figure out how to set your Email client for that, just hit ENTER(RETURN) like people used to have to do on a typewriter. Second, you will have to boot in to single user, do a manual fsck, remount the root file system and then the others if needed and then [use vi to] edit your rc.conf file. There is lots of stuff in the documentation on booting single user, etc but briefly: - Force a boot - when you get the message, something like 'press space to stop or any other key to boot immediately' then hit the spacebar. - type boot -s and let it finish - when it asks for a shell hit ENTER and do the following. - fsck -p - mount -u / - mount -a - swapon -a - vi /etc/rc.conf and write it out 'ESC:wq' when you are done. - shutdown -r now (or just CTRL-D - I'm superstitious about boots) If that did it, you're fine. If not, you may have to go back to single user again and do some more editing. ////jerry > > Thanks > > Colin. > _______________________________________________