<?xml version="1.0" encoding="ISO-8859-1"?>
<!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-repo;/project/gptfdisk/gptfdisk/&gptfdisk-version;/gptfdisk-&gptfdisk-version;.tar.gz">
  <!ENTITY gptfdisk-download-ftp  " ">
  <!ENTITY gptfdisk-md5sum        "9cf4246c181c324bdbd553fe9b348373">
  <!ENTITY gptfdisk-size          "192 KB">
  <!ENTITY gptfdisk-buildsize     "2.9 MB">
  <!ENTITY gptfdisk-time          "less than 0.1 SBU">
]>

<sect1 id="gptfdisk" xreflabel="gptfdisk-&gptfdisk-version;">
  <?dbhtml filename="gptfdisk.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-20 15:02:49 -0500 (Fri, 20 Feb 2015) $</date>
  </sect1info>

  <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 inteface similar to the classic <command>fdisk</command> program.
    </para>

    &lfs77_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">Optional</bridgehead>
    <para role="optional">
      <xref linkend="popt"/> (required to build sgdisk) and
      <xref linkend="icu"/> (for Unicode partition names)
    </para>

    <para condition="html" role="usernotes">
      User Notes: <ulink url="&blfs-wiki;/gptdisk"/>
    </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.
      Install <application>gptfdisk</application> by running the following
      commands:
    </para>

<screen><userinput>patch -Np1 -i ../gptfdisk-&gptfdisk-version;-convenience-1.patch &amp;&amp;
make</userinput></screen>

    <para>This package does not come with a test suite.</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>
      <option>ICU=1</option>:  Adding this option to the <command>make</command>
      command allows use of Unicode characters in partition names.
    </para>

    <para>
      <option>POPT=1</option>: Adding this option to the <command>make</command>
      command is required to build <command>sgdisk</command>. If used,
      this option needs to be on both the <command>make</command> and the
      <command>make install</command> line.
    </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 is a curses-based text-mode 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>
