Creating new GPT partitions for FreeBSD

Create GPT

gpart create -s gpt ada1

Create partitions

gpart add -a 1m -t freebsd-boot -s 64k ada1
gpart add -a 1m -t freebsd-swap -s 1g ada1
gpart add -a 1m -t freebsd-ufs ada1

Install bootcode

gpart bootcode -b /boot/pmbr ada1
gpart bootcode -p /boot/gptboot -i 1 ada1

Create filesystem

newfs -U /dev/ada1p3

E-mail Valid XHTML 1.1 Valid CSS!