GPT fdisk (aka gdisk) is a text-mode partitioning tool that provides utilities for Globally Unique Identifier (GUID) Partition Table (GPT) disks.
Features:
- Edit GUID partition table definitions - In place conversion of BSD disklabels to GPT - In place conversion of MBR to GPT - In place conversion of GPT to MBR - Create hybrid MBR/GPT layouts - Repair damaged GPT data structures - Repair damaged MBR structures - Back up GPT data to a file (and restore from file)