From owner-freebsd-current@FreeBSD.ORG Mon Apr 4 00:23:37 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 E6A0916A4CE; Mon, 4 Apr 2005 00:23:37 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A05543D3F; Mon, 4 Apr 2005 00:23:37 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.3/8.13.3) with ESMTP id j340NV33046752; Mon, 4 Apr 2005 04:23:31 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.3/8.13.3/Submit) id j340NV5u046751; Mon, 4 Apr 2005 04:23:31 +0400 (MSD) (envelope-from ache) Date: Mon, 4 Apr 2005 04:23:31 +0400 From: Andrey Chernov To: Sam Lawrance Message-ID: <20050404002331.GA46543@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Sam Lawrance , current@FreeBSD.ORG, phk@freebsd.org References: <20050403232027.GA42574@nagual.pp.ru> <20050403234252.GA46022@nagual.pp.ru> <1112627806.695.6.camel@dirk.no.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112627806.695.6.camel@dirk.no.domain> User-Agent: Mutt/1.5.9i X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.30.0.7; VDF: 6.30.0.61; host: nagual.pp.ru) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (nagual.pp.ru [0.0.0.0]); Mon, 04 Apr 2005 04:23:32 +0400 (MSD) cc: current@FreeBSD.ORG cc: phk@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:23:38 -0000 On Mon, Apr 04, 2005 at 10:16:46AM -0500, Sam Lawrance wrote: > 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. ad0s1a mounted to / (no additional ad0* mounts) I do it always without any problems in the past. When I boot to single user and try, the picture remains exact the same (with / mounted readonly). -- http://ache.pp.ru/