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 use a Master Boot Record (MBR). The main program, gdisk, has an interface similar to the classic fdisk program.
This package is known to build and work properly using an LFS 11.3 platform.
Download (HTTP): https://downloads.sourceforge.net/gptfdisk/gptfdisk-1.0.9.tar.gz
Download MD5 sum: 01c11ecfa454096543562e3068530e01
Download size: 212 KB
Estimated disk space required: 2.3 MB
Estimated build time: less than 0.1 SBU (add 0.2 SBU for tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gptdisk
The gptfdisk package comes with a
rudimentary Makefile
. First we update it
to provide a simple build and install interface and fix the
location of a header file as well fixing an issue introduced
by a recent version of popt.
Install gptfdisk by running the following
commands:
patch -Np1 -i ../gptfdisk-1.0.9-convenience-1.patch && sed -i 's|ncursesw/||' gptcurses.cc && sed -i 's|sbin|usr/sbin|' Makefile && sed -i '/UUID_H/s/^.*$/#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)/' guid.cc && sed -i "/device =/s/= \(.*\);/= strdup(\1);/" gptcl.cc && make
To test the results, issue: make test.
Now, as the root
user:
make install
patch -Np1 ...: This patch modifies the
Makefile
file so that it provides an
“install” target.