2008-04-22 08:57:03 -06:00
|
|
|
GPARTED
|
2010-12-12 11:17:35 -07:00
|
|
|
=======
|
2014-04-04 12:27:48 -06:00
|
|
|
Gparted is the GNOME Partition Editor for creating, reorganizing, and
|
2008-04-25 09:51:08 -06:00
|
|
|
deleting disk partitions.
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
A hard disk is usually subdivided into one or more partitions. These
|
|
|
|
partitions are normally not re-sizable (making one smaller and the
|
|
|
|
adjacent one larger.) Gparted makes it possible for you to take a
|
|
|
|
hard disk and change the partition organization, while preserving the
|
|
|
|
partition contents.
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
More specifically, Gparted enables you to create, destroy, resize,
|
|
|
|
move, check, label, and copy partitions, and the file systems
|
|
|
|
contained within. This is useful for creating space for new operating
|
|
|
|
systems, reorganizing disk usage, and mirroring one partition with
|
|
|
|
another (disk imaging).
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
Gparted can also be used with storage devices other than hard disks,
|
|
|
|
such as USB flash drives, and memory cards.
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2018-05-27 02:53:21 -06:00
|
|
|
Visit https://gparted.org for more information.
|
2008-04-22 08:57:03 -06:00
|
|
|
|
|
|
|
|
2013-05-24 13:27:25 -06:00
|
|
|
LICENSING
|
|
|
|
---------
|
|
|
|
GParted is released under the General Public License version 2, or (at
|
|
|
|
your option) any later version. (GPLv2+). All files are released under
|
|
|
|
the GPLv2+ unless explicitly licensed otherwise.
|
|
|
|
|
|
|
|
The GParted Manual is released under the GNU Free Documentation License
|
|
|
|
version 1.2 or any later version. (GFDLv1.2+).
|
|
|
|
|
2017-04-26 10:54:56 -06:00
|
|
|
Google Test C++ test framework is released under the 3-Clause BSD
|
|
|
|
License. (BSD-3-Clause).
|
|
|
|
|
2013-05-24 13:27:25 -06:00
|
|
|
See these files for more details:
|
|
|
|
COPYING - GNU General Public License version 2
|
|
|
|
COPYING-DOCS - GNU Free Documentation License version 1.2
|
2017-04-26 10:54:56 -06:00
|
|
|
lib/gtest/LICENSE
|
|
|
|
- 3-Clause BSD License
|
2013-05-24 13:27:25 -06:00
|
|
|
|
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
NEWS
|
|
|
|
----
|
|
|
|
Information about changes to this release, and past releases can be
|
|
|
|
found in the file:
|
|
|
|
NEWS
|
2008-04-22 08:57:03 -06:00
|
|
|
|
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
INSTALL
|
|
|
|
-------
|
2008-04-26 14:20:54 -06:00
|
|
|
a. Pre-built Binary
|
|
|
|
|
|
|
|
Many GNU/Linux distributions already provide a pre-built binary
|
|
|
|
package for GParted. Instructions on how to install GParted on
|
|
|
|
some distributions is given below:
|
|
|
|
|
2024-08-05 09:35:03 -06:00
|
|
|
RHEL
|
|
|
|
----
|
2019-03-31 04:12:47 -06:00
|
|
|
su -
|
2024-08-05 09:35:03 -06:00
|
|
|
dnf install gparted
|
2019-03-31 04:12:47 -06:00
|
|
|
|
2013-10-01 13:06:28 -06:00
|
|
|
Debian or Ubuntu
|
|
|
|
----------------
|
2022-07-01 05:53:22 -06:00
|
|
|
sudo apt install gparted
|
2008-04-26 14:20:54 -06:00
|
|
|
|
2019-03-31 04:12:47 -06:00
|
|
|
Fedora
|
|
|
|
------
|
2008-04-26 14:20:54 -06:00
|
|
|
su -
|
2019-03-31 04:12:47 -06:00
|
|
|
dnf install gparted
|
2008-04-26 14:20:54 -06:00
|
|
|
|
2013-02-24 11:47:14 -07:00
|
|
|
OpenSUSE
|
|
|
|
--------
|
|
|
|
sudo zypper install gparted
|
|
|
|
|
2008-04-26 14:20:54 -06:00
|
|
|
b. Building from Source
|
|
|
|
|
2014-09-13 04:43:56 -06:00
|
|
|
Briefly, build and install GParted into the default location of
|
|
|
|
/usr/local using:
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
2017-06-24 03:39:37 -06:00
|
|
|
sudo install -m 644 org.gnome.gparted.policy \
|
|
|
|
/usr/share/polkit-1/actions/org.gnome.gparted.local.policy
|
|
|
|
This assumes all the dependencies are already installed, builds the
|
|
|
|
default configuration and polkit is being used as the graphical su
|
|
|
|
program.
|
2014-09-13 04:43:56 -06:00
|
|
|
|
|
|
|
The following dependencies are required to build GParted from source:
|
2008-04-26 14:20:54 -06:00
|
|
|
g++
|
2019-03-31 04:12:47 -06:00
|
|
|
make
|
2008-04-26 14:20:54 -06:00
|
|
|
parted
|
2014-09-13 04:43:56 -06:00
|
|
|
gnome-common
|
2018-08-27 11:58:56 -06:00
|
|
|
gtkmm3
|
2008-04-26 14:20:54 -06:00
|
|
|
gettext
|
2022-09-23 01:31:01 -06:00
|
|
|
polkit
|
2024-08-09 06:32:23 -06:00
|
|
|
yelp-tools - required if help documentation is to be built
|
2008-04-26 14:20:54 -06:00
|
|
|
|
2024-08-05 09:35:03 -06:00
|
|
|
On RHEL, these dependencies may be obtained by running the following
|
|
|
|
command as root:
|
|
|
|
dnf install gnome-common yelp-tools glib2-devel gcc-c++ \
|
2022-09-23 01:31:01 -06:00
|
|
|
libuuid-devel parted-devel gtkmm30-devel make \
|
|
|
|
polkit-devel gettext-devel
|
2019-03-31 04:12:47 -06:00
|
|
|
|
2013-10-01 13:06:28 -06:00
|
|
|
On Debian or Ubuntu, these dependencies may be obtained by running
|
|
|
|
one of the following commands:
|
|
|
|
Either;
|
2022-07-01 05:53:22 -06:00
|
|
|
sudo apt build-dep gparted
|
2013-10-01 13:06:28 -06:00
|
|
|
Or;
|
2022-07-01 05:53:22 -06:00
|
|
|
sudo apt install build-essential gnome-common yelp-tools \
|
|
|
|
libglib2.0-dev uuid-dev libparted-dev \
|
|
|
|
libgtkmm-3.0-dev
|
2008-04-26 14:20:54 -06:00
|
|
|
|
2024-02-24 15:48:38 -07:00
|
|
|
Debian 13 and later and Ubuntu 24.04 LTS and later also require this
|
|
|
|
dependency installing:
|
|
|
|
sudo apt install libpolkit-gobject-1-dev
|
|
|
|
|
2019-03-31 04:12:47 -06:00
|
|
|
On Fedora, these dependencies may be obtained by running the
|
|
|
|
following command as root:
|
2022-09-23 01:31:01 -06:00
|
|
|
dnf install gnome-common yelp-tools glib2-devel gcc-c++ \
|
|
|
|
libuuid-devel parted-devel gtkmm30-devel make \
|
|
|
|
polkit-devel gettext-devel
|
2008-04-26 14:20:54 -06:00
|
|
|
|
2011-02-26 10:18:09 -07:00
|
|
|
On openSUSE, these dependencies may be obtained by running the
|
2019-03-31 04:12:47 -06:00
|
|
|
following commands:
|
|
|
|
sudo zypper install gnome-common gcc-c++ libuuid-devel \
|
2022-09-23 01:31:01 -06:00
|
|
|
parted-devel gtkmm3-devel make polkit-devel
|
2011-02-26 10:18:09 -07:00
|
|
|
|
2014-09-13 04:43:56 -06:00
|
|
|
Again, build GParted with the default configuration and install into
|
|
|
|
the default location of /usr/local using:
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
2011-02-22 13:22:49 -07:00
|
|
|
|
|
|
|
If you wish to build this package without the help documentation use
|
|
|
|
the --disable-doc flag:
|
2009-02-09 10:46:09 -07:00
|
|
|
E.g., ./configure --disable-doc
|
2011-02-22 13:22:49 -07:00
|
|
|
|
|
|
|
If you wish to build this package to use native libparted /dev/mapper
|
|
|
|
dmraid support use the --enable-libparted-dmraid flag:
|
|
|
|
E.g., ./configure --enable-libparted-dmraid
|
|
|
|
|
2013-11-15 09:27:12 -07:00
|
|
|
If you wish to build this package with online resize support then
|
|
|
|
the following is required:
|
2014-08-10 15:35:27 -06:00
|
|
|
a) Linux kernel version 3.6 or higher.
|
|
|
|
b) Libparted with online resize support. Either:
|
|
|
|
i) Libparted version 3.2 or later which includes online
|
|
|
|
resize support as standard. In this case GParted is
|
|
|
|
automatically built with online resize support.
|
|
|
|
ii) Online resize support back ported into an earlier version
|
|
|
|
of libparted. This is only known to be included in Debian
|
|
|
|
and derived distributions with parted version 2.3-14 and
|
|
|
|
higher. In this case online resize support must be
|
|
|
|
specifically enabled with the --enable-online-resize flag:
|
|
|
|
E.g., ./configure --enable-online-resize
|
2013-11-15 09:27:12 -07:00
|
|
|
|
2017-07-17 11:31:51 -06:00
|
|
|
If you wish to build GParted to allow it to use xhost to grant root
|
|
|
|
access to the X11 server use the --enable-xhost-root flag. This is
|
|
|
|
required to allow GParted to display under Wayland.
|
|
|
|
./configure --enable-xhost-root
|
|
|
|
|
2013-11-15 09:27:12 -07:00
|
|
|
Please note that more than one configure flag can be used:
|
2011-02-22 13:22:49 -07:00
|
|
|
E.g., ./configure --disable-doc --enable-libparted-dmraid
|
|
|
|
|
2008-04-26 14:20:54 -06:00
|
|
|
The INSTALL file contains further GNU installation instructions.
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2017-06-24 03:39:37 -06:00
|
|
|
c. Installing polkit's Action File
|
|
|
|
|
|
|
|
GParted needs to run as root therefore it needs a graphical switch
|
|
|
|
user program to allow normal users to run it. Most desktops now use
|
|
|
|
polkit as their preferred authorisation mechanism. Therefore
|
|
|
|
./configure looks for polkit's pkexec as the first choice with
|
|
|
|
fallbacks in order being: gksudo, gksu, kdesudo and finally xdg-su.
|
|
|
|
Also polkit reads action files only from directory
|
|
|
|
/usr/share/polkit-1/actions. Therefore it is likely that a polkit
|
|
|
|
action file will need to be installed into this directory.
|
|
|
|
|
|
|
|
To determine if polkit's pkexec program is being used as the
|
|
|
|
graphical privilege escalation program examine the output from
|
|
|
|
./configure. These lines report that pkexec is being used:
|
|
|
|
|
2017-08-12 04:52:30 -06:00
|
|
|
checking for pkexec >= 0.102... 0.112 found
|
2017-06-24 03:39:37 -06:00
|
|
|
|
2017-08-12 04:52:30 -06:00
|
|
|
Where as either of these lines of ./configure output report that
|
|
|
|
pkexec is not being used because either it was too old a version or
|
|
|
|
it was not found:
|
2017-06-24 03:39:37 -06:00
|
|
|
|
2017-08-12 04:52:30 -06:00
|
|
|
checking for pkexec >= 0.102... 0.96 found
|
|
|
|
|
|
|
|
checking for pkexec >= 0.102... not found
|
2017-06-24 03:39:37 -06:00
|
|
|
|
|
|
|
When GParted is configured with prefix /usr (using command
|
|
|
|
./configure --prefix=/usr) then make install will automatically
|
|
|
|
install the polkit action file into the correct directory and no
|
|
|
|
further steps need to be taken. This is typically the case for
|
|
|
|
distribution builds of GParted.
|
|
|
|
|
|
|
|
However when GParted is configured with the default prefix of
|
|
|
|
/usr/local, or any prefix other than /usr, then the polkit action
|
|
|
|
file has to be manually installed into the correct directory. Also
|
|
|
|
it should have a unique file name to avoid overwriting the action
|
|
|
|
file from the distribution's package. Install the polkit action file
|
|
|
|
with a unique name including an extra ".local" in the name:
|
|
|
|
|
|
|
|
sudo install -m 644 org.gnome.gparted.policy \
|
|
|
|
/usr/share/polkit-1/actions/org.gnome.gparted.local.policy
|
|
|
|
|
|
|
|
d. Building using a Specific (lib)parted Version
|
2014-09-14 11:44:48 -06:00
|
|
|
|
|
|
|
1) Download the parted version you wish to use (e.g., 3.2) from:
|
|
|
|
|
|
|
|
http://ftp.gnu.org/gnu/parted/
|
|
|
|
|
|
|
|
2) Build and install parted.
|
|
|
|
|
|
|
|
Extract parted tarball, configure, make, and sudo make install.
|
|
|
|
Note that by default this will install into /usr/local.
|
|
|
|
|
2014-09-20 04:31:12 -06:00
|
|
|
3) Set environment variables to inform the GParted build system to
|
|
|
|
use libparted from /usr/local:
|
2014-09-14 11:44:48 -06:00
|
|
|
|
2014-09-20 04:31:12 -06:00
|
|
|
export CPPFLAGS=-I/usr/local/include
|
2014-09-14 11:44:48 -06:00
|
|
|
export LDFLAGS=-L/usr/local/lib
|
2014-09-20 04:31:12 -06:00
|
|
|
export LD_RUN_PATH=/usr/local/lib
|
2015-08-11 11:18:54 -06:00
|
|
|
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
2014-09-14 11:44:48 -06:00
|
|
|
|
|
|
|
4) Build gparted using steps listed above in "Building from Source".
|
|
|
|
|
|
|
|
Note that when you run ./configure you should see the specific
|
|
|
|
version of parted listed in the check for libparted >= 1.7.1.
|
|
|
|
|
|
|
|
You will also see the libparted version listed when running
|
|
|
|
gparted from the command line.
|
|
|
|
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
DIRECTORIES
|
|
|
|
------------
|
2008-11-12 15:22:59 -07:00
|
|
|
data - contains desktop icons
|
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
doc - contains manual page documentation
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2008-08-06 19:07:25 -06:00
|
|
|
help - contains GParted Manual and international translations
|
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
include - contains source header files
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2017-04-26 10:54:56 -06:00
|
|
|
lib/gtest
|
|
|
|
- contains Google Test C++ test framework libraries
|
|
|
|
|
2008-08-06 19:07:25 -06:00
|
|
|
m4 - contains macro files
|
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
po - contains international language translations
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2008-04-25 09:51:08 -06:00
|
|
|
src - contains C++ source code
|
2008-04-22 08:57:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
DISTRIBUTION NOTES
|
|
|
|
------------------
|
2015-08-10 04:30:46 -06:00
|
|
|
GParted uses GNU libparted to detect and manipulate devices and
|
|
|
|
partition tables. The blkid command is also required to detect those
|
|
|
|
file systems which libparted doesn't detect. (The blkid command should
|
|
|
|
be considered a mandatory requirement).
|
|
|
|
|
|
|
|
GParted also queries and manipulates the file systems within those
|
|
|
|
devices and partitions. When available, it uses each file system's
|
|
|
|
specific commands. The following optional file system specific packages
|
|
|
|
provide this support:
|
2008-04-22 08:57:03 -06:00
|
|
|
|
2015-07-25 02:38:28 -06:00
|
|
|
btrfs-progs / btrfs-tools
|
2008-04-22 08:57:03 -06:00
|
|
|
e2fsprogs
|
2021-01-11 10:26:41 -07:00
|
|
|
exfatprogs
|
2013-03-16 14:56:02 -06:00
|
|
|
f2fs-tools
|
2008-04-22 08:57:03 -06:00
|
|
|
dosfstools
|
2015-08-10 04:30:46 -06:00
|
|
|
mtools - required to read and write FAT16/32 volume labels
|
|
|
|
and UUIDs
|
2008-04-22 08:57:03 -06:00
|
|
|
hfsutils
|
2008-07-25 17:05:20 -06:00
|
|
|
hfsprogs
|
2008-04-22 08:57:03 -06:00
|
|
|
jfsutils
|
2019-11-04 07:37:05 -07:00
|
|
|
nilfs-utils / nilfs-tools
|
2015-07-25 03:44:24 -06:00
|
|
|
ntfs-3g / ntfsprogs
|
2008-04-22 08:57:03 -06:00
|
|
|
reiser4progs
|
2015-07-25 03:44:24 -06:00
|
|
|
reiserfsprogs / reiserfs-utils / reiserfs
|
2017-07-04 18:15:35 -06:00
|
|
|
udftools
|
2018-08-19 06:08:55 -06:00
|
|
|
util-linux - required to create and check MINIX file systems
|
2011-11-10 13:12:21 -07:00
|
|
|
xfsprogs, xfsdump
|
2008-10-31 15:50:07 -06:00
|
|
|
|
2009-03-14 14:02:41 -06:00
|
|
|
|
|
|
|
For dmraid support, the following packages are required:
|
|
|
|
|
|
|
|
dmsetup - removes /dev/mapper entries
|
2015-08-10 04:30:46 -06:00
|
|
|
dmraid - lists dmraid devices and creates /dev/mapper
|
|
|
|
entries
|
2009-03-14 14:02:41 -06:00
|
|
|
|
2009-03-26 11:35:00 -06:00
|
|
|
For GNU/Linux distribution dmraid support, the following are required:
|
2015-08-10 04:30:46 -06:00
|
|
|
- kernel built with Device Mapping and Mirroring built. From
|
|
|
|
menuconfig, it is under Device Drivers -> <something> (RAID & LVM).
|
2009-03-26 11:35:00 -06:00
|
|
|
- dmraid drive arrays activated on boot (e.g., dmraid -ay).
|
2009-12-06 13:39:09 -07:00
|
|
|
|
|
|
|
|
2012-02-06 08:18:05 -07:00
|
|
|
For LVM2 Physical Volume support the following command is required:
|
2012-01-29 03:43:33 -07:00
|
|
|
lvm - LVM2 administration tool
|
|
|
|
And device-mapper support in the kernel.
|
|
|
|
|
|
|
|
|
2016-01-01 06:56:11 -07:00
|
|
|
For accurate detection and reporting of Linux Software RAID Arrays the
|
|
|
|
following command is required:
|
|
|
|
|
|
|
|
mdadm - SWRaid administration tool
|
|
|
|
|
|
|
|
|
2016-10-27 07:33:11 -06:00
|
|
|
For LUKS support the following commands are required:
|
|
|
|
cryptsetup - LUKS volume administration tool
|
2016-01-02 07:27:17 -07:00
|
|
|
dmsetup - Device-mapper administration tool
|
|
|
|
|
|
|
|
|
2015-08-10 04:30:46 -06:00
|
|
|
Several more commands are optionally used by GParted if found on the
|
|
|
|
system. These commands include:
|
|
|
|
|
|
|
|
blkid - [mandatory requirement] used to detect file systems
|
|
|
|
libparted doesn't, read UUIDs and volume labels
|
|
|
|
udisks - used to prevent automounting of file systems
|
|
|
|
hal-lock - used to prevent automounting of file systems
|
2017-06-20 09:15:12 -06:00
|
|
|
pkexec - used to acquire root privileges in gparted shell
|
2017-06-16 00:30:30 -06:00
|
|
|
script wrapper, but only if available when gparted
|
|
|
|
source is configured
|
2017-06-20 09:15:12 -06:00
|
|
|
gksudo - alternatively used to acquire root privileges in
|
2017-06-16 00:30:30 -06:00
|
|
|
gparted shell script wrapper, second choice if
|
|
|
|
available when gparted source is configured
|
2017-06-20 09:15:12 -06:00
|
|
|
gksu - alternatively used to acquire root privileges in
|
2017-06-16 00:30:30 -06:00
|
|
|
gparted shell script wrapper, third choice if
|
|
|
|
available when gparted source is configured
|
2017-06-20 09:15:12 -06:00
|
|
|
kdesudo - alternatively used to acquire root privileges in
|
|
|
|
gparted shell script wrapper, fourth choice if
|
|
|
|
available when gparted source is configured
|
2015-08-10 04:30:46 -06:00
|
|
|
xdg-su - alternatively used to acquire root privileges in
|
2017-06-16 00:30:30 -06:00
|
|
|
gparted shell script wrapper, last choice if
|
|
|
|
available when gparted source is configured
|
2024-08-09 06:32:23 -06:00
|
|
|
udevadm - used to wait for udev rule execution and querying
|
|
|
|
udev device properties
|
2015-08-10 04:30:46 -06:00
|
|
|
yelp - used to display help manual
|
2021-07-24 09:18:03 -06:00
|
|
|
(requires gvfs to be able to launch yelp)
|
2017-07-17 11:31:51 -06:00
|
|
|
xhost - used to grant root access to the X11 server, only
|
|
|
|
when configured to do so
|
2009-12-06 13:58:27 -07:00
|
|
|
|