[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 |
|
---|
[f33b456] | 37 | &lfs91_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 |
|
---|
[29244b7] | 134 | <para>
|
---|
| 135 | If you wish to run the test suite, first remove a couple of tests
|
---|
| 136 | that are known to fail in a BLFS environment:
|
---|
| 137 | </para>
|
---|
[cdf0106] | 138 | <!-- One of these is due to a C locale, and another is a problem in LVM. -->
|
---|
| 139 | <screen remap="test"><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile &&
|
---|
| 140 | sed -i '/t6002-dm-busy.sh/d' tests/Makefile</userinput></screen>
|
---|
[d81eda8] | 141 |
|
---|
[cf67717] | 142 | <para>
|
---|
[2f3e3de9] | 143 | To test the results, issue, as the <systemitem
|
---|
| 144 | class="username">root</systemitem> user:
|
---|
[cf67717] | 145 | </para>
|
---|
[2875f488] | 146 |
|
---|
[06908bf6] | 147 | <screen role="root"
|
---|
| 148 | remap="test"><userinput>make check</userinput></screen>
|
---|
[2f3e3de9] | 149 |
|
---|
| 150 | <note>
|
---|
| 151 | <para>
|
---|
| 152 | Many tests are skipped if not run as the <systemitem
|
---|
| 153 | class="username">root</systemitem> user.
|
---|
| 154 | </para>
|
---|
| 155 | </note>
|
---|
| 156 |
|
---|
[49b0f95] | 157 | <para>
|
---|
| 158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 159 | </para>
|
---|
[2875f488] | 160 |
|
---|
[9ca304a] | 161 | <screen role="root"><userinput>make install &&
|
---|
[b141cb2] | 162 | install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 163 | install -v -m644 doc/html/* \
|
---|
[b141cb2] | 164 | /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 165 | install -v -m644 doc/{FAT,API,parted.{txt,html}} \
|
---|
[b141cb2] | 166 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[9ca304a] | 167 |
|
---|
[29244b7] | 168 | <para>
|
---|
| 169 | Install the optional PDF and Postscript documentation by issuing the
|
---|
| 170 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 171 | user:
|
---|
| 172 | </para>
|
---|
[9ca304a] | 173 |
|
---|
[2f3e3de9] | 174 | <screen role="root"
|
---|
| 175 | remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
|
---|
[b141cb2] | 176 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[2875f488] | 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="commands">
|
---|
| 180 | <title>Command Explanations</title>
|
---|
| 181 |
|
---|
[49b0f95] | 182 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 183 | href="../../xincludes/static-libraries.xml"/>
|
---|
[2875f488] | 184 |
|
---|
[49b0f95] | 185 | <para>
|
---|
| 186 | <option>--disable-device-mapper</option>: This option disables device
|
---|
| 187 | mapper support. Add this parameter if you have not installed
|
---|
| 188 | <application>LVM2</application>.
|
---|
| 189 | </para>
|
---|
[2875f488] | 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
[5f1ca9f] | 197 | <segtitle>Installed Libraries</segtitle>
|
---|
| 198 | <segtitle>Installed Directories</segtitle>
|
---|
[2875f488] | 199 |
|
---|
| 200 | <seglistitem>
|
---|
[49b0f95] | 201 | <seg>
|
---|
| 202 | parted and
|
---|
| 203 | partprobe
|
---|
| 204 | </seg>
|
---|
[5f1ca9f] | 205 | <seg>
|
---|
| 206 | libparted.so and
|
---|
| 207 | libparted-fs-resize.so</seg>
|
---|
| 208 | <seg>
|
---|
| 209 | /usr/include/parted and
|
---|
| 210 | /usr/share/doc/parted-&parted-version;</seg>
|
---|
[2875f488] | 211 | </seglistitem>
|
---|
| 212 | </segmentedlist>
|
---|
| 213 |
|
---|
| 214 | <variablelist>
|
---|
| 215 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 216 | <?dbfo list-presentation="list"?>
|
---|
| 217 | <?dbhtml list-presentation="table"?>
|
---|
| 218 |
|
---|
| 219 | <varlistentry id="parted-prog">
|
---|
| 220 | <term><command>parted</command></term>
|
---|
| 221 | <listitem>
|
---|
[29244b7] | 222 | <para>
|
---|
| 223 | is a partition manipulation program.
|
---|
| 224 | </para>
|
---|
[2875f488] | 225 | <indexterm zone="parted parted-prog">
|
---|
| 226 | <primary sortas="b-parted">parted</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="partprobe">
|
---|
| 232 | <term><command>partprobe</command></term>
|
---|
| 233 | <listitem>
|
---|
[29244b7] | 234 | <para>
|
---|
| 235 | informs the OS of partition table changes.
|
---|
| 236 | </para>
|
---|
[2875f488] | 237 | <indexterm zone="parted partprobe">
|
---|
| 238 | <primary sortas="b-partprobe">partprobe</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="libparted">
|
---|
[49b0f95] | 244 | <term><filename class='libraryfile'>libparted.so</filename></term>
|
---|
[2875f488] | 245 | <listitem>
|
---|
[49b0f95] | 246 | <para>
|
---|
| 247 | contains the <application>Parted</application> API functions.
|
---|
| 248 | </para>
|
---|
[2875f488] | 249 | <indexterm zone="parted libparted">
|
---|
[49b0f95] | 250 | <primary sortas="c-libparted">libparted.so</primary>
|
---|
[2875f488] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 | </variablelist>
|
---|
| 255 | </sect2>
|
---|
| 256 | </sect1>
|
---|