From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 28 04:10:05 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 03F7516A419 for ; Wed, 28 Nov 2007 04:10:05 +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 D19D013C46A for ; Wed, 28 Nov 2007 04:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lAS4A4sR054205 for ; Wed, 28 Nov 2007 04:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lAS4A4QX054204; Wed, 28 Nov 2007 04:10:04 GMT (envelope-from gnats) Date: Wed, 28 Nov 2007 04:10:04 GMT Message-Id: <200711280410.lAS4A4QX054204@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gary Palmer Cc: 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 Reply-To: Gary Palmer List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 04:10:05 -0000 The following reply was made to PR bin/118160; it has been noted by GNATS. From: Gary Palmer To: Yuri Cc: Bruce Evans , Yuri , freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: misc/118160: unable to mount / rw while booting 7.0-BETA3 Date: Tue, 27 Nov 2007 23:06:20 -0500 On Tue, Nov 27, 2007 at 07:11:52PM -0800, Yuri wrote: > > > 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 Is your root partition really on the "c" partition? The "c" partition represents the whole disk slice. Sure you don't mean ad12s1a? The conflict between using the c partition and swap on the b partion (which logically is a subset of the entire slice) could be the cause of EPERM > > > 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 > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" > >