Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line tools that can create, reorganise or delete disk partitions.
This package is known to build and work properly using an LFS-8.3 platform.
Download (HTTP): https://downloads.sourceforge.net/gparted/gparted-0.32.0.tar.gz
Download MD5 sum: df4fe0350ba55cee6fddae289bd9d3f1
Download size: 3.7 MB
Estimated disk space required: 108 MB
Estimated build time: 0.4 SBU (using parallelism=4)
btrfs-progs-4.17.1 (if using a btrfs filesystem), Rarian-0.8.1, GNOME Doc Utils, and udftools
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gparted
Install Gparted by running the following commands:
./configure --prefix=/usr \ --disable-doc \ --disable-static && make
This package does not come with a testsuite.
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.
--disable-doc
: This switch
disables building of the optional documentation. Remove it if you
have installed GNOME Doc Utils.
--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.56 (required for optionally displaying serial number device information), btrfs-progs-4.17.1, dosfstools-4.1, e2fsprogs (installed as part of LFS), jfsutils-1.1.15, ntfs-3g-2017.3.23, reiserfsprogs-3.6.27, xfsprogs-4.17.0, mtools (required to read and write FAT16/32 volume labels and UUIDs), hfsutils, hfsprogs, nilfs-utils and Reiser4progs.
Root privileges are required to run Gparted. If you wish to run the application from the menu, further applications and configurations are necessary. Examples of applications that may be used: gksu, kdesudo, or xdg-su. Another solution is to use pkexec, from Polkit-0.114, but some configuration is necessary. Another simple solution is ssh-askpass-7.7p1. Below, we describe these two alternatives: "ssh-askpass" and "pkexec".
To optionally use ssh-askpass-7.7p1 if it is installed in
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, clicking on the menu item for Gparted, a dialog appears on the screen, asking for the administrator password.
To optionally use pkexec, you
need polkit-gnome-0.105, and ConsoleKit2-1.0.2 installed with support
to Linux-PAM-1.3.0 and Polkit-0.114.
As the root
user, configure
Gparted-0.32.0 and Polkit-0.114
with the following commands:
cp -v /usr/share/applications/gparted.desktop \
/usr/share/applications/gparted.desktop.back &&
sed -i 's:/usr/bin/gparted:/usr/bin/gparted_polkit:' \
/usr/share/applications/gparted.desktop &&
cat > /usr/bin/gparted_polkit << "EOF" &&
#!/bin/bash
pkexec /usr/bin/gparted $@
EOF
chmod -v 0755 /usr/bin/gparted_polkit
Still as the root
user, configure
Polkit-0.114 and Gparted-0.32.0 to use
pkexec:
cat > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.policykit.pkexec.run-gparted">
<description>Run GParted</description>
<message>Authentication is required to run GParted</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gparted</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>
EOF
chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy
Now, clicking in the menu item for Gparted, a dialog appears in the screen, asking for the administrator password.
Last updated on 2018-08-25 20:02:46 -0700