[2875f488] | 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 |
|
---|
[49b0f95] | 7 | <!ENTITY parted-download-http
|
---|
| 8 | "http://ftp.gnu.org/gnu/parted/parted-&parted-version;.tar.xz">
|
---|
[22041ee] | 9 | <!ENTITY parted-download-ftp " ">
|
---|
[5f1ca9f] | 10 | <!ENTITY parted-md5sum "0247b6a7b314f8edeb618159fa95f9cb">
|
---|
| 11 | <!ENTITY parted-size "1.6 MB">
|
---|
| 12 | <!ENTITY parted-buildsize "27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)">
|
---|
| 13 | <!ENTITY parted-time "0.4 SBU (additional 0.6 SBU for the tests)">
|
---|
[2875f488] | 14 | ]>
|
---|
| 15 |
|
---|
[810a2c6] | 16 | <sect1 id="parted" xreflabel="parted-&parted-version;">
|
---|
[2875f488] | 17 | <?dbhtml filename="parted.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[810a2c6] | 24 | <title>parted-&parted-version;</title>
|
---|
[2875f488] | 25 |
|
---|
| 26 | <indexterm zone="parted">
|
---|
[810a2c6] | 27 | <primary sortas="a-parted">Parted</primary>
|
---|
[2875f488] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[810a2c6] | 31 | <title>Introduction to parted</title>
|
---|
[2875f488] | 32 |
|
---|
[49b0f95] | 33 | <para>
|
---|
| 34 | The <application>Parted</application> package is a disk partitioning and
|
---|
| 35 | partition resizing tool.
|
---|
| 36 | </para>
|
---|
[2875f488] | 37 |
|
---|
[aed3e6ec] | 38 | &lfs77_checked;
|
---|
[e4123d2] | 39 |
|
---|
[2875f488] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&parted-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&parted-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &parted-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &parted-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &parted-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &parted-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[6e08e9c0] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Optional, to fix build without device mapper support:
|
---|
| 67 | <ulink url="&patch-root;/parted-&parted-version;-devmapper-1.patch"/>
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[2875f488] | 72 | <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
|
---|
| 73 |
|
---|
[49b0f95] | 74 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 75 | <para role="recommended">
|
---|
[0d7900a] | 76 | <xref linkend="lvm2"/> (device-mapper, required if building
|
---|
[49b0f95] | 77 | <application>udisks</application>)
|
---|
[8bc3edae] | 78 | </para>
|
---|
[2875f488] | 79 |
|
---|
[5f1ca9f] | 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 81 | <para role="optional">
|
---|
| 82 | <xref linkend="pth"/>
|
---|
[f720ace1] | 83 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[5f1ca9f] | 84 | </para>
|
---|
| 85 |
|
---|
[49b0f95] | 86 | <para condition="html" role="usernotes">
|
---|
| 87 | User Notes: <ulink url="&blfs-wiki;/parted"/>
|
---|
| 88 | </para>
|
---|
[2875f488] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
[810a2c6] | 92 | <title>Installation of parted</title>
|
---|
[6e08e9c0] | 93 |
|
---|
| 94 | <para>
|
---|
| 95 | If you want to build without device mapper support, a fix is necessary:
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
|
---|
[2875f488] | 99 |
|
---|
[49b0f95] | 100 | <para>
|
---|
| 101 | Install <application>Parted</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[2875f488] | 104 |
|
---|
[5f1ca9f] | 105 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[9ca304a] | 106 | make &&
|
---|
| 107 |
|
---|
| 108 | make -C doc html &&
|
---|
| 109 | makeinfo --html -o doc/html doc/parted.texi &&
|
---|
| 110 | makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | <para>If you have <xref linkend="texlive"/> installed and wish to create
|
---|
| 113 | PDF and Postcript documentation issue the following commands:</para>
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &&
|
---|
| 116 | texi2dvi -o doc/parted.dvi doc/parted.texi &&
|
---|
| 117 | dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
|
---|
[2875f488] | 118 |
|
---|
[d81eda8] | 119 | <para>If you wish to run the test suite, first remove a test that normally
|
---|
| 120 | fails in BLFS, because it needs a locale C.UTF-8:</para>
|
---|
| 121 |
|
---|
| 122 | <screen><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile</userinput></screen>
|
---|
| 123 |
|
---|
[cf67717] | 124 | <para>
|
---|
| 125 | To test the results, issue: <command>make check</command>. Note that
|
---|
| 126 | many tests are skipped if not run as the <systemitem
|
---|
[d81eda8] | 127 | class="username">root</systemitem> user.
|
---|
[cf67717] | 128 | </para>
|
---|
[2875f488] | 129 |
|
---|
[49b0f95] | 130 | <para>
|
---|
| 131 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 132 | </para>
|
---|
[2875f488] | 133 |
|
---|
[9ca304a] | 134 | <screen role="root"><userinput>make install &&
|
---|
[b141cb2] | 135 | install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 136 | install -v -m644 doc/html/* \
|
---|
[b141cb2] | 137 | /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 138 | install -v -m644 doc/{FAT,API,parted.{txt,html}} \
|
---|
[b141cb2] | 139 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[9ca304a] | 140 |
|
---|
| 141 | <para>Install the optional PDF and Postscript documentation by issuing
|
---|
| 142 | the following command as the <systemitem class="username">root</systemitem>
|
---|
| 143 | user:</para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
|
---|
[b141cb2] | 146 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[2875f488] | 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
[49b0f95] | 152 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 153 | href="../../xincludes/static-libraries.xml"/>
|
---|
[2875f488] | 154 |
|
---|
[49b0f95] | 155 | <para>
|
---|
| 156 | <option>--disable-device-mapper</option>: This option disables device
|
---|
| 157 | mapper support. Add this parameter if you have not installed
|
---|
| 158 | <application>LVM2</application>.
|
---|
| 159 | </para>
|
---|
[2875f488] | 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
| 166 | <segtitle>Installed Programs</segtitle>
|
---|
[5f1ca9f] | 167 | <segtitle>Installed Libraries</segtitle>
|
---|
| 168 | <segtitle>Installed Directories</segtitle>
|
---|
[2875f488] | 169 |
|
---|
| 170 | <seglistitem>
|
---|
[49b0f95] | 171 | <seg>
|
---|
| 172 | parted and
|
---|
| 173 | partprobe
|
---|
| 174 | </seg>
|
---|
[5f1ca9f] | 175 | <seg>
|
---|
| 176 | libparted.so and
|
---|
| 177 | libparted-fs-resize.so</seg>
|
---|
| 178 | <seg>
|
---|
| 179 | /usr/include/parted and
|
---|
| 180 | /usr/share/doc/parted-&parted-version;</seg>
|
---|
[2875f488] | 181 | </seglistitem>
|
---|
| 182 | </segmentedlist>
|
---|
| 183 |
|
---|
| 184 | <variablelist>
|
---|
| 185 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 186 | <?dbfo list-presentation="list"?>
|
---|
| 187 | <?dbhtml list-presentation="table"?>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="parted-prog">
|
---|
| 190 | <term><command>parted</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>is a partition manipulation program.</para>
|
---|
| 193 | <indexterm zone="parted parted-prog">
|
---|
| 194 | <primary sortas="b-parted">parted</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="partprobe">
|
---|
| 200 | <term><command>partprobe</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>informs the OS of partition table changes.</para>
|
---|
| 203 | <indexterm zone="parted partprobe">
|
---|
| 204 | <primary sortas="b-partprobe">partprobe</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="libparted">
|
---|
[49b0f95] | 210 | <term><filename class='libraryfile'>libparted.so</filename></term>
|
---|
[2875f488] | 211 | <listitem>
|
---|
[49b0f95] | 212 | <para>
|
---|
| 213 | contains the <application>Parted</application> API functions.
|
---|
| 214 | </para>
|
---|
[2875f488] | 215 | <indexterm zone="parted libparted">
|
---|
[49b0f95] | 216 | <primary sortas="c-libparted">libparted.so</primary>
|
---|
[2875f488] | 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 | </variablelist>
|
---|
| 221 | </sect2>
|
---|
| 222 | </sect1>
|
---|