Introduction to gptfdisk

The gptfdisk package is a set of programs for creation and maintenance of GUID Partition Table (GPT) disk drives. A GPT partitioned disk is required for drives greater than 2 TB and is a modern replacement for legacy PC-BIOS partitioned disk drives that us a Master Boot Record (MBR). The main program, gdisk, has an inteface similar to the classic fdisk program.

This package is known to build and work properly using an LFS-7.4 platform.

Package Information

Additional Downloads

gptfdisk Dependencies


popt-1.16 (required to build sgdisk) and ICU-51.2 (for Unicode partition names)

User Notes:

Installation of gptfdisk

The gptfdisk package comes with a rudimentary Makefile. First we update it to provide a simple build and install interface. Install gptfdisk by running the following commands:

patch -Np1 -i ../gptfdisk-0.8.7-convenience-1.patch &&

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

ICU=1: Adding this option to the make command allows use of Unicode characters in partition names.

POPT=1: Adding this option to the make command is required to build sgdisk. If used, this option needs to be on both the make and the make install line.


Installed Programs: cgdisk, gdisk, fixparts, and sgdisk

Short Descriptions


is an is a curses-based text-mode tool for manipulating GPT partitions.


is an interactive text-mode tool for manipulating GPT partitions.


repairs mis-formatted MBR based disk partitions.


is a partition manipulation program for GPT partitions sililar to sfdisk.

Last updated on 2013-09-05 10:04:34 -0700