source: postlfs/filesystems/parted.xml@ beebfa9d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since beebfa9d was beebfa9d, checked in by Xi Ruoyao <xry111@…>, 4 years ago

parted: remove extra empty line

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23496 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.2 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 "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 &lfs91_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&parted-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&parted-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &parted-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &parted-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &parted-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &parted-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72 <!--
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Optional, to fix build without device mapper support: <ulink
78 url="&patch-root;/parted-&parted-version;-devmapper-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
82 This seems to be unneeded now. The fix was merged. -->
83 <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="lvm2"/> (device-mapper, required if building
88 <application>udisks</application>)
89 </para>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
92 <para role="optional">
93 <xref linkend="dosfstools"/>,
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)
97 </para>
98
99 <para condition="html" role="usernotes">
100 User Notes: <ulink url="&blfs-wiki;/parted"/>
101 </para>
102 </sect2>
103
104 <sect2 role="installation">
105 <title>Installation of parted</title>
106 <!--
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>
112 -->
113 <para>
114 Install <application>Parted</application> by running the following
115 commands:
116 </para>
117
118<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
119make &amp;&amp;
120
121make -C doc html &amp;&amp;
122makeinfo --html -o doc/html doc/parted.texi &amp;&amp;
123makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
124
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>
129
130<screen remap="doc"><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &amp;&amp;
131texi2dvi -o doc/parted.dvi doc/parted.texi &amp;&amp;
132dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
133
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. And, adjust two Python
137 scripts to use Python 3, in case Python 2 is not installed:
138 </para>
139 <!-- One of these is due to a C locale, and another is a problem in LVM. -->
140<screen remap="test"><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile &amp;&amp;
141sed -i '/t6002-dm-busy.sh/d' tests/Makefile &amp;&amp;
142sed -i '1s/python/&amp;3/' tests/{gpt-header-move,msdos-overlap}</userinput></screen>
143
144 <para>
145 To test the results, issue, as the <systemitem
146 class="username">root</systemitem> user:
147 </para>
148
149<screen role="root"
150 remap="test"><userinput>make check</userinput></screen>
151
152 <note>
153 <para>
154 Many tests are skipped if not run as the <systemitem
155 class="username">root</systemitem> user.
156 </para>
157 </note>
158
159 <para>
160 Now, as the <systemitem class="username">root</systemitem> user:
161 </para>
162
163<screen role="root"><userinput>make install &amp;&amp;
164install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
165install -v -m644 doc/html/* \
166 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
167install -v -m644 doc/{FAT,API,parted.{txt,html}} \
168 /usr/share/doc/parted-&parted-version;</userinput></screen>
169
170 <para>
171 Install the optional PDF and Postscript documentation by issuing the
172 following command as the <systemitem class="username">root</systemitem>
173 user:
174 </para>
175
176<screen role="root"
177 remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
178 /usr/share/doc/parted-&parted-version;</userinput></screen>
179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
184 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
185 href="../../xincludes/static-libraries.xml"/>
186
187 <para>
188 <option>--disable-device-mapper</option>: This option disables device
189 mapper support. Add this parameter if you have not installed
190 <application>LVM2</application>.
191 </para>
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>
204 parted and
205 partprobe
206 </seg>
207 <seg>
208 libparted.so and
209 libparted-fs-resize.so</seg>
210 <seg>
211 /usr/include/parted and
212 /usr/share/doc/parted-&parted-version;</seg>
213 </seglistitem>
214 </segmentedlist>
215
216 <variablelist>
217 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
218 <?dbfo list-presentation="list"?>
219 <?dbhtml list-presentation="table"?>
220
221 <varlistentry id="parted-prog">
222 <term><command>parted</command></term>
223 <listitem>
224 <para>
225 is a partition manipulation program.
226 </para>
227 <indexterm zone="parted parted-prog">
228 <primary sortas="b-parted">parted</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="partprobe">
234 <term><command>partprobe</command></term>
235 <listitem>
236 <para>
237 informs the OS of partition table changes.
238 </para>
239 <indexterm zone="parted partprobe">
240 <primary sortas="b-partprobe">partprobe</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="libparted">
246 <term><filename class='libraryfile'>libparted.so</filename></term>
247 <listitem>
248 <para>
249 contains the <application>Parted</application> API functions.
250 </para>
251 <indexterm zone="parted libparted">
252 <primary sortas="c-libparted">libparted.so</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256 </variablelist>
257 </sect2>
258</sect1>
Note: See TracBrowser for help on using the repository browser.