[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">
|
---|
[a3be1210] | 9 | <!ENTITY parted-md5sum "93d2d8f22baebc5eb65b85da05a79e4e">
|
---|
[7be8b4f] | 10 | <!ENTITY parted-size "1.8 MB">
|
---|
[a3be1210] | 11 | <!ENTITY parted-buildsize "29 MB (additional 3 MB for the tests and additional 2 MB for optional PDF and Postscript documentation)">
|
---|
[7be8b4f] | 12 | <!ENTITY parted-time "0.3 SBU (additional 3.6 SBU for the tests)">
|
---|
[2875f488] | 13 | ]>
|
---|
| 14 |
|
---|
[810a2c6] | 15 | <sect1 id="parted" xreflabel="parted-&parted-version;">
|
---|
[2875f488] | 16 | <?dbhtml filename="parted.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[810a2c6] | 19 | <title>parted-&parted-version;</title>
|
---|
[2875f488] | 20 |
|
---|
| 21 | <indexterm zone="parted">
|
---|
[810a2c6] | 22 | <primary sortas="a-parted">Parted</primary>
|
---|
[2875f488] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[810a2c6] | 26 | <title>Introduction to parted</title>
|
---|
[2875f488] | 27 |
|
---|
[49b0f95] | 28 | <para>
|
---|
| 29 | The <application>Parted</application> package is a disk partitioning and
|
---|
| 30 | partition resizing tool.
|
---|
| 31 | </para>
|
---|
[2875f488] | 32 |
|
---|
[acd88fc] | 33 | &lfs113_checked;
|
---|
[e4123d2] | 34 |
|
---|
[2875f488] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[29244b7] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&parted-download-http;"/>
|
---|
| 40 | </para>
|
---|
[2875f488] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[29244b7] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&parted-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[2875f488] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[29244b7] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &parted-md5sum;
|
---|
| 50 | </para>
|
---|
[2875f488] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[29244b7] | 53 | <para>
|
---|
| 54 | Download size: &parted-size;
|
---|
| 55 | </para>
|
---|
[2875f488] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[29244b7] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &parted-buildsize;
|
---|
| 60 | </para>
|
---|
[2875f488] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[29244b7] | 63 | <para>
|
---|
| 64 | Estimated build time: &parted-time;
|
---|
| 65 | </para>
|
---|
[2875f488] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
[cdf0106] | 68 | <!--
|
---|
[6e08e9c0] | 69 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 70 | <itemizedlist spacing="compact">
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>
|
---|
[29244b7] | 73 | Optional, to fix build without device mapper support: <ulink
|
---|
| 74 | url="&patch-root;/parted-&parted-version;-devmapper-1.patch"/>
|
---|
[6e08e9c0] | 75 | </para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
[cdf0106] | 78 | This seems to be unneeded now. The fix was merged. -->
|
---|
[2875f488] | 79 | <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
|
---|
| 80 |
|
---|
[49b0f95] | 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para role="recommended">
|
---|
[0d7900a] | 83 | <xref linkend="lvm2"/> (device-mapper, required if building
|
---|
[49b0f95] | 84 | <application>udisks</application>)
|
---|
[8bc3edae] | 85 | </para>
|
---|
[2875f488] | 86 |
|
---|
[5f1ca9f] | 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
[bc0d10e] | 89 | <xref linkend="dosfstools"/>,
|
---|
[8558044] | 90 | <xref linkend="pth"/>,
|
---|
[cdf0106] | 91 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
|
---|
| 92 | <ulink url="https://metacpan.org/pod/Digest::CRC">Digest::CRC</ulink> (for tests)
|
---|
[5f1ca9f] | 93 | </para>
|
---|
| 94 |
|
---|
[2875f488] | 95 | </sect2>
|
---|
| 96 |
|
---|
[7be8b4f] | 97 | <sect2 role="kernel" id="parted-kernel">
|
---|
| 98 | <title>Optional Kernel Configuration for Tests</title>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | About 20 % more tests are run if the following kernel module is built:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[d67d543] | 104 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 105 | href="parted-test-kernel.xml"/>
|
---|
[7be8b4f] | 106 |
|
---|
| 107 | <indexterm zone="parted parted-kernel">
|
---|
| 108 | <primary sortas="d-parted">parted</primary>
|
---|
| 109 | </indexterm>
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
[2875f488] | 112 | <sect2 role="installation">
|
---|
[810a2c6] | 113 | <title>Installation of parted</title>
|
---|
[cdf0106] | 114 | <!--
|
---|
[6e08e9c0] | 115 | <para>
|
---|
| 116 | If you want to build without device mapper support, a fix is necessary:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
|
---|
[cdf0106] | 120 | -->
|
---|
[49b0f95] | 121 | <para>
|
---|
| 122 | Install <application>Parted</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
[2875f488] | 125 |
|
---|
[cdf0106] | 126 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[9ca304a] | 127 | make &&
|
---|
| 128 |
|
---|
| 129 | make -C doc html &&
|
---|
| 130 | makeinfo --html -o doc/html doc/parted.texi &&
|
---|
| 131 | makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
|
---|
| 132 |
|
---|
[29244b7] | 133 | <para>
|
---|
| 134 | If you have <xref linkend="texlive"/> installed and wish to create
|
---|
[b9c353b] | 135 | PDF and Postscript documentation issue the following commands:
|
---|
[29244b7] | 136 | </para>
|
---|
[9ca304a] | 137 |
|
---|
[a3be1210] | 138 | <screen remap="doc"><userinput>cp build-aux/texinfo.tex doc &&
|
---|
| 139 | texi2pdf -o doc/parted.pdf doc/parted.texi &&
|
---|
| 140 | texi2dvi -o doc/parted.dvi doc/parted.texi &&
|
---|
| 141 | dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
|
---|
[2875f488] | 142 |
|
---|
[cf67717] | 143 | <para>
|
---|
[2f3e3de9] | 144 | To test the results, issue, as the <systemitem
|
---|
| 145 | class="username">root</systemitem> user:
|
---|
[cf67717] | 146 | </para>
|
---|
[2875f488] | 147 |
|
---|
[06908bf6] | 148 | <screen role="root"
|
---|
| 149 | remap="test"><userinput>make check</userinput></screen>
|
---|
[2f3e3de9] | 150 |
|
---|
[7be8b4f] | 151 | <!-- For devs: several tests are skipped with the message
|
---|
| 152 | "FS test with sector size != 512". This is expected since the same tests
|
---|
| 153 | are run with simulated sector of 1024, 2048, and 4096 bytes; only the
|
---|
| 154 | last group of tests is done with simulated sector size of 512, so that
|
---|
[a3be1210] | 155 | less tests are skipped.
|
---|
| 156 |
|
---|
| 157 | When I ran these tests over ssh, it really made my xfce environment
|
---|
| 158 | unusable. Restarting xfce fixed things, but I don't want to retry
|
---|
| 159 | right now. - Bruce
|
---|
| 160 | -->
|
---|
[2f3e3de9] | 161 | <note>
|
---|
| 162 | <para>
|
---|
| 163 | Many tests are skipped if not run as the <systemitem
|
---|
| 164 | class="username">root</systemitem> user.
|
---|
| 165 | </para>
|
---|
| 166 | </note>
|
---|
| 167 |
|
---|
[49b0f95] | 168 | <para>
|
---|
| 169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
[2875f488] | 171 |
|
---|
[9ca304a] | 172 | <screen role="root"><userinput>make install &&
|
---|
[b141cb2] | 173 | install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 174 | install -v -m644 doc/html/* \
|
---|
[b141cb2] | 175 | /usr/share/doc/parted-&parted-version;/html &&
|
---|
[9ca304a] | 176 | install -v -m644 doc/{FAT,API,parted.{txt,html}} \
|
---|
[b141cb2] | 177 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[9ca304a] | 178 |
|
---|
[29244b7] | 179 | <para>
|
---|
| 180 | Install the optional PDF and Postscript documentation by issuing the
|
---|
| 181 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 182 | user:
|
---|
| 183 | </para>
|
---|
[9ca304a] | 184 |
|
---|
[2f3e3de9] | 185 | <screen role="root"
|
---|
| 186 | remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
|
---|
[b141cb2] | 187 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
[2875f488] | 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | <sect2 role="commands">
|
---|
| 191 | <title>Command Explanations</title>
|
---|
| 192 |
|
---|
[49b0f95] | 193 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 194 | href="../../xincludes/static-libraries.xml"/>
|
---|
[2875f488] | 195 |
|
---|
[49b0f95] | 196 | <para>
|
---|
| 197 | <option>--disable-device-mapper</option>: This option disables device
|
---|
| 198 | mapper support. Add this parameter if you have not installed
|
---|
| 199 | <application>LVM2</application>.
|
---|
| 200 | </para>
|
---|
[2875f488] | 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | <sect2 role="content">
|
---|
| 204 | <title>Contents</title>
|
---|
| 205 |
|
---|
| 206 | <segmentedlist>
|
---|
| 207 | <segtitle>Installed Programs</segtitle>
|
---|
[5f1ca9f] | 208 | <segtitle>Installed Libraries</segtitle>
|
---|
| 209 | <segtitle>Installed Directories</segtitle>
|
---|
[2875f488] | 210 |
|
---|
| 211 | <seglistitem>
|
---|
[49b0f95] | 212 | <seg>
|
---|
| 213 | parted and
|
---|
| 214 | partprobe
|
---|
| 215 | </seg>
|
---|
[5f1ca9f] | 216 | <seg>
|
---|
| 217 | libparted.so and
|
---|
| 218 | libparted-fs-resize.so</seg>
|
---|
| 219 | <seg>
|
---|
| 220 | /usr/include/parted and
|
---|
| 221 | /usr/share/doc/parted-&parted-version;</seg>
|
---|
[2875f488] | 222 | </seglistitem>
|
---|
| 223 | </segmentedlist>
|
---|
| 224 |
|
---|
| 225 | <variablelist>
|
---|
| 226 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 227 | <?dbfo list-presentation="list"?>
|
---|
| 228 | <?dbhtml list-presentation="table"?>
|
---|
| 229 |
|
---|
| 230 | <varlistentry id="parted-prog">
|
---|
| 231 | <term><command>parted</command></term>
|
---|
| 232 | <listitem>
|
---|
[29244b7] | 233 | <para>
|
---|
[4c24eb0a] | 234 | is a partition manipulation program
|
---|
[29244b7] | 235 | </para>
|
---|
[2875f488] | 236 | <indexterm zone="parted parted-prog">
|
---|
| 237 | <primary sortas="b-parted">parted</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="partprobe">
|
---|
| 243 | <term><command>partprobe</command></term>
|
---|
| 244 | <listitem>
|
---|
[29244b7] | 245 | <para>
|
---|
[4c24eb0a] | 246 | informs the OS of partition table changes
|
---|
[29244b7] | 247 | </para>
|
---|
[2875f488] | 248 | <indexterm zone="parted partprobe">
|
---|
| 249 | <primary sortas="b-partprobe">partprobe</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="libparted">
|
---|
[4c24eb0a] | 255 | <term><filename class="libraryfile">libparted.so</filename></term>
|
---|
[2875f488] | 256 | <listitem>
|
---|
[49b0f95] | 257 | <para>
|
---|
[4c24eb0a] | 258 | contains the <application>Parted</application> API functions
|
---|
[49b0f95] | 259 | </para>
|
---|
[2875f488] | 260 | <indexterm zone="parted libparted">
|
---|
[49b0f95] | 261 | <primary sortas="c-libparted">libparted.so</primary>
|
---|
[2875f488] | 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 | </variablelist>
|
---|
| 266 | </sect2>
|
---|
[4c24eb0a] | 267 |
|
---|
[2875f488] | 268 | </sect1>
|
---|