Developer(s) | GParted developers |
---|---|
Initial release | August 26, 2004; 16 years ago |
Stable release | 1.3.0 / May 3, 2021; 7 days ago[1] |
Repository | GParted Repository |
Written in | C++ (gtkmm), C[2] |
Operating system | Linux |
Type | Partition editor |
License | GNU General Public License |
Website | gparted.sourceforge.io gparted.org |
GParted (acronym of GNOME Partition Editor) is a GTK front-end to GNU Parted and an official GNOME partition-editing application (alongside Disks). GParted is used for creating, deleting, resizing, moving, checking, and copying disk partitions and their file systems. This is useful for creating space for new operating systems, reorganizing disk usage, copying data residing on hard disks, and mirroring one partition with another (disk imaging).
Background[edit]
GParted (FNOME partition Editor) is a piece of partition managing software. It can be used to create, delete, resize, copy partition, convert MBR to GPT disk or GPT to MBR disk, and recover deleted partition, and so on. GParted is a free partition manager developed to help you graphically manage your disk partitions. Using this utility app, you can resize, copy, and move partitions without data loss. This will enable you to grow or shrink your drive and create space for new operating systems.
GParted uses libparted to detect and manipulate devices and partition tables while several (optional) file system tools provide support for file systems not included in libparted. These optional packages will be detected at runtime and do not require a rebuild of GParted.
GParted is written in C++ and uses gtkmm to interface with GTK. The general approach is to keep the GUI as simple as possible and in conformity with the GNOME Human Interface Guidelines.
The GParted project provides a live operating system including GParted which can be written to a Live CD, a Live USB and other media.[3][4] The operating system is based on Debian. GParted is also available on other Linux live CDs, including recent versions of Puppy, Knoppix, SystemRescueCd and Parted Magic. GParted is preinstalled when booting from 'Try Ubuntu' mode on an Ubuntu installation media.
An alternative to this software is GNOME Disks.
GParted is a graphical (plus) front end to the libparted library used by the Parted project. If you want to use the command line then use parted instead (note: no g in front of name). Just use sudo parted to start it.
Supported features[edit]
GParted supports the following operations on file systems (provided that all features were enabled at compile-time and all required tools are present on the system). The 'copy' field indicates whether GParted is capable of cloning the mentioned filesystem.[5]
Detect | Read | Create | Grow | Shrink | Move | Copy | Check | Label | UUID | |
---|---|---|---|---|---|---|---|---|---|---|
BitLocker | Yes | No | No | No | No | No | No | No | No | No |
Btrfs | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
crypt / LUKS[6] | Yes | Yes | No | Yes | Yes | Yes | Yes | No | No | No |
exFAT[7] | Yes | No | Yes | No | No | Yes | Yes | Yes | Yes | No |
ext2 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
ext3 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
ext4 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
F2FS | Yes | Yes | Yes | Yes | No | Yes | Yes | Yes | No | No |
FAT16 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
FAT32 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
HFS | Yes | Yes | Yes | No | Yes | Yes | Yes | No | No | No |
HFS+ | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | No | No |
JFS | Yes | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
swap | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes |
LVM2 PV | Yes | Yes | Yes | Yes | Yes | Yes | No | Yes | No | No |
NILFS2 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes |
NTFS | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
ReFS | Yes | No | No | No | No | No | No | No | No | No |
Reiser4 | Yes | Yes | Yes | No | No | Yes | Yes | Yes | No | No |
ReiserFS | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
UDF | Yes | Yes | Yes | No | No | Yes | Yes | No | Yes | Yes |
UFS | Yes | No | No | No | No | Yes | Yes | No | No | No |
XFS | Yes | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
ZFS | Yes | No | No | No | No | No | No | No | No | No |
Cloning with GParted[edit]
GParted is capable of cloning by copying and pasting. GParted is not capable of cloning an entire disk, but only one partition at a time. The file system being cloned should not be mounted. GParted clones partitions at the filesystem-level, and as a result is capable of cloning different target-size partitions for the same source, as long as the size of the source filesystem does not exceed the size of the target partition.[8]
See also[edit]
References[edit]
- ^'GParted 1.3.0'. 3 May 2021. Retrieved 7 May 2021.
- ^http://www.ohloh.net/p/32097
- ^'Gparted Live CD'. Retrieved 6 April 2013.
- ^A quick look at the GParted live CD | Linux.com | The source of Linux information
- ^'GParted Features'. Retrieved 2018-03-21.
- ^GParted — News Item 207
- ^GParted News Item 236
- ^'Gparted Manual: Copying and Pasting a Partition'.
External links[edit]
Wikimedia Commons has media related to GParted. |
- GParted at DistroWatch
- Official website on SourceForge
A friend recently asked me to perform a system recovery on her VAIO laptop. The hard disk was split between a C drive for the OS, and a D drive with 200GB of data. I'm a Linux user, so I was like, come on, at least give me a challenge! Have you heard people saying, be careful what you wish for? Well, 30 seconds into the recovery procedure, I got an Error 333
and a restart button. Both partitions had been deleted.
The good news was that before I started the system recovery procedure, I asked her to backup the most important data, but that was just 5GB out of 200GB—the rest was gone. That's a lot of lost data! Thankfully, I was able to use a cool program called TestDisk to fully recover everything.
In this tutorial, I will show you how to create a bootable GParted Live USB drive, and use TestDisk to recover your partitions. Note that if you are still able to boot normally to your system, and just want to recover your files without creating a bootable disk, you might also want to have a look at Recover Deleted Files Using the Free Open Source Tool PhotoRec.
Create a GParted Live USB drive
Start by downloading the GParted Live ISO. Choose the latest stable release for your computer architecture (if you are not sure choose i686). There are multiple methods you can use to create a bootable USB drive from the ISO file—I prefer UNetbootin.
Windows
If you are on Windows, just download UNetbootin.
Linux
Gparted Windows
If you are on Ubuntu, ensure you have the latest version by adding the Ubuntu PPA repository for UNetbootin and install it.
$ sudo add-apt-repository ppa:gezakovacs/ppa
$ sudo apt-get update
$ sudo apt-get install unetbootin
For other distributions, you can find binaries and sources at the official UNetbootin page.
Create bootable USB
After installing, plug-in an empty USB drive and run UNetbootin. Select the GParted ISO you have just downloaded and the drive you wish to use for GParted Live, and then click OK.
Boot into the GParted Live USB
Restart your computer and boot from the USB drive you have created. While GParted is booting it will ask you some questions, e.g. keyboard layout, don't try to be a hero, just accept the defaults by pressing Enter
. When the window manager loads, the first open window is the GParted Partition Editor.
Select your disk drive using the drop-down menu on the top-right. I have selected /dev/sdc
, which as you can see doesn't have any valid partitions on it, since I accidentally deleted them for this tutorial.
Open the terminal window, by double clicking on the terminal icon on the desktop, and run TestDisk as root:
$ sudo -s
$ testdisk
Follow the steps below:
Select
No Log
.Select the disk drive you want to recover, e.g.
/dev/sdc
.Select your partition table type. Usually it's
Intel
.Select
Analyse
andQuick Search
.If you get asked whether your partition was created under Vista, answer
yes/no
.Your drive will be analysed and you will see a list of all found partitions. If you know what you are doing, you can edit the list, otherwise just press
Enter
.On the next screen you have the option to either perform a second
Deeper Search
, orWrite
the current partition table to disk. If the quick search was successful, chooseWrite
.
Quit TestDisk, and rescan your devices in the GParted Partition Editor by clicking GParted
→Refresh Devices
. Select your device from the top-right drop-down menu.
If your deleted partitions were successfully recovered, as in the above screenshot, you can reboot your computer by double clicking on the Exit
button.
Linux Partition Manager Windows
You can learn more about TestDisk by looking at the official documentation.