Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 12:58:21 -0500
From:      Jim Trigg <jtrigg@spamcop.net>
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>
In-Reply-To: <20030312054440.3553.qmail@operamail.com>
References:  <20030312054440.3553.qmail@operamail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 11, 2003 at 11:44:40PM -0600, Franklin Pierce wrote:
> ----- Original Message -----
> From: Tom Parquette <bcsfd204@twcny.rr.com>
> Date: Tue, 11 Mar 2003 18:55:07 -0500
> To: NOEL BALANSAG <pongkee@yahoo.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030312175821.GA55974>