GParted - GParted Manual
GParted - GParted Manual
GParted - GParted Manual
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with
no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy of the GFDL at
this link or at http://www.fsf.org/licensing/licenses/fdl.html or in the file COPYING-DOCS distributed
with this manual.
Revision History
Revision GParted Manual V1.6 December 2013
Abstract
GParted is the Gnome Partition Editor for creating, reorganizing, and deleting disk partitions. GParted
enables you to change the partition organization while preserving the partition contents.
The gparted application is the GNOME partition editor for creating, reorganizing, and deleting disk
partitions.
A disk device can be subdivided into one or more partitions. The gparted application enables you to
change the partition organization on a disk device while preserving the contents of the partition.
Perform actions with partitions such as create, delete, resize, move, check, label, copy, and paste.
Caution
The gparted application is designed to enable you to edit partitions while reducing the risk of data loss.
The application is carefully tested and is used by the GParted project team. However, loss of data might
occur due to software bugs, hardware problems, or power failure.
You can help to reduce the risk of data loss by not mounting or unmounting partitions outside of the
gparted application while gparted is running.
You are advised to BACKUP your DATA before using the gparted application.
Applications menu
Command line
Menubar
The menus on the menubar contain all of the commands you need to work with disk devices and
partitions in gparted.
Toolbar
The toolbar contains a subset of the commands that you can access from the menubar.
The graphic display area contains the visual representation of the partitions on the selected disk
device.
The text display area contains the text list of the partitions on the selected disk device.
Statusbar
The statusbar displays information about current gparted activity or the number of operations
pending.
The device information pane displays details about the selected disk device.
By default the device information pane is not shown. To show the device information pane, choose
View → Device Information.
The pending operations pane displays the current list of partition operations in the queue.
By default the pending operations pane is not shown when there are 0 pending operations. To show
the pending operations pane, choose View → Pending Operations.
When you left-click in either display area, you select a partition to use for partition editing actions.
When you right-click in either display area, the application displays a popup menu. The popup menu
contains the most common partition editing actions.
Like other GNOME applications, actions in gparted can be performed in several ways: with the menu, with
the toolbar, or with shortcut keys.
To work with multiple disk devices from a command line, type the following command, then press Enter:
To view details about the chart, click Legend. The application displays more information about the
chart.
If you have installed software while gparted is running, click Rescan For Supported Actions to
refresh the chart. The application refreshes the display of the chart.
To select a disk device, choose: GParted → Devices and select a device from the list. The application
displays the device partition layout in the gparted window.
2. Select: View → Device Information. The application opens a side pane in the gparted window and
displays information about the device.
To close the Device Information side pane, deselect: View → Device Information.
To refresh all disk devices, choose: GParted → Refresh Devices. The application rescans all the disk
devices and refreshes the device partition layout in the gparted window.
2. Choose: Device → Create Partition Table. The application displays a Create partition table on
/path-to-device dialog.
3. If you want a partition table other than msdos, click Advanced and select a partition table type from
the list.
4. Click Apply to create the new partition table. The application writes the new partition table to the
disk device. The application refreshes the device partition layout in the gparted window.
Caution
WARNING: This will ERASE ALL DATA on the ENTIRE DISK DEVICE.
If you accidentally overwrite your partition table, see the section called “Recovering Partition Tables”.
2. Choose: Device → Attempt Data Rescue. The application displays a Search for file systems on
/path-to-device dialog.
Tip
Large disk devices can take a very long time to scan. If you do not have the time to wait for a full disk
scan then click Cancel.
Note
A maximum of 4 partitions with file systems might be discovered. If you want to discover more than
4 partitions and restore the partition table, see the section called “Recovering Partition Tables”.
4. When the full disk scan completes one of two possible dialogs is displayed:
If no file systems are found, you have other options to try to rescue your data. The photorec
application is designed to help recover many different types of lost files. For more information
about photorec, see http://www.cgsecurity.org/wiki/PhotoRec.
Click OK to close the dialog box, and end this attempt to rescue data.
File systems found on /path-to-device
If file systems are found, each file system is displayed in a list along with a View button. The
dialog will indicate if there are data inconsistencies. Inconsistencies in the data might prevent
you from viewing the data.
5. To rescue data, use the following steps for each file system:
A. Click View to mount and display the file system. Your default file manager is opened and
displays a read-only view of the file system.
Note
If the dialog Unable to open the default file manager is displayed, then you will need to open a
file manager and navigate to the mount point for the file system.
Click OK to close the Unable to open the default file manager dialog.
B. Use the file manager to copy your data to other storage media.
C. When you are finished copying your data, close the file manager.
6. When you are finished rescuing data, click Close to end this attempt to rescue data. The application
umounts any file systems that were mounted for viewing. Then the application rescans all the disk
devices and refreshes the device partition layout in the gparted window.
The application highlights the partition in both the graphic display area and the text display area in the
gparted window.
Note
Partition operations such as delete, move, copy, format, check, label, and often resize require the partition
to be unmounted. See the section called “Unmounting a Partition”.
Selecting Unallocated Space
The application highlights the unallocated space in both the graphic display area and the text display area
in the gparted window.
Tip
If you do not have any disk devices with unallocated space, you might try the following:
Shrink a partition that contains unused space. See the section called “Resizing a Partition”.
To mount a partition:
2. Choose: Partition → Mount and select a mount point from the list. The application mounts the
partition on the mount point and refreshes the device partition layout in the gparted window.
Note
If Partition → Mount is not visible, then gparted does not know where the partition should be mounted.
To unmount a partition:
1. Select a mounted partition. See the section called “Selecting a Partition”.
2. Choose: Partition → Unmount. The application unmounts the partition from the mount point and
refreshes the device partition layout in the gparted window.
Tip
If Partition → Unmount does not succeed, then the partition is probably in use.
To have all partitions unmounted and available for partition editing actions, boot from a Live CD and use
gparted. See the section called “Acquiring GParted on Live CD”
These actions will alter partitions on your disk device. These actions will not modify the start or end
boundaries of your existing partitions.
1. Select an unallocated space on the disk device. See the section called “Selecting Unallocated Space”.
2. Choose: Partition → New. The application displays the Create new Partition dialog.
3. Specify the size and the location for the partition. See the section called “Specifying Partition Size
and Location”.
4. Specify the alignment for the partition. See the section called “Specifying Partition Alignment”.
5. Specify the type of partition. See the section called “Specifying Partition Type”.
6. Specify the type of file system for the partition. See the section called “Specifying Partition File
System”.
7. Specify the label for the partition. See the section called “Specifying Partition Label”.
8. Click Add to add the create partition operation to the operation queue. The application displays the
create partition operation in the Pending Operations pane in the gparted window.
To delete a partition:
2. Choose: Partition → Delete. The application displays the delete partition operation in the Pending
Operations pane.
Caution
If you delete a logical partition, then all existing logical partitions after the deleted logical partition will
experience changes in device names.
For example, an extended partition contains four logical partitions A, B, C, and D. These logical partitions
are accessed by the operating system as follows:
Partition A as /dev/sda5.
Partition B as /dev/sda6.
Partition C as /dev/sda7.
Partition D as /dev/sda8.
If partition B is deleted, then the remaining logical partitions will be accessed by the operating system as
follows:
Partition A as /dev/sda5.
Changes in a device name can cause problems if a partition is mounted using a device name. You can
avoid the problem by using the label or the Universally Unique Identifier (UUID) of the partition when
mounting the partition.
/boot/grub/menu.lst - Contains operating system boot instructions for the grub boot loader.
To format a partition:
2. Choose: Partition → Format to, and select a type of file system from the list. The application
displays the format partition operation in the Operations Pending pane.
See the section called “Specifying Partition File System” for the meaning of the cleared file system
type.
2. Choose: Partition → Label. The application opens a Set partition label on /path-to-partition
dialog.
4. Click OK. The application displays the set partition label operation in the Operations Pending pane.
2. Choose: Partition → New UUID. The application displays the set a new random UUID operation in
the Operations Pending pane.
Warning
Changing the UUID might invalidate the Windows Product Activation key (WPA).
On FAT and NTFS file systems, the Volume Serial Number is used as UUID. Changing the Volume
Serial Number on the Windows system partition, normally C:, might invalidate the WPA key. An
invalid WPA key will prevent login until you reactivate Windows.
In an attempt to avoid invalidating the WPA key, on NTFS file systems only half of the UUID is set
to a new random value. On FAT file systems, such a precaution is not possible.
The WPA key should not be affected by changing the UUID of data partitions or removable media
partitions. In rare cases, a partition that is present at boot time might be an exception to this rule.
Warning
Changing the UUID when there is no need to do so might cause a GNU/Linux system to fail to boot,
or to fail to mount a file system.
Changing the UUID is only required after copying a partition. The UUID change is needed to
prevent duplicate UUIDs when both the source and the copy of the partition are used on the same
computer.
If boot or mount problems occur you might need to edit configuration files, such as /etc/fstab, and
regenerate the grub menu to ensure that the correct UUID is specified.
Specifying partition details is useful when performing actions such as create, resize, and move.
To specify the size and the location of the partition, use one or a combination of the following:
Click-and-hold the arrow at either end of the graphic area. Drag the arrow left or right within the
display range.
Click-and-hold the middle of the partition in the graphic area. Drag the partition left or right within
the display range.
Click the spin button arrows, or type numeric values to adjust the following fields:
New Size
The application refreshes both the graphic area and the numbers beside the three field labels.
To specify the alignment of the partition, click the Align to arrow button, and select from the list.
Use MiB alignment for modern operating systems. This setting aligns partitions to start and end on
precise mebibyte (1,048,576 byte) boundaries. MiB alignment provides enhanced performance
when used with RAID systems and with Solid State Drives, such as USB flash drives.
Use Cylinder alignment to maintain compatibility with operating systems released before the year
2000, such as DOS. This setting aligns partitions to start and end on disk cylinder boundaries.
Tip
The Cylinder/Head/Sector values reported by modern disk devices no longer have a direct physical
relationship to the data stored on the disk device. Hence it is no longer valid to use this alignment
setting to achieve enhanced performance.
Use None only if you have an in-depth knowledge of disk structure, partition tables, and boot
records. This setting places partition boundaries relative to the end of any immediately preceding
partition on the disk device. This setting is not guaranteed to reserve or respect space required for
boot records.
To specify the partition type, click the Create as arrow button, and select from the list.
Note
The extended partition can contain multiple logical partitions. Some GNU/Linux distributions
support accessing at most 15 partitions on a disk device.
Maximum size of a partition is 2 Terabytes using a sector size of 512 bytes. The partition must also
start within the first 2 Terabytes of the disk device.
Tip
Primary partitions provide better data recoverability because the partition boundaries are stored at known
locations on the disk device.
To specify the type of file system for the partition, click the File System arrow button, and select from the
list.
Note
ext2, ext3 and ext4 file systems can be used for installing GNU/Linux, and for data.
linux-swap can be used with GNU/Linux to increase the virtual memory of your computer.
fat16 and fat32 file systems can be used to share data between free and commercial operating
systems.
cleared can be used to clear any existing file system signatures and ensure that the partition is
recognised as empty.
unformatted can be used to just create a partition without writing a file system.
To specify the partition label, also known as a volume label, type a label name in the Label text box.
Tip
Labels can be used to help you remember what is stored in the partition.
Unique labels can be used to mount file systems with the GNU/Linux operating system.
These actions will alter partitions on your disk device. These actions might modify the start or end
boundaries of your existing partitions. These actions might cause operating systems to fail to boot.
To resize a partition:
Tip
Support is available for online resize of some mounted or otherwise active partitions. However this
support is often limited to grow only.
2. Choose: Partition → Resize/Move. The application displays the Resize/Move /path-to-
partition dialog.
3. Adjust the size of the partition. See the section called “Specifying Partition Size and Location”.
Tip
If you do not want the start of an existing partition to move, then do not change the free space
preceding value. If the partition is mounted or otherwise active, then you will not be able to change
the free space preceding value.
4. Specify the alignment of the partition. See the section called “Specifying Partition Alignment”.
5. Click Resize/Move. The application displays the resize/move partition operation in the Pending
Operations pane.
6. Examine the operation that was added to the Pending Operations pane.
If the partition is an operating system boot partition, then a move step might cause the
operating system to fail to boot.
If you are not prepared to wait or to fix potential operating system boot problems, then you might
want to undo the operation. See the section called “Undoing Last Operation”.
Tip
To grow or move a partition, unallocated space must be available adjacent to the partition.
If you are growing a logical partition, then the unallocated space must be within the extended partition.
If you are growing a primary partition, then the unallocated space must not be within the extended
partition.
You can move unallocated space to be inside or outside of the extended partition by resizing the extended
partition boundaries.
Tip
To improve the ability to shrink NTFS partitions, you might consider one or more of the following:
Booting into Safe Mode with the commercial operating system that uses NTFS can improve the
ability to defragment the file system. To enter Safe Mode press F8 while your computer is booting
the operating system.
C:> chkdsk /f /r
Remember to reboot back into the commercial operating system that uses NTFS to allow the
chkdsk command to execute.
Temporarily disable the paging file. The paging file occupies a fixed location in the partition that the
defragmentation process is unable to move.
Temporarily move large files to another partition or disk device. Large files are defined as greater
than a few hundred Megabytes (MB).
Ensure a proper shut down of the commercial operating system that uses NTFS before you resize the
NTFS partition
Leave at least 10 percent unused space in the NTFS partition. If you shrink the partition too much,
then the commercial operating system might have difficulty functioning properly.
Reboot twice into the commercial operating system that uses NTFS after shrinking the NTFS
partition.
To move a partition:
3. Adjust the location of the partition. See the section called “Specifying Partition Size and Location”.
4. Specify the alignment of the partition. See the section called “Specifying Partition Alignment”.
5. Click Resize/Move. The application displays the resize/move partition operation in the Pending
Operations pane.
Tip
If the partition is an operating system boot partition, then the operating system might not boot after the
move operation is applied.
If the operating system fails to boot, see the section called “Fixing Operating System Boot Problems”.
To copy a partition:
2. Choose: Partition → Copy. The application marks the partition as the source partition.
To Paste a partition:
1. Select an unallocated space on a disk device. See the section called “Selecting Unallocated Space”.
2. Choose: Partition → Paste. The application displays the Paste /path-to-partition dialog.
3. If you want you can adjust the size and location of the partition. See the section called “Specifying
Partition Size and Location”.
4. If you want you can specify the alignment of partition. See the section called “Specifying Partition
Alignment”.
5. Click Paste. The application displays the copy partition operation in the Pending Operations pane.
Caution
The copy of the partition has the same label and the same Universally Unique Identifier (UUID) as the
source partition. This can cause a problem when booting, or when mount actions use the partition label or
the UUID to identify the partition.
The problem is that the operating system will randomly select to mount either the source, or the copy of
the partition. For example, on the first mount action the source partition might be mounted. On the next
mount action the copy of the partition might be mounted. Over time this random nature of partition
mounting might make files seem to mysteriously appear or disappear depending upon which partition is
mounted. Random mounting of the source or the copy of the partition might also cause severe data
corruption or loss.
1. Change the UUID of either the source, or the copy of the partition. See the section called
“Changing a Partition UUID”.
2. If the partition label is not blank then change the label of either the source, or the copy of the
partition. See the section called “Setting a Partition Label”.
After you have applied the copy operation, delete or reformat the source partition.
Use some other method to ensure that the source partition and the copy of the partition are not used
on the same computer at the same time. For example, if the copy of the partition is on a separate
drive then remove the drive from the computer.
2. Choose: Partition → Manage Flags. The application opens a Manage flags on /path-to-
partition dialog.
To enable a flag, select the check box beside the flag. The application writes the enabled flag to
the partition and refreshes the Manage flags on /path-to-partition dialog.
To disable a flag, deselect the check box beside the flag. The application writes the disabled
flag to the partition and refreshes the Manage flags on /path-to-partition dialog.
Note
Boot is used by some commercial operating system boot loaders. The boot flag indicates the
partition is active or bootable. Only one partition on a disk device can be active.
LBA is used by some commercial operating system boot loaders. The LBA flag indicates the partition
should be accessed using Logical Block Addressing (LBA), instead of Cylinder-Head-Sector (CHS)
addressing.
LVM is used to indicate the partition is used by a Logical Volume Manager (LVM).
Palo is used by the Precision Architecture - Reduced Instruction Set Computing (PA-RISC) boot
loader, palo.
Prep is used to indicate the boot partition on Power Performance Computing (PowerPC) hardware.
RAID is used to indicate the partition is used in a Redundant Array of Inexpensive Disks (RAID).
Note
BIOS_GRUB indicates a BIOS boot partition often used by the GRUB 2 boot loader.
Boot is used by some commercial operating system boot loaders. The boot flag indicates the
partition is active or bootable. Only one partition on a disk device can be active.
Hidden is used by some commercial operating systems. The hidden flag makes the partition
invisible to the operating system.
Legacy_boot is used by some special purpose software to indicate the partition might be bootable.
RAID indicates the partition is used in a Redundant Array of Inexpensive Disks (RAID).
Checking a partition will attempt to find and fix problems in the file system. Checking a partition will
attempt to grow the file system to fill the partition.
To check a partition:
2. Choose: Partition → Check. The application displays the check partition operation in the Pending
Operations pane.
To undo the last operation in the operation queue, choose: Edit → Undo Last Operation. The application
removes the last operation from the queue displayed in the Pending Operations pane. If there are no
operations remaining in the queue, the application closes the Pending Operations pane.
To clear all operations in the operation queue, choose: Edit → Clear All Operations. The application
removes all operations from the queue and closes the Pending Operations pane.
1. Choose: Edit → Apply All Operations. The application displays an Apply operations to device dialog.
Caution
Editing partitions has the potential to cause LOSS of DATA. You are advised to backup your data
before applying your partition editing operations.
2. Click Apply. The application displays an Applying pending operations dialog. The application
applies each pending operation in the order you created the operations. The application displays a
status update when each operation is completed.
To view more information, click Details. The application displays more details about
operations.
To view more information about the steps in each operation, click the arrow button beside
each step.
To stop the operations while they are executing, click Cancel. The application displays a
disabled Force Cancel (5) button and counts down for 5 seconds.
Note
Cancel instructs the application to stop or roll back operations as necessary to ensure data
integrity.
If operations have not halted after 5 seconds the application enables the Force Cancel button.
To force the operations to stop, click Force Cancel. The application displays a warning dialog.
Click Continue Operation to allow the roll back operations to complete, or click Cancel
Operation to cancel the roll back operations.
Warning
Cancel Operation terminates the safe roll back of operations and might cause SEVERE file
system damage and data loss. You are advised to click Continue Operation to allow the roll
back to complete.
When the application finishes performing operations, the application displays the Save Details
button and the Close button.
3. If you want to save the details from applying all operations, then click Save Details. The application
displays a Save Details dialog.
a. If you want to change the default file name, then type a file name in the Name text box.
b. If you want to save the file in a folder different than /root, Click Browse for other folders. The
application displays a file system navigator.
c. Click Save to save the file. The application saves the details file.
Caution
If you use gparted from a Live CD, then the root file system exists in RAM memory. All files saved to
the Live CD root file system will be lost when you shut down the computer.
If you saved the gparted details to the Live CD root file system, then you need to copy the file to
more permanent storage. Examples of more permanent storage are a hard disk drive or a USB flash
memory drive.
4. Click Close. The application closes the Applying pending operations dialog. The application rescans
all the disk devices and refreshes the device partition layout in the gparted window.
Acquiring GParted on Live CD
A Live CD is a Compact Disc that contains a bootable operating system. A Live CD enables you to boot
your computer from the CD.
You can edit all of your partitions because the partitions are not mounted.
You can edit partitions on computers that do not have a bootable operating system.
You can download a Live CD image containing gparted from the following web sites:
Tip
To avoid wasting a blank CD when burning a CD image file, use the following tips:
Ensure the checksum of the downloaded file matches the checksum posted on the download page.
Be sure to burn the .iso file as an image to the blank CD. If you burn the .iso file as data to a blank
CD then the CD will not boot in your computer.
Delete a partition.
Move a partition.
Install another operating system and overwrite the Master Boot Record (MBR).
You are advised to consult documentation for your boot loader to learn how to fix the problem. You might
consult the GParted FAQ, or the GParted forum. You might also use Internet search engines to learn how
other people have solved similar problems.
The Grand Unified Boot loader (GRUB) might fail to boot an operating system if you do one of the
following:
To fix these problems, you will need to reinstall the GRUB boot record using the following steps:
$ grub
If the /boot folder is stored in a partition different than the / partition, use the command:
The output from the find command might look like the following:
(hd0,0)
If more than one line is listed in the command output, you will need to decide which device you use
for grub.
3. Set the grub root device by specifying the device returned by the find command.
5. Exit grub.
grub> quit
The grub application is included on each Live CD listed in the section called “Acquiring GParted on Live
CD”
The testdisk application is designed to help recover lost partitions. For more information about testdisk,
see http://www.cgsecurity.org/wiki/TestDisk.
The testdisk application is included on each Live CD listed in the section called “Acquiring GParted on
Live CD”