Gparted

(Redirected from Gparted)
  1. Gparted Windows
  2. Linux Partition Manager Windows
GParted
Developer(s)GParted developers
Initial releaseAugust 26, 2004; 16 years ago
Stable release
1.3.0 / May 3, 2021; 7 days ago[1]
RepositoryGParted Repository
Written inC++ (gtkmm), C[2]
Operating systemLinux
TypePartition editor
LicenseGNU General Public License
Websitegparted.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]

DetectReadCreateGrowShrinkMoveCopyCheckLabelUUID
BitLockerYesNoNoNoNoNoNoNoNoNo
BtrfsYesYesYesYesYesYesYesYesYesYes
crypt / LUKS[6]YesYesNoYesYesYesYesNoNoNo
exFAT[7]YesNoYesNoNoYesYesYesYesNo
ext2YesYesYesYesYesYesYesYesYesYes
ext3YesYesYesYesYesYesYesYesYesYes
ext4YesYesYesYesYesYesYesYesYesYes
F2FSYesYesYesYesNoYesYesYesNoNo
FAT16YesYesYesYesYesYesYesYesYesYes
FAT32YesYesYesYesYesYesYesYesYesYes
HFSYesYesYesNoYesYesYesNoNoNo
HFS+YesYesYesNoYesYesYesYesNoNo
JFSYesYesYesYesNoYesYesYesYesYes
swapYesYesYesYesYesYesYesNoYesYes
LVM2 PVYesYesYesYesYesYesNoYesNoNo
NILFS2YesYesYesYesYesYesYesNoYesYes
NTFSYesYesYesYesYesYesYesYesYesYes
ReFSYesNoNoNoNoNoNoNoNoNo
Reiser4YesYesYesNoNoYesYesYesNoNo
ReiserFSYesYesYesYesYesYesYesYesYesYes
UDFYesYesYesNoNoYesYesNoYesYes
UFSYesNoNoNoNoYesYesNoNoNo
XFSYesYesYesYesNoYesYesYesYesYes
ZFSYesNoNoNoNoNoNoNoNoNo

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]

  1. ^'GParted 1.3.0'. 3 May 2021. Retrieved 7 May 2021.
  2. ^http://www.ohloh.net/p/32097
  3. ^'Gparted Live CD'. Retrieved 6 April 2013.
  4. ^A quick look at the GParted live CD | Linux.com | The source of Linux information
  5. ^'GParted Features'. Retrieved 2018-03-21.
  6. ^GParted — News Item 207
  7. ^GParted News Item 236
  8. ^'Gparted Manual: Copying and Pasting a Partition'.

External links[edit]

Wikimedia Commons has media related to GParted.
  • GParted at DistroWatch
  • Official website on SourceForge
Retrieved from 'https://en.wikipedia.org/w/index.php?title=GParted&oldid=1021774725'

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.

Gparted

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:

Gparted live usb
  1. Select No Log.

  2. Select the disk drive you want to recover, e.g. /dev/sdc.

  3. Select your partition table type. Usually it's Intel.

  4. Select Analyse and Quick Search.

  5. If you get asked whether your partition was created under Vista, answer yes/no.

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

  7. On the next screen you have the option to either perform a second Deeper Search, or Write the current partition table to disk. If the quick search was successful, choose Write.

Quit TestDisk, and rescan your devices in the GParted Partition Editor by clicking GPartedRefresh 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.