From owner-freebsd-stable@FreeBSD.ORG Mon Jun 20 00:01:39 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD1A316A41C for ; Mon, 20 Jun 2005 00:01:39 +0000 (GMT) (envelope-from pmurray@nevada.net.nz) Received: from bellagio.open2view.com (bellagio.open2view.com [203.97.20.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6844143D53 for ; Mon, 20 Jun 2005 00:01:38 +0000 (GMT) (envelope-from pmurray@nevada.net.nz) Received: from localhost (localhost [127.0.0.1]) by bellagio.open2view.com (Postfix) with ESMTP id E88645B909; Mon, 20 Jun 2005 12:02:10 +1200 (NZST) Received: from bellagio.open2view.com ([127.0.0.1]) by localhost (bellagio.open2view.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28320-08; Mon, 20 Jun 2005 12:02:09 +1200 (NZST) Received: from [10.58.3.145] (222-153-224-129.jetstream.xtra.co.nz [222.153.224.129]) by bellagio.open2view.com (Postfix) with ESMTP id 352105B8F5; Mon, 20 Jun 2005 12:02:09 +1200 (NZST) In-Reply-To: <20050618012856.GB51304@gremlin.foo.is> References: <20050618012856.GB51304@gremlin.foo.is> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Philip Murray Date: Mon, 20 Jun 2005 12:01:34 +1200 To: Baldur Gislason X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at open2view.com Cc: freebsd-stable@freebsd.org Subject: Re: Weird fdisk behavior X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 00:01:39 -0000 Hi, On 18/06/2005, at 1:28 PM, Baldur Gislason wrote: > I am trying to add another partition to my root drive, it has a few > gigabytes of unpartitioned space. > Whenever I try to run fdisk -u it says cannot open disk /dev/ad0: > No such file or directory > ad0 does exist, why does fdisk say otherwise? fdisk can display the > partition table but it can't alter it. > securelevel is -1 and this is FreeBSD 5.4-STABLE from the beginning > of May this year. > Try setting sysctl kern.geom.debugflags=16 before running fdisk. This stops GEOM protecting the drive/partition and allows fdisk to open it. I think fdisk and bsdlabel have been taught about GEOM in 6-current, but I very might well be wrong. Cheers Phil Murray