From owner-freebsd-current@FreeBSD.ORG Mon Apr 4 00:16:54 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3324A16A4CE for ; Mon, 4 Apr 2005 00:16:54 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5F8B43D31 for ; Mon, 4 Apr 2005 00:16:52 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from ppp22B0.dyn.pacific.net.au (ppp22B0.dyn.pacific.net.au [61.8.34.176])j340GlAd019886; Mon, 4 Apr 2005 10:16:49 +1000 From: Sam Lawrance To: Andrey Chernov In-Reply-To: <20050403234252.GA46022@nagual.pp.ru> References: <20050403232027.GA42574@nagual.pp.ru> <20050403234252.GA46022@nagual.pp.ru> Content-Type: text/plain Date: Mon, 04 Apr 2005 10:16:46 -0500 Message-Id: <1112627806.695.6.camel@dirk.no.domain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: Can't change partition table anymore X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 00:16:54 -0000 On Mon, 2005-04-04 at 03:42 +0400, Andrey Chernov wrote: > On Mon, Apr 04, 2005 at 03:38:53AM +0400, Andrey Chernov wrote: > > On Mon, Apr 04, 2005 at 03:20:27AM +0400, Andrey Chernov wrote: > > > Recent -current says "Operation not permitted" for both fdisk and > > > sysinstall partition changes (under su root). Something wrong happens with > > > DIOCSMBR. Plain ATA disk ad0. Any ideas? > > > > When I comment out this two lines in geom_mbr.c, it works again as before: > > //if (!(fflag & FWRITE)) > > // return (EPERM); > > It means something is wrong with FWRITE flag settings. Device itself is > > writeable: > > crw-r----- 1 root operator 8, 66 Apr 4 03:33 /dev/ad0 > > BTW, only fdisk works after that change, sysinstall continue to say > ERROR: Unable to write data to disk ad0! > I suspect more FWRITEs hidden somewhere... Any part of ad0 mounted rw? I think you can't do it when that's the case.