Re: Can't change partition table anymore

From: Daniel O'Connor (doconnor_at_gsoft.com.au)
Date: 04/04/05

  • Next message: Steve Kargl: "Re: Can't change partition table anymore"
    To: freebsd-current@freebsd.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
    > 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 message: Steve Kargl: "Re: Can't change partition table anymore"

    Relevant Pages

    • Re: Cant change partition table anymore
      ... On Mon, 4 Apr 2005 09:08, Andrey Chernov wrote: ... > It means something is wrong with FWRITE flag settings. ... Daniel O'Connor software and network engineer ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-current)
    • Re: Cant change partition table anymore
      ... On Mon, 4 Apr 2005 11:39, Andrey Chernov wrote: ... > Thanx, I'll try, but why fdisk/sysinstall don't do that automatically for ... It disallows writing the MBR full stop - it does not try and work out what is ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-current)