From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 08:51:19 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 381EF16A4CE for ; Fri, 5 Mar 2004 08:51:19 -0800 (PST) Received: from voyager.twobirds.us (c-24-18-222-18.client.comcast.net [24.18.222.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA5A543D3F for ; Fri, 5 Mar 2004 08:51:18 -0800 (PST) (envelope-from joshua@twobirds.us) Received: from joshua by voyager.twobirds.us with local (Exim 4.30; FreeBSD) id 1AzcD6-000P0I-4x for freebsd-questions@freebsd.org; Sat, 06 Mar 2004 05:51:24 -0800 Date: Sat, 6 Mar 2004 05:51:23 -0800 From: Joshua Lokken To: freebsd-questions@freebsd.org Message-ID: <20040306135123.GA55765@voyager.swabbies.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <0HU3000VYHSO4G@mmp-3.gci.net> <200403051516.i25FGQZ25312@clunix.cl.msu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403051516.i25FGQZ25312@clunix.cl.msu.edu> User-Agent: Mutt/1.4.2.1i Subject: Re: SIngle User Mode Help 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, 05 Mar 2004 16:51:19 -0000 * Jerry McAllister [2004-03-06 02:42]: > > > > Hey Guys, > > > > I'm constantly botching up my fstab file and the system will fail to boot > > correctly. I've learned to create a working fstab and call is fstab.orig > > which I can overwrite the botched file if I end up in Single User Mode... > > You're right to make a copy before tinkering. > > > I can't find any info on Single User Mode to help me: > > > > - I use mount -u / to mount the filesystem as read/write > > That is correct, but, of course, it only gets the root (/) filesystem > mounted. You may need stuff on other ones, especially /usr. > > Try doing > fsck /usr > mount /usr or mount /dev/d0s1f /usr or whatever slice and > partition you have /usr on > > > - I cannot access any editors like vi or pico (my personal) favorite once in > > single user mode... Why? > Or, to make things easier: prompt# fsck -p prompt# mount -u / prompt# mount -a -tufs just like pre-buildworld... -- Joshua Another war ... must it always be so? How many comrades have we lost in this way? ... Obedience. Duty. Death, and more death ... -- Romulan Commander, "Balance of Terror", stardate 1709.2