source: postlfs/filesystems/parted.xml@ 9a4c8a4e

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 9a4c8a4e was a3be1210, checked in by Bruce Dubbs <bdubbs@…>, 14 months ago

Update to parted-3.6.

  • Property mode set to 100644
File size: 8.7 KB
Line 
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 "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 &lfs113_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="pth"/>,
91 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
92 <ulink url="https://metacpan.org/pod/Digest::CRC">Digest::CRC</ulink> (for tests)
93 </para>
94
95 <para condition="html" role="usernotes">
96 User Notes: <ulink url="&blfs-wiki;/parted"/>
97 </para>
98 </sect2>
99
100 <sect2 role="kernel" id="parted-kernel">
101 <title>Optional Kernel Configuration for Tests</title>
102
103 <para>
104 About 20 % more tests are run if the following kernel module is built:
105 </para>
106
107<screen><literal>Device Drivers ---&gt;
108 SCSI device support ---&gt;
109 [*] SCSI low-level drivers ---&gt; [CONFIG_SCSI_LOW_LEVEL]
110 &lt;M&gt; SCSI debugging host and device simulator [CONFIG_SCSI_DEBUG]</literal></screen>
111
112 <indexterm zone="parted parted-kernel">
113 <primary sortas="d-parted">parted</primary>
114 </indexterm>
115 </sect2>
116
117 <sect2 role="installation">
118 <title>Installation of parted</title>
119 <!--
120 <para>
121 If you want to build without device mapper support, a fix is necessary:
122 </para>
123
124<screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
125 -->
126 <para>
127 Install <application>Parted</application> by running the following
128 commands:
129 </para>
130
131<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
132make &amp;&amp;
133
134make -C doc html &amp;&amp;
135makeinfo --html -o doc/html doc/parted.texi &amp;&amp;
136makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
137
138 <para>
139 If you have <xref linkend="texlive"/> installed and wish to create
140 PDF and Postscript documentation issue the following commands:
141 </para>
142
143<screen remap="doc"><userinput>cp build-aux/texinfo.tex doc &amp;&amp;
144texi2pdf -o doc/parted.pdf doc/parted.texi &amp;&amp;
145texi2dvi -o doc/parted.dvi doc/parted.texi &amp;&amp;
146dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
147
148 <para>
149 To test the results, issue, as the <systemitem
150 class="username">root</systemitem> user:
151 </para>
152
153<screen role="root"
154 remap="test"><userinput>make check</userinput></screen>
155
156<!-- For devs: several tests are skipped with the message
157 "FS test with sector size != 512". This is expected since the same tests
158 are run with simulated sector of 1024, 2048, and 4096 bytes; only the
159 last group of tests is done with simulated sector size of 512, so that
160 less tests are skipped.
161
162 When I ran these tests over ssh, it really made my xfce environment
163 unusable. Restarting xfce fixed things, but I don't want to retry
164 right now. - Bruce
165-->
166 <note>
167 <para>
168 Many tests are skipped if not run as the <systemitem
169 class="username">root</systemitem> user.
170 </para>
171 </note>
172
173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>make install &amp;&amp;
178install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
179install -v -m644 doc/html/* \
180 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
181install -v -m644 doc/{FAT,API,parted.{txt,html}} \
182 /usr/share/doc/parted-&parted-version;</userinput></screen>
183
184 <para>
185 Install the optional PDF and Postscript documentation by issuing the
186 following command as the <systemitem class="username">root</systemitem>
187 user:
188 </para>
189
190<screen role="root"
191 remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
192 /usr/share/doc/parted-&parted-version;</userinput></screen>
193 </sect2>
194
195 <sect2 role="commands">
196 <title>Command Explanations</title>
197
198 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
199 href="../../xincludes/static-libraries.xml"/>
200
201 <para>
202 <option>--disable-device-mapper</option>: This option disables device
203 mapper support. Add this parameter if you have not installed
204 <application>LVM2</application>.
205 </para>
206 </sect2>
207
208 <sect2 role="content">
209 <title>Contents</title>
210
211 <segmentedlist>
212 <segtitle>Installed Programs</segtitle>
213 <segtitle>Installed Libraries</segtitle>
214 <segtitle>Installed Directories</segtitle>
215
216 <seglistitem>
217 <seg>
218 parted and
219 partprobe
220 </seg>
221 <seg>
222 libparted.so and
223 libparted-fs-resize.so</seg>
224 <seg>
225 /usr/include/parted and
226 /usr/share/doc/parted-&parted-version;</seg>
227 </seglistitem>
228 </segmentedlist>
229
230 <variablelist>
231 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
232 <?dbfo list-presentation="list"?>
233 <?dbhtml list-presentation="table"?>
234
235 <varlistentry id="parted-prog">
236 <term><command>parted</command></term>
237 <listitem>
238 <para>
239 is a partition manipulation program
240 </para>
241 <indexterm zone="parted parted-prog">
242 <primary sortas="b-parted">parted</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="partprobe">
248 <term><command>partprobe</command></term>
249 <listitem>
250 <para>
251 informs the OS of partition table changes
252 </para>
253 <indexterm zone="parted partprobe">
254 <primary sortas="b-partprobe">partprobe</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="libparted">
260 <term><filename class="libraryfile">libparted.so</filename></term>
261 <listitem>
262 <para>
263 contains the <application>Parted</application> API functions
264 </para>
265 <indexterm zone="parted libparted">
266 <primary sortas="c-libparted">libparted.so</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270 </variablelist>
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.