<?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;
]>

<sect1 id="ch-system-parted" role="wrap">
  <?dbhtml filename="parted.html"?>

  <title>Parted-&parted-version;</title>

  <indexterm zone="ch-system-parted">
    <primary sortas="a-Parted">Parted</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>Parted is a program for creating, copying and modifying partitions,
    and the file systems on them. Parted is especially useful on PPC machines
    in that, unlike <command>fdisk</command>, it accurately reads Macintosh
    partition maps.</para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Parted</title>

    <para os="a">Prepare Parted for compilation:</para>

<screen><userinput>./configure --prefix=/usr --disable-device-mapper</userinput></screen>

    <variablelist os="b">
      <title>The meaning of the configure options:</title>

      <varlistentry os="b1">
        <term><parameter>--disable-device-mapper</parameter></term>
        <listitem>
          <para>This disables the use of the device-mapper library, which we do
          not install in CLFS.</para>
        </listitem>
      </varlistentry>

    </variablelist>

    <para os="c">Compile the Parted package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <para os="e">Install the package:</para>

<screen os="f"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 id="contents-parted" role="content">
    <title>Contents of Parted</title>

    <segmentedlist>
      <segtitle>Installed programs</segtitle>
      <segtitle>Installed libraries</segtitle>

      <seglistitem>
        <seg>parted, partprobe</seg>
        <seg>libparted.[a,so]</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="parted">
        <term><command>parted</command></term>
        <listitem>
          <para>A program for creating, destroying, resizing, checking and
          copying partitions, and the filesystems on them. This is useful
          for creating space for new operating systems, reorganising disk
          usage, copying data between hard disks, and disk imaging.</para>
          <indexterm zone="ch-system-parted parted">
            <primary sortas="e-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="ch-system-parted partprobe">
            <primary sortas="e-partprobe">partprobe</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libparted">
        <term><filename class="libraryfile">libparted</filename></term>
        <listitem>
          <para>A library to manipulate partitions.</para>
          <indexterm zone="ch-system-parted libparted">
            <primary sortas="c-libparted">libparted</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
