Introduction to parted

The Parted package is a disk partitioning and partition resizing tool.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

  • Download (HTTP):

  • Download MD5 sum: 0247b6a7b314f8edeb618159fa95f9cb

  • Download size: 1.6 MB

  • Estimated disk space required: 27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)

  • Estimated build time: 0.4 SBU (additional 0.6 SBU for the tests)

Parted Dependencies




User Notes:

Installation of parted

Install Parted by running the following commands:

./configure --prefix=/usr --disable-static &&
make &&

make -C doc html                                       &&
makeinfo --html      -o doc/html       doc/parted.texi &&
makeinfo --plaintext -o doc/parted.txt doc/parted.texi

If you have texlive-20140525 installed and wish to create PDF and Postcript documentation issue the following commands:

texi2pdf             -o doc/parted.pdf doc/parted.texi &&
texi2dvi             -o doc/parted.dvi doc/parted.texi &&
dvips                -o doc/  doc/parted.dvi

To test the results, issue: make check. Note that many tests are skipped if not run as the root user. If test fails, it can be fixed, in some systems with LANG=XY.UTF-8 set, using:

sed -i "s/C.UTF-8/$LANG/" tests/

Now, as the root user:

make install &&
install -v -m755 -d /usr/share/doc/parted-3.2/html &&
install -v -m644    doc/html/* \
                    /usr/share/doc/parted-3.2/html &&
install -v -m644    doc/{FAT,API,parted.{txt,html}} \

Install the optional PDF and Postscript documentation by issuing the following command as the root user:

install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--disable-device-mapper: This option disables device mapper support. Add this parameter if you have not installed LVM2.


Installed Programs: parted and partprobe
Installed Libraries: and
Installed Directories: /usr/include/parted and /usr/share/doc/parted-3.2

Short Descriptions


is a partition manipulation program.


informs the OS of partition table changes.

contains the Parted API functions.

Last updated on 2014-07-30 00:36:21 +0000