From owner-freebsd-questions@FreeBSD.ORG Sun Dec 2 18:04:36 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 0E13616A420 for ; Sun, 2 Dec 2007 18:04:36 +0000 (UTC) (envelope-from jorn@wcborstel.com) Received: from mail.wcborstel.com (www.wcborstel.com [82.93.93.17]) by mx1.freebsd.org (Postfix) with ESMTP id 975D513C455 for ; Sun, 2 Dec 2007 18:04:35 +0000 (UTC) (envelope-from jorn@wcborstel.com) Received: from mail.wcborstel.com (localhost [10.0.0.2]) by mail.wcborstel.com (Postfix) with ESMTP id EA646433AFF; Sun, 2 Dec 2007 18:49:35 +0100 (CET) Received: by mail.wcborstel.com (Postfix, from userid 58) id 9B90F433AFE; Sun, 2 Dec 2007 18:49:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail.wcborstel.com X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham version=3.2.3 X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from [10.0.1.26] (unknown [10.0.1.26]) by mail.wcborstel.com (Postfix) with ESMTP id 25207433ADA; Sun, 2 Dec 2007 18:49:32 +0100 (CET) Message-ID: <4752EFF1.9050107@wcborstel.com> Date: Sun, 02 Dec 2007 18:48:33 +0100 From: Jorn Argelo User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: John Murphy References: <20071201044427.38bd2c84@asus.freeode.co.uk> <20071201061813.2a0e35e2@gumby.homeunix.com.> <20071201140619.4b7332ba@asus.freeode.co.uk> In-Reply-To: <20071201140619.4b7332ba@asus.freeode.co.uk> X-Virus-Scanned: ClamAV using ClamSMTP Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Sun, 02 Dec 2007 18:04:36 -0000 John Murphy wrote: > On Sat, 1 Dec 2007 06:18:13 +0000 > RW wrote: > > >> On Sat, 1 Dec 2007 04:44:27 +0000 >> John Murphy wrote: >> >> >>> I've just successfully done the world and kernel upgrade from 7 beta2 >>> to beta3. I've always had a mergemaster phobia, but it didn't seem too >>> bad this time. I thought I'd broken it after choosing /bin/tcsh as my >>> shell in single user mode. It grumbled about termcap (I think) and >>> then gave me a "simple shell" with a % prompt. >>> ... >>> I'll know to always accept the suggested /bin/sh in future, but I was >>> wondering if the only reason a choice of a different shell is offered >>> is to scare the unwary. >>> >> Selecting /bin/[t]csh always works for me. >> > > I just tried it again with exactly the same results (FreeBSD-7.0 beta3): > > [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. 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 > Pressing RETURN or typing /bin/sh gets a '#' prompt and working fsck etc. > > Is your /etc/termcap a symlink? > > ll /etc/termcap > lrwxrwxrwx 1 root wheel 23 Nov 15 20:27 /etc/termcap -> /usr/share/misc/termcap > >