From owner-freebsd-current@FreeBSD.ORG Mon Apr 4 01:37: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 295B216A4CE; Mon, 4 Apr 2005 01:37:56 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C27943D2F; Mon, 4 Apr 2005 01:37:55 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j341bkr6022642; Mon, 4 Apr 2005 11:07:47 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Mon, 4 Apr 2005 11:07:36 +0930 User-Agent: KMail/1.8 References: <20050403232027.GA42574@nagual.pp.ru> <20050403233852.GA45951@nagual.pp.ru> In-Reply-To: <20050403233852.GA45951@nagual.pp.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1277443.eXoTJ6O2BQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504041107.42147.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Andrey Chernov 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:37:56 -0000 --nextPart1277443.eXoTJ6O2BQ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 4 Apr 2005 09:08, 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 If you have part of that device open GEOM won't let you touch the MBR.. You can turn the foot-shooting prevention off by doing.. sysctl kern.geom.debugflags=3D16 Make sure you set it back to 0 after you're done. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1277443.eXoTJ6O2BQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCUJpm5ZPcIHs/zowRArxWAJ4qY6xhfU/6zskcpu38swabaLBB4gCcCkca emqnRYoxOz6PculqVK7CGrE= =l7li -----END PGP SIGNATURE----- --nextPart1277443.eXoTJ6O2BQ--