Fdisk

From wikinotes

fdisk allows you to create mbr/gpt partitions on linux.

Usage

sudo fdisk /dev/sdb

d  # delete partition table
g  # create gpt partition table


p  # print partition table
n  # create partition
t  # change partition type

w  # save

Common Partition Types

GUID

1  EFI System            [C12A7328-F81F-11D2-BA4B-00A0C93EC93B]  # fat32
20 Linux Filesystem                                              # ext2/ext3/ext4
11 Microsoft Basic Data  [EBD0A0A2-B9E5-4433-87C0-68B6B72699C7]  # exfat