This is an old revision of archlinux/gdisk from 17.09.2013 10:29 edited by EvaggelosBalaskas.
GUID Partition Table
lets assume that you want to create a new GPT layout on a disk.
From command line you can use gdisk
Contents
Create new layout
gdisk /dev/sda o Y
Create a new partition
eg. you need a 5G rootfs partition:
n [enter] [enter] +5G [enter]
Create a swap partition
eg. the rest available space is for swap:
n [enter] [enter] [enter] 8200
Save layout to disk
w
Y
Verify your changes
gdisk -l /dev/sda