source: postlfs/filesystems/parted.xml@ 6397333

basic
Last change on this file since 6397333 was 6397333, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Convert internal like to external links for BLFS packages not in
the Basic book.

Reorder some chapters.

Merge System V and systemd sections so both are always displayed
with proper attribution for system type.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/basic@20524 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.4 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 "0247b6a7b314f8edeb618159fa95f9cb">
10 <!ENTITY parted-size "1.6 MB">
11 <!ENTITY parted-buildsize "27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)">
12 <!ENTITY parted-time "0.4 SBU (additional 0.6 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 &lfs83_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
71 <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Optional</bridgehead>
74 <para role="optional">
75 <ulink url="&blfs-book;postlfs/lvm2.html">LVM2</ulink>
76 (needed for device-mapper, required if building
77 <application>udisks</application>),
78 <ulink url="&blfs-book;general/pth.html">pth</ulink>, and
79 <ulink url="&blfs-book;pst/texlive.html">texlive</ulink>
80 (or <ulink url="&blfs-book;pst/tl-installer.html">tl-installer</ulink>
81 </para>
82
83 <para condition="html" role="usernotes">
84 User Notes: <ulink url="&blfs-wiki;/parted"/>
85 </para>
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of parted</title>
90
91 <para>
92 If you want to build without device mapper support, a fix is necessary:
93 </para>
94
95<screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
96
97 <para>
98 Install <application>Parted</application> by running the following
99 commands:
100 </para>
101
102<screen><userinput>sed -i '/utsname.h/a#include &lt;sys/sysmacros.h&gt;' libparted/arch/linux.c &amp;&amp;
103
104./configure --prefix=/usr --disable-static &amp;&amp;
105make &amp;&amp;
106
107make -C doc html &amp;&amp;
108makeinfo --html -o doc/html doc/parted.texi &amp;&amp;
109makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
110
111<screen><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &amp;&amp;
112texi2dvi -o doc/parted.dvi doc/parted.texi &amp;&amp;
113dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
114
115 <para>If you wish to run the test suite, first remove a test that normally
116 fails in BLFS (because it needs a locale C.UTF-8):</para>
117
118<screen><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile</userinput></screen>
119
120 <para>
121 To test the results, issue: <command>make check</command>. Note that
122 many tests are skipped if not run as the <systemitem
123 class="username">root</systemitem> user.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>make install &amp;&amp;
131install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
132install -v -m644 doc/html/* \
133 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
134install -v -m644 doc/{FAT,API,parted.{txt,html}} \
135 /usr/share/doc/parted-&parted-version;</userinput></screen>
136
137 <para>Install the optional PDF and Postscript documentation by issuing
138 the following command as the <systemitem class="username">root</systemitem>
139 user:</para>
140
141<screen role="root"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
142 /usr/share/doc/parted-&parted-version;</userinput></screen>
143 </sect2>
144
145 <sect2 role="commands">
146 <title>Command Explanations</title>
147
148 <para>
149 <command>sed ...</command>: Add a header to allow building with glibc-2.28
150 or later.
151 </para>
152
153 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
154 href="../../xincludes/static-libraries.xml"/>
155
156 <para>
157 <option>--disable-device-mapper</option>: This option disables device
158 mapper support. Add this parameter if you have not installed
159 <application>LVM2</application>.
160 </para>
161 </sect2>
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Libraries</segtitle>
169 <segtitle>Installed Directories</segtitle>
170
171 <seglistitem>
172 <seg>
173 parted and
174 partprobe
175 </seg>
176 <seg>
177 libparted.so and
178 libparted-fs-resize.so</seg>
179 <seg>
180 /usr/include/parted and
181 /usr/share/doc/parted-&parted-version;</seg>
182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="parted-prog">
191 <term><command>parted</command></term>
192 <listitem>
193 <para>is a partition manipulation program.</para>
194 <indexterm zone="parted parted-prog">
195 <primary sortas="b-parted">parted</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="partprobe">
201 <term><command>partprobe</command></term>
202 <listitem>
203 <para>informs the OS of partition table changes.</para>
204 <indexterm zone="parted partprobe">
205 <primary sortas="b-partprobe">partprobe</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="libparted">
211 <term><filename class='libraryfile'>libparted.so</filename></term>
212 <listitem>
213 <para>
214 contains the <application>Parted</application> API functions.
215 </para>
216 <indexterm zone="parted libparted">
217 <primary sortas="c-libparted">libparted.so</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221 </variablelist>
222 </sect2>
223</sect1>
Note: See TracBrowser for help on using the repository browser.