[810a2c6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY gptfdisk-download-http "&sourceforge-dl;/gptfdisk/gptfdisk-&gptfdisk-version;.tar.gz">
|
---|
[810a2c6] | 8 | <!ENTITY gptfdisk-download-ftp " ">
|
---|
[e4cdecab] | 9 | <!ENTITY gptfdisk-md5sum "01c11ecfa454096543562e3068530e01">
|
---|
| 10 | <!ENTITY gptfdisk-size "212 KB">
|
---|
| 11 | <!ENTITY gptfdisk-buildsize "2.3 MB">
|
---|
| 12 | <!ENTITY gptfdisk-time "less than 0.1 SBU (add 0.2 SBU for tests)">
|
---|
[810a2c6] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gptfdisk" xreflabel="gptfdisk-&gptfdisk-version;">
|
---|
| 16 | <?dbhtml filename="gptfdisk.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>gptfdisk-&gptfdisk-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gptfdisk">
|
---|
| 22 | <primary sortas="a-gptfdisk">gptfdisk</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to gptfdisk</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>gptfdisk</application> package is a set of programs for
|
---|
| 30 | creation and maintenance of GUID Partition Table (GPT) disk drives. A
|
---|
| 31 | GPT partitioned disk is required for drives greater than 2 TB and is a
|
---|
[2cfb576b] | 32 | modern replacement for legacy PC-BIOS partitioned disk drives that use a
|
---|
[810a2c6] | 33 | Master Boot Record (MBR). The main program, <command>gdisk</command>,
|
---|
[b9c353b] | 34 | has an interface similar to the classic <command>fdisk</command> program.
|
---|
[810a2c6] | 35 | </para>
|
---|
| 36 |
|
---|
[a73fc762] | 37 | &lfs120_checked;
|
---|
[810a2c6] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[29244b7] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&gptfdisk-download-http;"/>
|
---|
| 44 | </para>
|
---|
[810a2c6] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[29244b7] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&gptfdisk-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[810a2c6] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[29244b7] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &gptfdisk-md5sum;
|
---|
| 54 | </para>
|
---|
[810a2c6] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[29244b7] | 57 | <para>
|
---|
| 58 | Download size: &gptfdisk-size;
|
---|
| 59 | </para>
|
---|
[810a2c6] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[29244b7] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &gptfdisk-buildsize;
|
---|
| 64 | </para>
|
---|
[810a2c6] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[29244b7] | 67 | <para>
|
---|
| 68 | Estimated build time: &gptfdisk-time;
|
---|
| 69 | </para>
|
---|
[810a2c6] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing='compact'>
|
---|
| 75 | <listitem>
|
---|
[29244b7] | 76 | <para>
|
---|
| 77 | Recommended patch: <ulink url=
|
---|
| 78 | "&patch-root;/gptfdisk-&gptfdisk-version;-convenience-1.patch"/>
|
---|
| 79 | </para>
|
---|
[0d7900a] | 80 | </listitem>
|
---|
[810a2c6] | 81 | </itemizedlist>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect3">gptfdisk Dependencies</bridgehead>
|
---|
| 84 |
|
---|
[9a94bef] | 85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 86 | <para role="required">
|
---|
| 87 | <xref linkend="popt"/>
|
---|
[73c05ba] | 88 | </para>
|
---|
| 89 |
|
---|
[810a2c6] | 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
[9a94bef] | 92 | <xref linkend="icu"/>
|
---|
[810a2c6] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of gptfdisk</title>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
[0d7900a] | 101 | The <application>gptfdisk</application> package comes with a
|
---|
[810a2c6] | 102 | rudimentary <filename>Makefile</filename>. First we update it
|
---|
[8558044] | 103 | to provide a simple build and install interface and fix the
|
---|
[a37e6b2] | 104 | location of a header file as well fixing an issue introduced
|
---|
| 105 | by a recent version of <application>popt</application>.
|
---|
[810a2c6] | 106 | Install <application>gptfdisk</application> by running the following
|
---|
| 107 | commands:
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
[aca449e3] | 110 | <screen><userinput>patch -Np1 -i ../gptfdisk-&gptfdisk-version;-convenience-1.patch &&
|
---|
[90c883f] | 111 | sed -i 's|ncursesw/||' gptcurses.cc &&
|
---|
[a740c95] | 112 | sed -i 's|sbin|usr/sbin|' Makefile &&
|
---|
[f59d30d0] | 113 | sed -i '/UUID_H/s/^.*$/#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)/' guid.cc &&
|
---|
[a37e6b2] | 114 | sed -i "/device =/s/= \(.*\);/= strdup(\1);/" gptcl.cc &&
|
---|
[90c883f] | 115 |
|
---|
[9a94bef] | 116 | make</userinput></screen>
|
---|
[810a2c6] | 117 |
|
---|
[c434186] | 118 | <para>
|
---|
| 119 | To test the results, issue: <command>make test</command>.
|
---|
| 120 | </para>
|
---|
[810a2c6] | 121 |
|
---|
| 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[9a94bef] | 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[810a2c6] | 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
[9a94bef] | 133 | <command>patch -Np1 ...</command>: This patch modifies the
|
---|
| 134 | <filename>Makefile</filename> file so that it provides an
|
---|
| 135 | <quote>install</quote> target.
|
---|
[810a2c6] | 136 | </para>
|
---|
| 137 |
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
| 140 | <sect2 role="content">
|
---|
| 141 | <title>Contents</title>
|
---|
| 142 |
|
---|
| 143 | <segmentedlist>
|
---|
| 144 | <segtitle>Installed Programs</segtitle>
|
---|
| 145 |
|
---|
| 146 | <seglistitem>
|
---|
| 147 | <seg>
|
---|
| 148 | cgdisk, gdisk, fixparts, and sgdisk
|
---|
| 149 | </seg>
|
---|
| 150 | </seglistitem>
|
---|
| 151 | </segmentedlist>
|
---|
| 152 |
|
---|
| 153 | <variablelist>
|
---|
| 154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 155 | <?dbfo list-presentation="list"?>
|
---|
| 156 | <?dbhtml list-presentation="table"?>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="cgdisk">
|
---|
| 159 | <term><command>cgdisk</command></term>
|
---|
| 160 | <listitem>
|
---|
[29244b7] | 161 | <para>
|
---|
[4c24eb0a] | 162 | is an ncurses-based tool for manipulating GPT partitions
|
---|
[29244b7] | 163 | </para>
|
---|
[810a2c6] | 164 | <indexterm zone="gptfdisk cgdisk">
|
---|
| 165 | <primary sortas="b-cgdisk">cgdisk</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="gdisk">
|
---|
| 171 | <term><command>gdisk</command></term>
|
---|
| 172 | <listitem>
|
---|
[29244b7] | 173 | <para>
|
---|
[4c24eb0a] | 174 | is an interactive text-mode tool for manipulating GPT partitions
|
---|
[29244b7] | 175 | </para>
|
---|
[810a2c6] | 176 | <indexterm zone="gptfdisk gdisk">
|
---|
| 177 | <primary sortas="b-gdisk">gdisk</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="fixparts">
|
---|
| 183 | <term><command>fixparts</command></term>
|
---|
| 184 | <listitem>
|
---|
[29244b7] | 185 | <para>
|
---|
[4c24eb0a] | 186 | repairs mis-formatted MBR based disk partitions
|
---|
[29244b7] | 187 | </para>
|
---|
[810a2c6] | 188 | <indexterm zone="gptfdisk fixparts">
|
---|
| 189 | <primary sortas="b-fixparts">fixparts</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="sgdisk">
|
---|
| 195 | <term><command>sgdisk</command></term>
|
---|
| 196 | <listitem>
|
---|
[29244b7] | 197 | <para>
|
---|
| 198 | is a partition manipulation program for
|
---|
[4c24eb0a] | 199 | GPT partitions similar to <command>sfdisk</command>
|
---|
[29244b7] | 200 | </para>
|
---|
[810a2c6] | 201 | <indexterm zone="gptfdisk sgdisk">
|
---|
| 202 | <primary sortas="b-sgdisk">sgdisk</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | </variablelist>
|
---|
| 208 | </sect2>
|
---|
[4c24eb0a] | 209 |
|
---|
[810a2c6] | 210 | </sect1>
|
---|