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. Baldur
On Sat, 18 Jun 2005, 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.Be aware that fdisk will fake up a partition table if the volume has no table. Look for a message like: warning: invalid partition table found If you see that then there is no FDISK partition table. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org
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