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