The Parted package is a disk partitioning and partition resizing tool.
This package is known to build and work properly using an LFS-10.0 platform.
Download (HTTP): https://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz
Download (FTP): ftp://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz
Download MD5 sum: 090655d05f3c471aa8e15a27536889ec
Download size: 1.7 MB
Estimated disk space required: 34 MB (additional 3 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)
Estimated build time: 0.3 SBU (additional 1.7 SBU for the tests)
LVM2-2.03.10 (device-mapper, required if building udisks)
dosfstools-4.1, Pth-2.0.7, texlive-20200406 (or install-tl-unx), and Digest::CRC (for tests)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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-20200406 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/parted.ps doc/parted.dvi
If you wish to run the test suite, first remove a couple of tests that are known to fail in a BLFS environment. And, adjust two Python scripts to use Python 3, in case Python 2 is not installed:
sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile && sed -i '/t6002-dm-busy.sh/d' tests/Makefile && sed -i '1s/python/&3/' tests/{gpt-header-move,msdos-overlap}
To test the results, issue, as the root
user:
make check
Many tests are skipped if not run as the root
user.
Now, as the root
user:
make install && install -v -m755 -d /usr/share/doc/parted-3.3/html && install -v -m644 doc/html/* \ /usr/share/doc/parted-3.3/html && install -v -m644 doc/{FAT,API,parted.{txt,html}} \ /usr/share/doc/parted-3.3
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} \ /usr/share/doc/parted-3.3
--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.
Last updated on 2020-08-16 21:26:53 -0700