Gparted-0.19.1

Introduction to Gparted

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-7.6 systemd platform.

Package Information

  • Download (HTTP): http://downloads.sourceforge.net/gparted/gparted-0.19.1.tar.bz2

  • Download MD5 sum: 9aff8cef2c46e5ca4adaab43588c9e64

  • Download size: 2.0 MB

  • Estimated disk space required: 77 MB (additional 3 MB, building the optional documentation)

  • Estimated build time: 0.9 SBU (additional 0.1 SBU, building the optional documentation)

Gparted Dependencies

Required

Gtkmm-2.24.4 and parted-3.2

Optional

GNOME Doc Utils and Rarian-0.8.1

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gparted

Installation of 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

Command Explanations

--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.

Using Gparted

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): e2fsprogs (installed as part of LFS), jfsutils-1.1.15, ntfs-3g-2014.2.15, reiserfsprogs-3.6.24, xfsprogs-3.2.1, btrfs-progs, dosfstools, 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 packages and configuration are necessary. One solution is to use pkexec from Polkit-0.112. Another solution is to use ssh-askpass-6.6p1.

ssh-askpass

To optionally use ssh-askpass-6.6p1, 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      &&

pkexec

To optionally use pkexec, you need polkit-gnome-0.105 or LXPolkit-0.1.0 or any Polkit authentication agent provided by your desktop environment and Systemd (for Logind). Run the following commands as the root user:

cp -v  /usr/share/applications/gparted.desktop \
       /usr/share/applications/gparted.desktop.back &&

sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
       /usr/share/applications/gparted.desktop      &&

cat > /usr/sbin/gparted_polkit << "EOF" &&
#!/bin/sh

pkexec /usr/sbin/gparted $@
EOF
chmod -v 755 /usr/sbin/gparted_polkit

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/sbin/gparted</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>
EOF
chmod -v 644 /usr/share/polkit-1/actions/org.gnome.gparted.policy

Contents

Installed Programs: gparted, gpartedbin and gparted_polkit (optional)
Installed Libraries: None
Installed Directories: /usr/share/gnome/help/gparted and /usr/share/omf/gparted

Short Descriptions

gparted

is a shell script which sets up the environment before calling gpartedbin.

gpartedbin

is the Gparted binary.

gparted_polkit

is an optional script which can be used to run gparted with polkit, from a menu.

Last updated on 2014-08-25 09:58:52 -0700