From owner-freebsd-current@FreeBSD.ORG Mon Apr 4 01:19:46 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 BFAC616A4CE for ; Mon, 4 Apr 2005 01:19:46 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B433E43D41 for ; Mon, 4 Apr 2005 01:19:45 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j341Jico075141 for ; Sun, 3 Apr 2005 20:19:44 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42509610.1000008@centtech.com> Date: Sun, 03 Apr 2005 20:19:12 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050325 X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20050403232027.GA42574@nagual.pp.ru> <20050403234252.GA46022@nagual.pp.ru> <1112627806.695.6.camel@dirk.no.domain> <20050404002331.GA46543@nagual.pp.ru> In-Reply-To: <20050404002331.GA46543@nagual.pp.ru> Content-Type: text/plain; charset=us-ascii; format=flowed 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 01:19:46 -0000 Andrey Chernov wrote: > 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). "Me too". I can use sysinstall to mess with other devices, but not ad0. I've done this 100 times before on previous FBSD's.. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------