From owner-freebsd-current@FreeBSD.ORG Wed Aug 24 05:02:24 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30C9F16A41F for ; Wed, 24 Aug 2005 05:02:24 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from haven.freebsd.dk (haven.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA20443D46 for ; Wed, 24 Aug 2005 05:02:23 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (unknown [192.168.48.2]) by haven.freebsd.dk (Postfix) with ESMTP id 4C659BC66; Wed, 24 Aug 2005 05:02:22 +0000 (UTC) To: Emanuel Strobl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 23 Aug 2005 23:06:48 +0200." <200508232307.00566@harrymail> Date: Wed, 24 Aug 2005 07:02:21 +0200 Message-ID: <82298.1124859741@phk.freebsd.dk> Sender: phk@phk.freebsd.dk Cc: freebsd-current@freebsd.org Subject: Re: GEOM too restrictive even with debugflags=16 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 05:02:24 -0000 In message <200508232307.00566@harrymail>, Emanuel Strobl writes: >--nextPart2133393.7VrDXAqMhl >Content-Type: text/plain; > charset="us-ascii" >Content-Transfer-Encoding: quoted-printable >Content-Disposition: inline > >Hello, > >again I ran into the problem that I need to edit my GPT while the system is > >in multiuser running. But the following doesn't work: >cale:/#70: sysctl -w kern.geom.debugflags=16 >kern.geom.debugflags: 0 -> 16 >cale:/#71: gpt remove -i 8 ad0s2 >gpt remove: unable to open device 'ad0s2': Operation not permitted > >Arrghhh. Now I have to stop all work and go into singleuser mode. Thats not >acceptable! And please don't tell me that I use the wrong device, it's a >i386 machine so I need a MBR in ad0 and have to use GPT inside a slice! The geom_gpt class needs to implement g_ctl methods for metadata modification. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.