GPT fdisk — S.O.S. (Simple Operating System)

By , on , updated on .

GPT fdisk, also known as gdisk, “is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks.” In this article we will build it from scratch.

This little suite of apps is distributed under The GNU General Public Licence, version 2 (see the COPYING file in the project). The suite is written and maintained by Roderick W. Smith, who also maintain its official web page.

GPT fdisk provides 4 programs: gdisk (interactive, text-mode), cgdisk (interactive, curses-based), sgdisk (non interactive commande line interface) and fixparts. gdisk, cgdisk and sgdisk all depends on libuuid, which is part of e2fsprogs. We build it ☞ there. cgdisk depends on ncurses, which we build ☞ there. sgdisk depends on popt, which we build ☞ there. fixparts doesn't seem to depend on anything.

gdiskcgdisksgdiskfixparts
libuuidX X X
ncurses X
popt X
Table of dependencies.