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