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;
|
|
|
|
|
2012-05-05 23:59:49 +08:00
|
|
|
<!ENTITY parted-download-http
|
|
|
|
"http://ftp.gnu.org/gnu/parted/parted-&parted-version;.tar.xz">
|
2011-05-08 20:25:47 +08:00
|
|
|
<!ENTITY parted-download-ftp " ">
|
2012-05-05 23:59:49 +08:00
|
|
|
<!ENTITY parted-md5sum "5d89d64d94bcfefa9ce8f59f4b81bdcb">
|
|
|
|
<!ENTITY parted-size "1.5 MB">
|
|
|
|
<!ENTITY parted-buildsize "38 MB">
|
|
|
|
<!ENTITY parted-time "0.5 SBU">
|
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
|
|
|
|
2014-02-23 10:30:29 +08:00
|
|
|
&lfs75_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>
|
|
|
|
|
|
|
|
<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
|
|
|
|
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>
|
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
|
|
|
|
2014-03-20 06:51:57 +08:00
|
|
|
<screen><userinput>sed -i parted/ui.c \
|
|
|
|
-e "s:(CPPFunction\*) complete:(rl_completion_func_t\*) complete:" &&
|
|
|
|
./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-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
|
|
|
|
class="username">root</systemitem> user.
|
|
|
|
</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>
|
|
|
|
|
2014-03-20 06:51:57 +08:00
|
|
|
<para>
|
|
|
|
<command>sed -i parted/ui.c ...</command>: This <command>sed</command>
|
|
|
|
fixes building with <application>Readline</application> 6.x (x>2).
|
|
|
|
</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>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-05-05 23:59:49 +08:00
|
|
|
<seg>
|
|
|
|
parted and
|
|
|
|
partprobe
|
|
|
|
</seg>
|
|
|
|
<seg>libparted.so</seg>
|
2010-04-24 21:12:45 +08:00
|
|
|
<seg>/usr/include/parted</seg>
|
|
|
|
</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>
|