Date: Mon, 4 Apr 2005 11:07:36 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-current@freebsd.org Cc: current@freebsd.org Subject: Re: Can't change partition table anymore Message-ID: <200504041107.42147.doconnor@gsoft.com.au> In-Reply-To: <20050403233852.GA45951@nagual.pp.ru> References: <20050403232027.GA42574@nagual.pp.ru> <20050403233852.GA45951@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504041107.42147.doconnor>