Gparted

(Redirected from Gparted)
  • 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.
  • Gparted can work with or create ext2, ext3, ext4, fat16, fat32, hfs, hfs+, linux-swap, lvm2 pv, nilfs2, ntfs, reiserfs, reiser4,ufs and xfs formats. Gparted is the one of the best hard disk management software for Ubuntu and Linux Base Derivatives.
  • Oct 29, 2020 GParted is undoubtedly one of the best partition managers for Linux out there. The user interface is very simple and gets the job done. In some cases, you end up using GParted to fix or format your USB drive as well. I had a USB disk which I couldn’t format in Ubuntu using the “Disks” app – this is where GParted came to the rescue.
  • With GParted, you don't have to worry about that, since you can add partitions or modify the size of those that you already have without losing your information. Just burn GParted to a CD or USB and use it like a boot disk and you'll be able to add new partitions and change the size of existing partitions.
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 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.

Apr 13, 2021 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 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.

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'

‘gparted’ is the graphical version of ‘parted’ and is the tool to use to resize the main partition used for raspbian (or you could use use parted if you prefer the command line of course!). It can also be used to check and repair a SD card disk.

To do this you’ll need to put the SD card you want to work on in a USB to SD card adaptor and boot your RPi from a separate SD card. If you’d rather use a windows tool we’ve found that gparted just works whereas all of the windows based partition managers we tried don’t, so better to just get over the hassle factor and use the RPi to do this if you don’t have a separate Linux system.

Installing gparted on the separate Raspbian SD card that will perform the change

From the command line use:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install gparted

Running gparted

Gparted

To run it use ‘sudo startx’ to load the GUI as gparted needs root user privileges

Then from the start menu select run and enter ‘gparted’

Resizing Your Main Partition

From the top bar devices drop down select “dev/sda” (or whatever your external USB adaptor has been called).

Right click somewhere on the graphic and select ‘unmount’ first as operations can’t be carried out on a mounted partition.

Gparted Mac

Right click the main ‘ext4’ partition and select ‘check’, then click the green tick and let it check the partition for you (this isn’t essential but its a good idea as if there are issues it will likely cause the resize to fail).

Right click the main ‘ext4’ partition and select ‘resize’ then enter the new size you want it to be.

Right click the main ‘ext4’ partition and select ‘check’ (we’ve found this to be necessary to ensure the new partition size is correctly updated in the file system even though it should be done as part of the resize – kept us chasing constantly failed resizes for hours before we discovered this).

Finally click the green arrow button to carry out the changes.

Reboot the RPi (yep its stupid but we’ve found a reboot to be needed even after removing and re-inserting the SD card), sudo startx, run gparted, select the USB drive and check the ext4 partition is locked again (mounted) and has its boot string back.

Gparted Resize Partition

We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.

Gparted Command Line

Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.