2010-04-24 21:12:45 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY parted-download-http "&gnu-http;/parted/parted-&parted-version;.tar.xz">
|
|
|
|
<!ENTITY parted-download-ftp "&gnu-ftp;/parted/parted-&parted-version;.tar.xz">
|
2014-07-30 08:36:21 +08:00
|
|
|
<!ENTITY parted-md5sum "0247b6a7b314f8edeb618159fa95f9cb">
|
|
|
|
<!ENTITY parted-size "1.6 MB">
|
|
|
|
<!ENTITY parted-buildsize "27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)">
|
|
|
|
<!ENTITY parted-time "0.4 SBU (additional 0.6 SBU for the tests)">
|
2010-04-24 21:12:45 +08:00
|
|
|
]>
|
|
|
|
|
2013-01-02 03:02:00 +08:00
|
|
|
<sect1 id="parted" xreflabel="parted-&parted-version;">
|
2010-04-24 21:12:45 +08:00
|
|
|
<?dbhtml filename="parted.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2013-01-02 03:02:00 +08:00
|
|
|
<title>parted-&parted-version;</title>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
|
|
|
<indexterm zone="parted">
|
2013-01-02 03:02:00 +08:00
|
|
|
<primary sortas="a-parted">Parted</primary>
|
2010-04-24 21:12:45 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2013-01-02 03:02:00 +08:00
|
|
|
<title>Introduction to parted</title>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<para>
|
|
|
|
The <application>Parted</application> package is a disk partitioning and
|
|
|
|
partition resizing tool.
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2019-02-17 11:14:14 +08:00
|
|
|
&lfs84_checked;
|
2011-11-09 03:45:29 +08:00
|
|
|
|
2010-04-24 21:12:45 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&parted-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&parted-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &parted-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &parted-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &parted-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &parted-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2014-08-17 07:39:09 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Optional, to fix build without device mapper support:
|
|
|
|
<ulink url="&patch-root;/parted-&parted-version;-devmapper-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2010-04-24 21:12:45 +08:00
|
|
|
<bridgehead renderas="sect3">Parted Dependencies</bridgehead>
|
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2013-02-12 02:51:17 +08:00
|
|
|
<xref linkend="lvm2"/> (device-mapper, required if building
|
2012-05-05 23:59:49 +08:00
|
|
|
<application>udisks</application>)
|
2012-01-21 03:25:30 +08:00
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2014-07-30 08:36:21 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2016-12-17 01:01:15 +08:00
|
|
|
<xref linkend="pth"/> and
|
2015-01-12 07:11:07 +08:00
|
|
|
<xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
2014-07-30 08:36:21 +08:00
|
|
|
</para>
|
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/parted"/>
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2013-01-02 03:02:00 +08:00
|
|
|
<title>Installation of parted</title>
|
2015-11-13 22:24:57 +08:00
|
|
|
|
2014-08-17 07:39:09 +08:00
|
|
|
<para>
|
|
|
|
If you want to build without device mapper support, a fix is necessary:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../parted-&parted-version;-devmapper-1.patch</userinput></screen>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Parted</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2018-08-17 08:08:56 +08:00
|
|
|
<screen><userinput>sed -i '/utsname.h/a#include <sys/sysmacros.h>' libparted/arch/linux.c &&
|
|
|
|
|
|
|
|
./configure --prefix=/usr --disable-static &&
|
2013-02-18 11:35:44 +08:00
|
|
|
make &&
|
|
|
|
|
|
|
|
make -C doc html &&
|
|
|
|
makeinfo --html -o doc/html doc/parted.texi &&
|
|
|
|
makeinfo --plaintext -o doc/parted.txt doc/parted.texi</userinput></screen>
|
|
|
|
|
|
|
|
<para>If you have <xref linkend="texlive"/> installed and wish to create
|
|
|
|
PDF and Postcript documentation issue the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>texi2pdf -o doc/parted.pdf doc/parted.texi &&
|
|
|
|
texi2dvi -o doc/parted.dvi doc/parted.texi &&
|
|
|
|
dvips -o doc/parted.ps doc/parted.dvi</userinput></screen>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2014-08-01 03:02:45 +08:00
|
|
|
<para>If you wish to run the test suite, first remove a test that normally
|
2018-01-10 18:44:47 +08:00
|
|
|
fails in BLFS (because it needs a locale C.UTF-8):</para>
|
2014-08-01 03:02:45 +08:00
|
|
|
|
|
|
|
<screen><userinput>sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile</userinput></screen>
|
|
|
|
|
2014-02-23 10:30:29 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>. Note that
|
|
|
|
many tests are skipped if not run as the <systemitem
|
2014-08-01 03:02:45 +08:00
|
|
|
class="username">root</systemitem> user.
|
2014-02-23 10:30:29 +08:00
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2013-02-18 11:35:44 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2013-03-22 09:36:45 +08:00
|
|
|
install -v -m755 -d /usr/share/doc/parted-&parted-version;/html &&
|
2013-02-18 11:35:44 +08:00
|
|
|
install -v -m644 doc/html/* \
|
2013-03-22 09:36:45 +08:00
|
|
|
/usr/share/doc/parted-&parted-version;/html &&
|
2013-02-18 11:35:44 +08:00
|
|
|
install -v -m644 doc/{FAT,API,parted.{txt,html}} \
|
2013-03-22 09:36:45 +08:00
|
|
|
/usr/share/doc/parted-&parted-version;</userinput></screen>
|
2013-02-18 11:35:44 +08:00
|
|
|
|
|
|
|
<para>Install the optional PDF and Postscript documentation by issuing
|
|
|
|
the following command as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
|
2013-03-22 09:36:45 +08:00
|
|
|
/usr/share/doc/parted-&parted-version;</userinput></screen>
|
2010-04-24 21:12:45 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2018-08-17 08:08:56 +08:00
|
|
|
<para>
|
|
|
|
<command>sed ...</command>: Add a header to allow building with glibc-2.28
|
|
|
|
or later.
|
|
|
|
</para>
|
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<para>
|
|
|
|
<option>--disable-device-mapper</option>: This option disables device
|
|
|
|
mapper support. Add this parameter if you have not installed
|
|
|
|
<application>LVM2</application>.
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2014-07-30 08:36:21 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2010-04-24 21:12:45 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-05-05 23:59:49 +08:00
|
|
|
<seg>
|
|
|
|
parted and
|
|
|
|
partprobe
|
|
|
|
</seg>
|
2014-07-30 08:36:21 +08:00
|
|
|
<seg>
|
|
|
|
libparted.so and
|
|
|
|
libparted-fs-resize.so</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/parted and
|
|
|
|
/usr/share/doc/parted-&parted-version;</seg>
|
2010-04-24 21:12:45 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="parted-prog">
|
|
|
|
<term><command>parted</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a partition manipulation program.</para>
|
|
|
|
<indexterm zone="parted parted-prog">
|
|
|
|
<primary sortas="b-parted">parted</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="partprobe">
|
|
|
|
<term><command>partprobe</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>informs the OS of partition table changes.</para>
|
|
|
|
<indexterm zone="parted partprobe">
|
|
|
|
<primary sortas="b-partprobe">partprobe</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libparted">
|
2012-05-05 23:59:49 +08:00
|
|
|
<term><filename class='libraryfile'>libparted.so</filename></term>
|
2010-04-24 21:12:45 +08:00
|
|
|
<listitem>
|
2012-05-05 23:59:49 +08:00
|
|
|
<para>
|
|
|
|
contains the <application>Parted</application> API functions.
|
|
|
|
</para>
|
2010-04-24 21:12:45 +08:00
|
|
|
<indexterm zone="parted libparted">
|
2012-05-05 23:59:49 +08:00
|
|
|
<primary sortas="c-libparted">libparted.so</primary>
|
2010-04-24 21:12:45 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|