For the first question, your partition is 10GB, while the drive is 30. Run gpart show
to see the partitions on each "drive", including the freespace. You can then figure out what size you want the partition to be and use gpart resize
.
Once the partition is 30GB, or whatever size you want, run growfs
to resize the filesystem on the partition. Both of these commands take more arguments than I've listed here, see their man pages for details man gpart
and man growfs
respectively. If you have any specific problems running the commands ask again, or drop into chat, there are a few FreeBSD experts in there.
FreeBSD is not Linux, though many people confuse the two (as did two Answerers who have subsequently deleted their wrong answers). Unfortunately Amazon is guilty too. Linux uses labeling similar to /dev/sda1
for it's first hard drive. FreeBSD uses /dev/ad0
for it's first (S)ATA hard drive (and /dev/da0
for SCSI/SAS drives, including ATAPI, USB, FireWire). Solaris uses /dev/rdsk/cWtXdYsZ
... Also FreeBSD adds letters after the device name for MBR Partitions, so /dev/ad0a
is the first partition of the first ATA disk. You'll also see /dev/ad0b/
, for historical reasons this is the whole disk just like the device name without a partition letter.