From owner-freebsd-questions@FreeBSD.ORG Mon May 22 13:40:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 90BDA16A619 for ; Mon, 22 May 2006 13:40:05 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF3B143D49 for ; Mon, 22 May 2006 13:40:04 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k4MDduw2064031; Mon, 22 May 2006 08:39:56 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4471BF26.4090307@daleco.biz> Date: Mon, 22 May 2006 08:39:50 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.2) Gecko/20060509 SeaMonkey/1.0.1 MIME-Version: 1.0 To: Jerry McAllister References: <200605221251.k4MCpKeS004107@clunix.cl.msu.edu> In-Reply-To: <200605221251.k4MCpKeS004107@clunix.cl.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: none none , freebsd-questions@freebsd.org Subject: Re: MESS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 13:40:06 -0000 Jerry McAllister wrote: > Hi, > >> if i enter single user mode it dasen't seem to recognize many commands: >> starrtx, ee, pico, emacs etc so i cannot change my /etc/fstab in case this >> is the problem. > > Yes. Generally none of those extra things are availiable in single user. > Single user is minimal and does not have services started nor anything > but root mounted and root is mounted in a special non-write way. > > You need to learn enough 'vi' editor to fix problems in these types > of situations because generally vi will be available even when the > others are not usable. Whoops! Are you sure about that last statement? [admin@foobar][~] whereis vi vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz /usr/src/usr.bin/vi So, in single-user without /usr mounted, how is he going to run vi(1)? And if /usr *is* mounted, you can call pico, emacs, whatever, (even vi) provided $PATH is established or you care to call 'em directly. I hereby admit to being a vi wimp. I did memorize 'q:!', for obvious reasons; and, this isn't about an editor war, either. Personally, I moved a binary of e3 (ports/editors/e3) into /bin and created the following: [admin@foobar][/bin] cat /bin/ee #!/bin/sh /bin/e3pi --- so I wouldn't have to deal with ed(1) if stuck in single-user. Kevin Kinsey -- Then there was the Formosan bartender named Taiwan-On.