source: postlfs/filesystems/parted.xml@ 0dc5c2e1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn 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 0dc5c2e1 was 9e629a4, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to libblockdev-2.19.
Update to libbytesize-1.4.

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

  • Property mode set to 100644
File size: 7.5 KB
RevLine 
[2875f488]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
[8dfc5c3]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">
[5f1ca9f]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)">
[2875f488]13]>
14
[810a2c6]15<sect1 id="parted" xreflabel="parted-&parted-version;">
[2875f488]16 <?dbhtml filename="parted.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[810a2c6]23 <title>parted-&parted-version;</title>
[2875f488]24
25 <indexterm zone="parted">
[810a2c6]26 <primary sortas="a-parted">Parted</primary>
[2875f488]27 </indexterm>
28
29 <sect2 role="package">
[810a2c6]30 <title>Introduction to parted</title>
[2875f488]31
[49b0f95]32 <para>
33 The <application>Parted</application> package is a disk partitioning and
34 partition resizing tool.
35 </para>
[2875f488]36
[9e629a4]37 &lfs83_checked;
[e4123d2]38
[2875f488]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
[6e08e9c0]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
[2875f488]71 <bridgehead renderas="sect3">Parted Dependencies</bridgehead>
72
[49b0f95]73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended">
[0d7900a]75 <xref linkend="lvm2"/> (device-mapper, required if building
[49b0f95]76 <application>udisks</application>)
[8bc3edae]77 </para>
[2875f488]78
[5f1ca9f]79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
[9e06b5c5]81 <xref linkend="pth"/> and
[f720ace1]82 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[5f1ca9f]83 </para>
84
[49b0f95]85 <para condition="html" role="usernotes">
86 User Notes: <ulink url="&blfs-wiki;/parted"/>
87 </para>
[2875f488]88 </sect2>
89
90 <sect2 role="installation">
[810a2c6]91 <title>Installation of parted</title>
[f3429309]92
[6e08e9c0]93 <para>
94 If you want to build without device mapper support, a fix is necessary:
95 </para>
96
97<screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
[2875f488]98
[49b0f95]99 <para>
100 Install <application>Parted</application> by running the following
101 commands:
102 </para>
[2875f488]103
[9e629a4]104<screen><userinput>sed -i '/utsname.h/a#include &lt;sys/sysmacros.h&gt;' libparted/arch/linux.c &amp;&amp;
105
106./configure --prefix=/usr --disable-static &amp;&amp;
[9ca304a]107make &amp;&amp;
108
109make -C doc html &amp;&amp;
110makeinfo --html -o doc/html doc/parted.texi &amp;&amp;
111makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
112
113 <para>If you have <xref linkend="texlive"/> installed and wish to create
114 PDF and Postcript documentation issue the following commands:</para>
115
116<screen><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &amp;&amp;
117texi2dvi -o doc/parted.dvi doc/parted.texi &amp;&amp;
118dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
[2875f488]119
[d81eda8]120 <para>If you wish to run the test suite, first remove a test that normally
[af8a78d]121 fails in BLFS (because it needs a locale C.UTF-8):</para>
[d81eda8]122
123<screen><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile</userinput></screen>
124
[cf67717]125 <para>
126 To test the results, issue: <command>make check</command>. Note that
127 many tests are skipped if not run as the <systemitem
[d81eda8]128 class="username">root</systemitem> user.
[cf67717]129 </para>
[2875f488]130
[49b0f95]131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
[2875f488]134
[9ca304a]135<screen role="root"><userinput>make install &amp;&amp;
[b141cb2]136install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &amp;&amp;
[9ca304a]137install -v -m644 doc/html/* \
[b141cb2]138 /usr/share/doc/parted-&parted-version;/html &amp;&amp;
[9ca304a]139install -v -m644 doc/{FAT,API,parted.{txt,html}} \
[b141cb2]140 /usr/share/doc/parted-&parted-version;</userinput></screen>
[9ca304a]141
142 <para>Install the optional PDF and Postscript documentation by issuing
143 the following command as the <systemitem class="username">root</systemitem>
144 user:</para>
145
146<screen role="root"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
[b141cb2]147 /usr/share/doc/parted-&parted-version;</userinput></screen>
[2875f488]148 </sect2>
149
150 <sect2 role="commands">
151 <title>Command Explanations</title>
152
[9e629a4]153 <para>
154 <command>sed ...</command>: Add a header to allow building with glibc-2.28
155 or later.
156 </para>
157
[49b0f95]158 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
159 href="../../xincludes/static-libraries.xml"/>
[2875f488]160
[49b0f95]161 <para>
162 <option>--disable-device-mapper</option>: This option disables device
163 mapper support. Add this parameter if you have not installed
164 <application>LVM2</application>.
165 </para>
[2875f488]166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
[5f1ca9f]173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
[2875f488]175
176 <seglistitem>
[49b0f95]177 <seg>
178 parted and
179 partprobe
180 </seg>
[5f1ca9f]181 <seg>
182 libparted.so and
183 libparted-fs-resize.so</seg>
184 <seg>
185 /usr/include/parted and
186 /usr/share/doc/parted-&parted-version;</seg>
[2875f488]187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="parted-prog">
196 <term><command>parted</command></term>
197 <listitem>
198 <para>is a partition manipulation program.</para>
199 <indexterm zone="parted parted-prog">
200 <primary sortas="b-parted">parted</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="partprobe">
206 <term><command>partprobe</command></term>
207 <listitem>
208 <para>informs the OS of partition table changes.</para>
209 <indexterm zone="parted partprobe">
210 <primary sortas="b-partprobe">partprobe</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="libparted">
[49b0f95]216 <term><filename class='libraryfile'>libparted.so</filename></term>
[2875f488]217 <listitem>
[49b0f95]218 <para>
219 contains the <application>Parted</application> API functions.
220 </para>
[2875f488]221 <indexterm zone="parted libparted">
[49b0f95]222 <primary sortas="c-libparted">libparted.so</primary>
[2875f488]223 </indexterm>
224 </listitem>
225 </varlistentry>
226 </variablelist>
227 </sect2>
228</sect1>
Note: See TracBrowser for help on using the repository browser.