source: postlfs/filesystems/parted.xml@ 29244b7

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 29244b7 was 29244b7, checked in by Pierre Labastie <pieere@…>, 4 years ago

format filesystems chapter

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

  • Property mode set to 100644
File size: 8.1 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:
137 </para>
138 <!-- One of these is due to a C locale, and another is a problem in LVM. -->
139<screen remap="test"><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile &amp;&amp;
140sed -i '/t6002-dm-busy.sh/d' tests/Makefile</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 <note>
151 <para>
152 Many tests are skipped if not run as the <systemitem
153 class="username">root</systemitem> user.
154 </para>
155 </note>
156
157 <para>
158 Now, as the <systemitem class="username">root</systemitem> user:
159 </para>
160
161<screen role="root"><userinput>make install &amp;&amp;
162install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
163install -v -m644 doc/html/* \
164 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
165install -v -m644 doc/{FAT,API,parted.{txt,html}} \
166 /usr/share/doc/parted-&parted-version;</userinput></screen>
167
168 <para>
169 Install the optional PDF and Postscript documentation by issuing the
170 following command as the <systemitem class="username">root</systemitem>
171 user:
172 </para>
173
174<screen role="root"
175 remap="doc"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
176 /usr/share/doc/parted-&parted-version;</userinput></screen>
177 </sect2>
178
179 <sect2 role="commands">
180 <title>Command Explanations</title>
181
182 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
183 href="../../xincludes/static-libraries.xml"/>
184
185 <para>
186 <option>--disable-device-mapper</option>: This option disables device
187 mapper support. Add this parameter if you have not installed
188 <application>LVM2</application>.
189 </para>
190 </sect2>
191
192 <sect2 role="content">
193 <title>Contents</title>
194
195 <segmentedlist>
196 <segtitle>Installed Programs</segtitle>
197 <segtitle>Installed Libraries</segtitle>
198 <segtitle>Installed Directories</segtitle>
199
200 <seglistitem>
201 <seg>
202 parted and
203 partprobe
204 </seg>
205 <seg>
206 libparted.so and
207 libparted-fs-resize.so</seg>
208 <seg>
209 /usr/include/parted and
210 /usr/share/doc/parted-&parted-version;</seg>
211 </seglistitem>
212 </segmentedlist>
213
214 <variablelist>
215 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
216 <?dbfo list-presentation="list"?>
217 <?dbhtml list-presentation="table"?>
218
219 <varlistentry id="parted-prog">
220 <term><command>parted</command></term>
221 <listitem>
222 <para>
223 is a partition manipulation program.
224 </para>
225 <indexterm zone="parted parted-prog">
226 <primary sortas="b-parted">parted</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="partprobe">
232 <term><command>partprobe</command></term>
233 <listitem>
234 <para>
235 informs the OS of partition table changes.
236 </para>
237 <indexterm zone="parted partprobe">
238 <primary sortas="b-partprobe">partprobe</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="libparted">
244 <term><filename class='libraryfile'>libparted.so</filename></term>
245 <listitem>
246 <para>
247 contains the <application>Parted</application> API functions.
248 </para>
249 <indexterm zone="parted libparted">
250 <primary sortas="c-libparted">libparted.so</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254 </variablelist>
255 </sect2>
256</sect1>
Note: See TracBrowser for help on using the repository browser.