From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 28 03:32:20 2007 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B70316A419; Wed, 28 Nov 2007 03:32:20 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA9813C442; Wed, 28 Nov 2007 03:32:20 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id lAS3BqXc031042; Tue, 27 Nov 2007 19:11:52 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id lAS3BqkK031041; Tue, 27 Nov 2007 19:11:52 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Tue, 27 Nov 2007 19:11:52 -0800 Message-ID: <1196219512.474cdc78837c1@webmail.rawbw.com> Date: Tue, 27 Nov 2007 19:11:52 -0800 From: Yuri To: Bruce Evans References: <200711210234.lAL2Y7cU041129@www.freebsd.org> <20071121170349.X81263@delplex.bde.org> In-Reply-To: <20071121170349.X81263@delplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 Cc: Yuri , freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: 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, 28 Nov 2007 03:32:20 -0000 > > While booting log says: > > Starting file system checks: > > > > mount: : Operation not permitted. > > This is probably a secondary problem. You apparently have the root device > mounted on "" or something like that. > What does mount shouw for the root device? > No, when I get to shell after this failure during the normal boot process mount shows: /dev/ad12s1c / (ufs,local,read-only) swapinfo shows that swap volume is /dev/ad12s1b > > 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. > > You are apparently attempting to mount the same device twice (even though > -u specifies an already-mounted device, the kernel is apparently confused > about where it is mounted). > I thought that mount command is supposed to pick up the locations correctly, so that when I say 'mount -uw /' device should be picked up from the already mounted list. Also I found that swapon and mount are related in my case. Once swapon is done I can't remount root as r/w. And vice versa, when mount -uw is done swapon returns EPERM. This happens when I boot as single user. When I do swapon consecutive 'mount -uw ' fails. When I do 'mount -uw' consecutive swapon fails. So I don't have swap at all since this command failed during boot. I guess 'nmount' and 'swapon' system calls are similar and somehow interfere with each other. So I still can't boot normally, only through single user mode and I don't have swap at all after this. Yuri