From owner-freebsd-current@FreeBSD.ORG Sun Apr 3 23:42:56 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 6026116A4CE; Sun, 3 Apr 2005 23:42:56 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B46543D3F; Sun, 3 Apr 2005 23:42:55 +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 j33Ngreb046054; Mon, 4 Apr 2005 03:42:53 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.3/8.13.3/Submit) id j33NgrnN046053; Mon, 4 Apr 2005 03:42:53 +0400 (MSD) (envelope-from ache) Date: Mon, 4 Apr 2005 03:42:53 +0400 From: Andrey Chernov To: current@freebsd.org, phk@freebsd.org Message-ID: <20050403234252.GA46022@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , current@freebsd.org, phk@freebsd.org References: <20050403232027.GA42574@nagual.pp.ru> <20050403233852.GA45951@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050403233852.GA45951@nagual.pp.ru> 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 03:42:54 +0400 (MSD) 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: Sun, 03 Apr 2005 23:42:56 -0000 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... -- http://ache.pp.ru/