Gparted is the Gnome Partition Editor, a Gtk 3 GUI for other command line tools that can create, reorganise or delete disk partitions.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://downloads.sourceforge.net/gparted/gparted-1.8.1.tar.gz
Download MD5 sum: 3805a43eafd08277f12dc6c2e0de97c2
Download size: 5.7 MB
Estimated disk space required: 193 MB (with tests)
Estimated build time: 0.3 SBU (using parallelism=4; add 0.3 SBU for tests)
btrfs-progs-6.19.1 (if you are using a btrfs filesystem), exfatprogs, and udftools
Additional dependencies may be required depending on the types of filesystems that you are working with. Please read the "Using Gparted" section below for more information.
Install Gparted by running the following commands:
./configure --prefix=/usr --disable-static && make
To run the tests, issue: make check.
Now, as the root user:
make install
--disable-static: This
switch prevents installation of static versions of the libraries.
--enable-xhost-root: This switch
provides an interim workaround to allow GParted to run under
Wayland by using xhost to grant and revoke root access to the X11
display.
To manipulate file systems, Gparted has a run time dependency on various file system tools (you only need to install the tools for file systems you actually use): Hdparm-9.65 (required for optionally displaying the serial number of a device), btrfs-progs-6.19.1, dosfstools-4.2, e2fsprogs (installed as part of LFS), jfsutils-1.1.15, ntfs-3g-2022.10.3, xfsprogs-6.19.0, mtools (required to read and write FAT16/32 volume labels and UUIDs), hfsutils, hfsprogs, nilfs-utils, Reiser4progs, and reiserfsprogs.
Root privileges are required to run Gparted. If you want to run the application from the menu, further applications and configuration might be necessary depending on your desktop environment. If you are using KDE Plasma, GNOME, or LXQt, your desktop includes an ssh-askpass implementation, or a wrapper around Polkit that provides this functionality for you. If you are not using one of these desktop environments, an easier solution is use the generic ssh-askpass-10.3p1 package.
To use ssh-askpass-10.3p1 if it is installed on
your system, run the following commands as the root user:
cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back && sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop
Now, when you click on the menu item for Gparted, a dialog will appear asking for the administrator password.