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