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 |
|
---|
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">
|
---|
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)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="parted" xreflabel="parted-&parted-version;">
|
---|
16 | <?dbhtml filename="parted.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>parted-&parted-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="parted">
|
---|
26 | <primary sortas="a-parted">Parted</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to parted</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>Parted</application> package is a disk partitioning and
|
---|
34 | partition resizing tool.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs90_checked;
|
---|
38 |
|
---|
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>
|
---|
60 | <!--
|
---|
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>
|
---|
70 | This seems to be unneeded now. The fix was merged. -->
|
---|
71 | <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
74 | <para role="recommended">
|
---|
75 | <xref linkend="lvm2"/> (device-mapper, required if building
|
---|
76 | <application>udisks</application>)
|
---|
77 | </para>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
80 | <para role="optional">
|
---|
81 | <xref linkend="pth"/>,
|
---|
82 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
|
---|
83 | <ulink url="https://metacpan.org/pod/Digest::CRC">Digest::CRC</ulink> (for tests)
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <para condition="html" role="usernotes">
|
---|
87 | User Notes: <ulink url="&blfs-wiki;/parted"/>
|
---|
88 | </para>
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of parted</title>
|
---|
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>
|
---|
99 | -->
|
---|
100 | <para>
|
---|
101 | Install <application>Parted</application> by running the following
|
---|
102 | commands:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
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 remap="doc"><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>
|
---|
118 |
|
---|
119 | <para>If you wish to run the test suite, first remove a couple of tests
|
---|
120 | that are known to fail in a BLFS environment:</para>
|
---|
121 | <!-- One of these is due to a C locale, and another is a problem in LVM. -->
|
---|
122 | <screen remap="test"><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile &&
|
---|
123 | sed -i '/t6002-dm-busy.sh/d' tests/Makefile</userinput></screen>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | To test the results, issue, as the <systemitem
|
---|
127 | class="username">root</systemitem> user:
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <screen role="root"
|
---|
131 | remap="test"><userinput>make check</userinput></screen>
|
---|
132 |
|
---|
133 | <note>
|
---|
134 | <para>
|
---|
135 | Many tests are skipped if not run as the <systemitem
|
---|
136 | class="username">root</systemitem> user.
|
---|
137 | </para>
|
---|
138 | </note>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen role="root"><userinput>make install &&
|
---|
145 | install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &&
|
---|
146 | install -v -m644 doc/html/* \
|
---|
147 | /usr/share/doc/parted-&parted-version;/html &&
|
---|
148 | install -v -m644 doc/{FAT,API,parted.{txt,html}} \
|
---|
149 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
150 |
|
---|
151 | <para>Install the optional PDF and Postscript documentation by issuing
|
---|
152 | the following command as the <systemitem class="username">root</systemitem>
|
---|
153 | user:</para>
|
---|
154 |
|
---|
155 | <screen role="root"
|
---|
156 | remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
|
---|
157 | /usr/share/doc/parted-&parted-version;</userinput></screen>
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | <sect2 role="commands">
|
---|
161 | <title>Command Explanations</title>
|
---|
162 |
|
---|
163 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
164 | href="../../xincludes/static-libraries.xml"/>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | <option>--disable-device-mapper</option>: This option disables device
|
---|
168 | mapper support. Add this parameter if you have not installed
|
---|
169 | <application>LVM2</application>.
|
---|
170 | </para>
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="content">
|
---|
174 | <title>Contents</title>
|
---|
175 |
|
---|
176 | <segmentedlist>
|
---|
177 | <segtitle>Installed Programs</segtitle>
|
---|
178 | <segtitle>Installed Libraries</segtitle>
|
---|
179 | <segtitle>Installed Directories</segtitle>
|
---|
180 |
|
---|
181 | <seglistitem>
|
---|
182 | <seg>
|
---|
183 | parted and
|
---|
184 | partprobe
|
---|
185 | </seg>
|
---|
186 | <seg>
|
---|
187 | libparted.so and
|
---|
188 | libparted-fs-resize.so</seg>
|
---|
189 | <seg>
|
---|
190 | /usr/include/parted and
|
---|
191 | /usr/share/doc/parted-&parted-version;</seg>
|
---|
192 | </seglistitem>
|
---|
193 | </segmentedlist>
|
---|
194 |
|
---|
195 | <variablelist>
|
---|
196 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
197 | <?dbfo list-presentation="list"?>
|
---|
198 | <?dbhtml list-presentation="table"?>
|
---|
199 |
|
---|
200 | <varlistentry id="parted-prog">
|
---|
201 | <term><command>parted</command></term>
|
---|
202 | <listitem>
|
---|
203 | <para>is a partition manipulation program.</para>
|
---|
204 | <indexterm zone="parted parted-prog">
|
---|
205 | <primary sortas="b-parted">parted</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="partprobe">
|
---|
211 | <term><command>partprobe</command></term>
|
---|
212 | <listitem>
|
---|
213 | <para>informs the OS of partition table changes.</para>
|
---|
214 | <indexterm zone="parted partprobe">
|
---|
215 | <primary sortas="b-partprobe">partprobe</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="libparted">
|
---|
221 | <term><filename class='libraryfile'>libparted.so</filename></term>
|
---|
222 | <listitem>
|
---|
223 | <para>
|
---|
224 | contains the <application>Parted</application> API functions.
|
---|
225 | </para>
|
---|
226 | <indexterm zone="parted libparted">
|
---|
227 | <primary sortas="c-libparted">libparted.so</primary>
|
---|
228 | </indexterm>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 | </variablelist>
|
---|
232 | </sect2>
|
---|
233 | </sect1>
|
---|