Re: Can't change partition table anymore

From: Andrey Chernov (ache_at_nagual.pp.ru)
Date: 04/04/05

  • Next message: Daniel O'Connor: "Re: Problems with Bluetooth LAN access"
    Date: Mon, 4 Apr 2005 04:23:31 +0400
    To: Sam Lawrance <boris@brooknet.com.au>
    
    

    On Mon, Apr 04, 2005 at 10:16:46AM -0500, Sam Lawrance wrote:
    > On Mon, 2005-04-04 at 03:42 +0400, Andrey Chernov wrote:
    > > On Mon, Apr 04, 2005 at 03:38:53AM +0400, 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
    > >
    > > BTW, only fdisk works after that change, sysinstall continue to say
    > > ERROR: Unable to write data to disk ad0!
    > > I suspect more FWRITEs hidden somewhere...
    >
    > Any part of ad0 mounted rw? I think you can't do it when that's the
    > case.

    ad0s1a mounted to /
    (no additional ad0* mounts)
    I do it always without any problems in the past.
    When I boot to single user and try, the picture remains exact the same
    (with / mounted readonly).

    -- 
    http://ache.pp.ru/
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Daniel O'Connor: "Re: Problems with Bluetooth LAN access"

    Relevant Pages

    • Re: Cant change partition table anymore
      ... > It means something is wrong with FWRITE flag settings. ... BTW, only fdisk works after that change, sysinstall continue to say ...
      (freebsd-current)
    • Re: Disk geom and freeBSD 6.2 on lenovoe T60 thinkpad laptop
      ... this is my second attempt to install freeBSD 6.2 on the ... At the sysinstall Main Menu which appeared next, ... Next is the fdisk message. ... A geometry of 232581/16/63 for ad4 is ...
      (comp.unix.bsd.freebsd.misc)
    • sysinstall/fdisk and the disk geometry
      ... When I install Freebsd 5.3, Sysinstall, in the Fdisk submenu,state the ... geometry 116280/16/63 then translate automatically this geometry to ... Sysinstall, partitioning, use Fdisk then: ...
      (freebsd-questions)
    • RE: format slice
      ... >> layout where the NTFS partition still was on the disk. ... I've always assumed that sysinstall uses the fdisk ... is one of them reading only the in-memory label and the other ...
      (freebsd-questions)
    • Re: how to mark a slice bootable using command line
      ... to do sysinstalls 'Set Bootable' command using command line. ... If I run sysinstall, choose Configure, Fdisk, da0, hit the 'S' key (Set ... Bootable) once for every slice and write those "Changes" I can boot into any ... Now I have read the man pages for fdisk and bsdlabel a couple of times, ...
      (freebsd-questions)