Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2005 12:01:34 +1200
From:      Philip Murray <pmurray@nevada.net.nz>
To:        Baldur Gislason <baldur@foo.is>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Weird fdisk behavior
Message-ID:  <BD514A03-60AE-424C-9BF1-755B4E3254D2@nevada.net.nz>
In-Reply-To: <20050618012856.GB51304@gremlin.foo.is>
References:  <20050618012856.GB51304@gremlin.foo.is>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BD514A03-60AE-424C-9BF1-755B4E3254D2>