FreeBSD and GPT

From ZS64
Jump to: navigation, search

GPT is the new partitioning scheme, to replace the fdisk style partitions/slices and bsdlabel. Documentation is a bit scarce at teh moment, so here are some notes.

gpart getting started

  1. Create a GTP partition on the disk
    gpart create -s gpt ad4
  2. Install boot code on the disk
    gpart add -b 34 -s 128 -t freebsd-boot ad0
    gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ad4
  3. Add a partition
    gpart add -b 512 -s 1048576 -t freebsd-ufs ad4