From owner-freebsd-questions@FreeBSD.ORG Tue Mar 25 13:33:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E580193 for ; Tue, 25 Mar 2014 13:33:53 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B38A6BF6 for ; Tue, 25 Mar 2014 13:33:52 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id s2PDXlXE048094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 Mar 2014 14:33:47 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id s2PDXlXT048091; Tue, 25 Mar 2014 14:33:47 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 25 Mar 2014 14:33:47 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Beeblebrox Subject: Re: Single-User mode problems In-Reply-To: <1395753446601-5897506.post@n5.nabble.com> Message-ID: References: <1395753446601-5897506.post@n5.nabble.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2014 13:33:53 -0000 On Tue, 25 Mar 2014 06:17-0700, Beeblebrox wrote: > I am seeing two problems when system goes to single-user mode. > > 1. If I boot into single-user, It gives ""cannot read termcap database using > dumb terminal settings". I have checked /usr/share/misc and ran "# cap_mkdb > termcap". Resulting .db file is same size as before. Any chance the /usr/share, or even /usr, are on separate filesystems? On systems with a separate /usr, UFS or ZFS, I usually create the /usr/share/misc hierarchy on the root fs, and and place additional copies of the termcap* files there. This makes both the Bourne shell and the Bourne-again shell happy. As an aid to update these extra copies, I mount the root fs as NFS on localhost while in multi-user mode. > 2. On the other hand, if I go to single user with "shutdown now", "Enter > full pathname of shell or RETURN for /bin/sh:", Return > system freezes and > shows "init: can't exec for single user no such file or directory". I then > have to "ctrl+alt+del" and reboot. > > It's possible problem #1 is related to #2, but I can't figure out how... > > $ ls /bin/*sh* > csh sh tcsh > $ cat /etc/shells > /bin/sh, /bin/csh, /bin/tcsh, /usr/local/bin/bash, > /usr/local/bin/rbash, /usr/local/libexec/git-core/git-shell Hmm, I have never seen problem #2. Is this on base/head? What rev? -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+