Can't change partition table anymore
Daniel O'Connor
doconnor at gsoft.com.au
Sun Apr 3 18:37:56 PDT 2005
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=16
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050404/239b6013/attachment-0001.bin
More information about the freebsd-current
mailing list