From owner-freebsd-questions Wed Mar 12 9:57:35 2003 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 3DA2837B401 for ; Wed, 12 Mar 2003 09:57:34 -0800 (PST) Received: from osm.michaelines.net (osm.michaelines.net [66.238.77.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63E2943FA3 for ; Wed, 12 Mar 2003 09:57:33 -0800 (PST) (envelope-from jtrigg@spamcop.net) Received: by osm.michaelines.net (Postfix, from userid 1002) id 9B75C20D16; Wed, 12 Mar 2003 12:58:21 -0500 (EST) Date: Wed, 12 Mar 2003 12:58:21 -0500 From: Jim Trigg To: questions@FreeBSD.ORG Subject: Re: how do i invoke the command "ee" or "vi" when system fails to load Message-ID: <20030312175821.GA55974@michaelines.net> Mail-Followup-To: questions@FreeBSD.ORG References: <20030312054440.3553.qmail@operamail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030312054440.3553.qmail@operamail.com> User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . 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 On Tue, Mar 11, 2003 at 11:44:40PM -0600, Franklin Pierce wrote: > ----- Original Message ----- > From: Tom Parquette > Date: Tue, 11 Mar 2003 18:55:07 -0500 > To: NOEL BALANSAG > Subject: Re: how do i invoke the command "ee" or "vi" when system fails to load > > > NOEL BALANSAG wrote: > > > > >hello. > > > > > >pardon my stupid question, but how do i invoke the > > >command "ee" or "vi"? > *snip* > > >how do i invoke "ee" or "vi"? is it ok to just edit > > >the file "/etc/fstab" and reboot? is there anything > > >else i need to do? > *snip* > > Noel, > > From your description I'm assuming you are going into single user mode. > > It sounds like fstab is pointing in the wrong place. > *snip* > > Don't forget you'll have to invoke it with a long path > name, /usr/bin/ee . another option is to learn the > rather hideous syntax of /bin/ed . OK, it's only > mildly non-intuitive. Another option is to install the editors/e3 port, and copy the executable (which is entirely statically linked) into /bin. That gives you an editor available in recovery mode (only / mounted) that can use vi, emacs, or wordstar/pico key bindings as you want. Jim -- Jim Trigg, Lord High Everything Else O- /"\ \ / ASCII RIBBON CAMPAIGN Hostmaster, Huie Kin family website X HELP CURE HTML MAIL Verger, All Saints Church - Sharon Chapel / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message