From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 21 02:40:02 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F06B116A419 for ; Wed, 21 Nov 2007 02:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DB39013C468 for ; Wed, 21 Nov 2007 02:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lAL2e24U058949 for ; Wed, 21 Nov 2007 02:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lAL2e266058948; Wed, 21 Nov 2007 02:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 21 Nov 2007 02:40:02 GMT Resent-Message-Id: <200711210240.lAL2e266058948@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1411316A480 for ; Wed, 21 Nov 2007 02:34:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1051D13C459 for ; Wed, 21 Nov 2007 02:34:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lAL2Y7pf041134 for ; Wed, 21 Nov 2007 02:34:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id lAL2Y7cU041129; Wed, 21 Nov 2007 02:34:07 GMT (envelope-from nobody) Message-Id: <200711210234.lAL2Y7cU041129@www.freebsd.org> Date: Wed, 21 Nov 2007 02:34:07 GMT From: Yuri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/118160: unable to mount / rw while booting 7.0-BETA3 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2007 02:40:03 -0000 >Number: 118160 >Category: misc >Synopsis: unable to mount / rw while booting 7.0-BETA3 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 21 02:40:02 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 7.0-BETA3 >Organization: n/a >Environment: >Description: After recompiling and reinstalling the current BETA3 my system has a reboot problem. While booting log says: Starting file system checks: mount: : Operation not permitted. Mounting root file system rw failed, startup aborted. /etc/rc: WARNING: $true is not set properly - see rc.conf(5) and system gets to single user mode. In single user mode / is read-only. And command 'mount -uw /' fails Operation not permitted. I count't find the workaround so far. 'sysctl -a' shows securelevel=-1 (lowest). The major bug seems to be in the 'mount' system call. 'man mount' says that EPERM is returned if "The caller is neither the super-user nor the owner of dir." I am root. The secondary problem is this printout: WARNING: $true is not set properly - see rc.conf(5) It shouldn't print $true Another secondary problem is with man mount(2). Isn't is supposed to mention that setting securelevel also makes 'mount' return EPERM? So now I can reboot normally only choosing "single user mode" when I boot and running "mount -uw /" as a single user. And then continuing the boot process. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: