Re: Can't change partition table anymore
From: Daniel O'Connor (doconnor_at_gsoft.com.au)
To: firstname.lastname@example.org Date: Mon, 4 Apr 2005 11:07:36 +0930
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
> 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..
Make sure you set it back to 0 after you're done.
-- 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
- application/pgp-signature attachment: stored