The Parted package is a disk partitioning and partition resizing tool.
This package is known to build and work properly using an LFS 11.3 platform.
Download (HTTP): https://ftp.gnu.org/gnu/parted/parted-3.5.tar.xz
Download (FTP): ftp://ftp.gnu.org/gnu/parted/parted-3.5.tar.xz
Download MD5 sum: 336fde60786d5855b3876ee49ef1e6b2
Download size: 1.8 MB
Estimated disk space required: 33 MB (additional 3 MB for the tests and additional 2 MB for optional PDF and Postscript documentation)
Estimated build time: 0.3 SBU (additional 3.6 SBU for the tests)
LVM2-2.03.18 (device-mapper, required if building udisks)
dosfstools-4.2, Pth-2.0.7, texlive-20220321 (or install-tl-unx), and Digest::CRC (for tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/parted
About 20 % more tests are run if the following kernel module is built:
Device Drivers --->
SCSI device support --->
[*] SCSI low-level drivers ---> [CONFIG_SCSI_LOW_LEVEL]
<M> SCSI debugging host and device simulator [CONFIG_SCSI_DEBUG]
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-20220321 installed and wish to create PDF and Postscript 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
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.5/html && install -v -m644 doc/html/* \ /usr/share/doc/parted-3.5/html && install -v -m644 doc/{FAT,API,parted.{txt,html}} \ /usr/share/doc/parted-3.5
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.5
--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.