FreeBSD fdisk problem
Here is what I did. I transfered FreeBSD 5.4 from 8 G to 40 G disk. Command was:
dd if=/dev/hd0 of=/dev/hd1 bs=16384
New disk can boot normal. Now I want to use free space on 40 G disk for growing /usr, because it is almost full. This is my 40 G disk !
FreeBSD# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 248M 198M 30M 87% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 248M 39M 189M 17% /tmp
/dev/ad0s1f 6.5G 5.4G 530M 91% /usr
/dev/ad0s1d 248M 104M 124M 46% /var
linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc
I found instructions on net how to grow /usr using growfs, but first I must create new partition. But fdisk wont let me ........
FreeBSD# fdisk -s
/dev/ad0: 77545 cyl 16 hd 63 sec
Part Start Size Type Flags
1: 63 16514001 0xa5 0x80
FreeBSD# fdisk -u
fdisk: cannot open disk /dev/ad0: No such file or directory
What is this? ad0 is there, of course. Any ideas, how can I grow my existing /usr?