From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 22:54:21 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 72ADA16A4CE for ; Fri, 5 Mar 2004 22:54:21 -0800 (PST) Received: from mmp-2.gci.net (mmp-2.gci.net [208.138.130.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B25C43D2D for ; Fri, 5 Mar 2004 22:54:21 -0800 (PST) (envelope-from joepok@ninestar.com) Received: from JOETABLET (89-6-237-24.gci.net [24.237.6.89]) by mmp-2.gci.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HU500BKH76KFO@mmp-2.gci.net> for freebsd-questions@freebsd.org; Fri, 05 Mar 2004 21:54:21 -0900 (AKST) Date: Fri, 05 Mar 2004 21:54:01 -0900 From: Joe Pokupec In-reply-to: <200403051655.i25Gt5J25937@clunix.cl.msu.edu> To: freebsd-questions@freebsd.org Message-id: <0HU500BKI76KFO@mmp-2.gci.net> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Thread-index: AcQC0tTP/LIfHfriSzyjQwP8IPkv4wAdD3Sw 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: Sat, 06 Mar 2004 06:54:21 -0000 Thanks for the many posts guys. I understand the concept of mounting the /usr partition. Actually, the "mount -a" worked even though the fstab was mucked up. I didn't realize that single user mode doesn't mount the slices by default... but it all makes sense now. Thanks Joe -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Jerry McAllister Sent: Friday, March 05, 2004 7:55 AM To: Joshua Lokken Cc: freebsd-questions@freebsd.org Subject: Re: SIngle User Mode Help > > * 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 or fsck /dev/d0s1f > > 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 Except this might not work if he has bollixed up his fstab as indicated in the original question. > prompt# mount -u / > prompt# mount -a -tufs This might not wokr either with a bad fstab. but doing it for specific devices to specific mount points should work even with a messed up fstab. ////jerry > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"