From owner-freebsd-questions@FreeBSD.ORG Mon Dec 3 01:53:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21C9D16A420 for ; Mon, 3 Dec 2007 01:53:15 +0000 (UTC) (envelope-from freebsd001@freeode.co.uk) Received: from mail.freeode.co.uk (mail.freeode.co.uk [87.127.24.125]) by mx1.freebsd.org (Postfix) with ESMTP id B459813C455 for ; Mon, 3 Dec 2007 01:53:14 +0000 (UTC) (envelope-from freebsd001@freeode.co.uk) Received: from asus.freeode.co.uk ([10.10.10.10]) by mail.freeode.co.uk (8.13.6/8.13.6) with ESMTP id lB31rDpb070128; Mon, 3 Dec 2007 01:53:13 GMT (envelope-from freebsd001@freeode.co.uk) Date: Mon, 3 Dec 2007 01:53:13 +0000 From: John Murphy To: Jorn Argelo Message-ID: <20071203015313.48f35789@asus.freeode.co.uk> In-Reply-To: <4752EFF1.9050107@wcborstel.com> References: <20071201044427.38bd2c84@asus.freeode.co.uk> <20071201061813.2a0e35e2@gumby.homeunix.com.> <20071201140619.4b7332ba@asus.freeode.co.uk> <4752EFF1.9050107@wcborstel.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: What's the point of the shell choice in single user mode? 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, 03 Dec 2007 01:53:15 -0000 On Sun, 02 Dec 2007 18:48:33 +0100 Jorn Argelo wrote: > John Murphy wrote: > > [after pressing 4 at the Beasty menu] > > > > Trying to mount root from ufs:/dev/ad4s2a > > Enter full path name of shell or RETURN for /bin/sh: > > /bin/tcsh > > sh: Cannot open /etc/termcap > > sh: using dumb terminal settings > > %fsck -p > > fsck: Command not found > > %mount -u / > > mount: Command not found > > %reboot > > reboot: Command not found > > %exit > > logout ... continues to a Login prompt. > > > You simply don't have the commands in your PATH. Type /sbin/mount, > /sbin/fsck, /sbin/reboot and so on, and it does work. Never tried using > an setenv PATH /bin:/sbin:usr/bin:/usr/sbin(etc) in single user mode, > but I reckon it works. Thanks. Useful to know that those tools are all in /sbin I can confirm that setenv PATH .... works too. > Also note that vi doesn't work by default as it needs to write to /tmp. > So mount /tmp or re-mount / to RW permissions. > > Regards, > > Jorn -- Thanks, John.