glfs/postlfs/filesystems/gptfdisk.xml
Douglas R. Reno 0bd02907b9 gptfdisk: Remove the sed for UUID_H.
The fix for it was applied in gptfdisk-1.0.10.
2024-02-22 15:09:54 -06:00

208 lines
6.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY gptfdisk-download-http "&sourceforge-dl;/gptfdisk/gptfdisk-&gptfdisk-version;.tar.gz">
<!ENTITY gptfdisk-download-ftp " ">
<!ENTITY gptfdisk-md5sum "1970269eb7a97560e238611524b7797a">
<!ENTITY gptfdisk-size "216 KB">
<!ENTITY gptfdisk-buildsize "2.4 MB">
<!ENTITY gptfdisk-time "less than 0.1 SBU (add 0.2 SBU for tests)">
]>
<sect1 id="gptfdisk" xreflabel="gptfdisk-&gptfdisk-version;">
<?dbhtml filename="gptfdisk.html"?>
<title>gptfdisk-&gptfdisk-version;</title>
<indexterm zone="gptfdisk">
<primary sortas="a-gptfdisk">gptfdisk</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to gptfdisk</title>
<para>
The <application>gptfdisk</application> 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, <command>gdisk</command>,
has an interface similar to the classic <command>fdisk</command> program.
</para>
&lfs121_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&gptfdisk-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&gptfdisk-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &gptfdisk-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &gptfdisk-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &gptfdisk-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &gptfdisk-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<listitem>
<para>
Recommended patch: <ulink url=
"&patch-root;/gptfdisk-&gptfdisk-version;-convenience-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">gptfdisk Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="popt"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="icu"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of gptfdisk</title>
<para>
The <application>gptfdisk</application> package comes with a
rudimentary <filename>Makefile</filename>. First we update it
to provide a simple build and install interface and fix the
location of a header file and fix some minor location issues.
Install <application>gptfdisk</application> by running the following
commands:
</para>
<screen><userinput>patch -Np1 -i ../gptfdisk-&gptfdisk-version;-convenience-1.patch &amp;&amp;
sed -i 's|ncursesw/||' gptcurses.cc &amp;&amp;
sed -i 's|sbin|usr/sbin|' Makefile &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make test</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>patch -Np1 ...</command>: This patch modifies the
<filename>Makefile</filename> file so that it provides an
<quote>install</quote> target.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<seglistitem>
<seg>
cgdisk, gdisk, fixparts, and sgdisk
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="cgdisk">
<term><command>cgdisk</command></term>
<listitem>
<para>
is an ncurses-based tool for manipulating GPT partitions
</para>
<indexterm zone="gptfdisk cgdisk">
<primary sortas="b-cgdisk">cgdisk</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="gdisk">
<term><command>gdisk</command></term>
<listitem>
<para>
is an interactive text-mode tool for manipulating GPT partitions
</para>
<indexterm zone="gptfdisk gdisk">
<primary sortas="b-gdisk">gdisk</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fixparts">
<term><command>fixparts</command></term>
<listitem>
<para>
repairs mis-formatted MBR based disk partitions
</para>
<indexterm zone="gptfdisk fixparts">
<primary sortas="b-fixparts">fixparts</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="sgdisk">
<term><command>sgdisk</command></term>
<listitem>
<para>
is a partition manipulation program for
GPT partitions similar to <command>sfdisk</command>
</para>
<indexterm zone="gptfdisk sgdisk">
<primary sortas="b-sgdisk">sgdisk</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>