GNOME Partition Editor

Moving Space Between Partitions

This page contains a sample chapter from the book Manage Partitions with GParted How-to reproduced with permission from Packt Publishing.

About the Book

Manage Partitions with GParted How-to

Manage Partitions with GParted How-to is a practical, hands-on guide providing you with step-by-step instructions to effectively organize your hard drive.

Modern disk drives can store vast amounts of information. To effectively use all of this space, you can partition disk drives into separate storage areas. These separate storage areas enable you to organize your data, improve system performance, and install and use many operating systems.

This book provides ample screen shots to help you effectively use your hard drive. You start with simple tasks that help you to identify drives and partitions. Next you progress to tasks covering the basics of how to grow, shrink, move, and copy partitions without data loss. You finish with advanced tasks that use the basics to prepare for new operating systems, migrate space between partitions, and share data among Windows, Linux, and Mac OS X.

By following through the tasks, from basic to advanced, this book will empower you with the knowledge and tools to Manage Partitions with GParted.

About the Sample Chapter

The following sample chapter entitled Moving space between partitions (Become an expert) shows step-by-step how to migrate free space from one partition to another using GParted Live. This chapter is one of many practical recipes included in the book Manage Partitions with GParted How-to available from Packt Publishing and other popular book stores.


Moving space between partitions
(Become an expert)

It can be frustrating to run out of free space in one partition (for example, C:) when another partition (for example, D:) has plenty. In this recipe we cover the steps to migrate free space from one partition to another.


Getting ready

Before before performing this task, we highly recommend that you backup your data. This task involves moving the start of a partition boundary, which is a high risk activity.


How to do it...

  1. Select the partition with plenty of free space.

    Original disk layout with one full primary partition on left followed by an extended partition wholly containing a logical partition with free space

  2. Choose the Partition | Resize/Move menu option and a Resize/Move window is displayed.

  3. Click on the left-hand side of the partition and drag it to the right so that the free space is reduced by half.

    Resize/Move window with unallocated space on the left followed by the shunk partition

  4. Click on Resize/Move to queue the operation.

  5. Click on OK to acknowledge the move partition warning.

    Warning window indicating that moving a partition might cause the operating system to fail to boot

  6. Select the extended partition.

    Disk layout showing a full primary partition followed by an extended partition that contains free space to the left of a logical partition

  7. Choose the Partition | Resize/Move menu option and a Resize/Move window is displayed.

  8. Click on the left-hand side of the partition and drag it to the right so that there is no space between the outer extended partition boundary and the inner logical partition boundary.

    Resize/Move window with free space to the left of extended partition and logical partition fitting perfectly within the extended partition

  9. Click on Resize/Move to queue the operation.

  10. Select the partition that needs more free space:

    Disk layout with one full primary partition on left, followed by unallocated space followed by an extended partition wholly containing a logical partition

  11. Choose the Partition | Resize/Move menu option and a Resize/Move window is displayed.

  12. Click on the right-hand side of the partition and drag it as far to the right as possible:

    Resize/Move window with the partition taking up all of the space

  13. Click Resize/Move to queue the operation:

    Disk layout with one no longer full primary partition on left, followed by a very small amount of unallocated space followed by an extended partition wholly containing a logical partition

    • Notice the unallocated space between sda1 and sda2. This gap, which can be up to about 8 MiB, occurs due to having cylinder aligned and MiB aligned partitions on the same disk device. In this example, the sda1 partition was created with cylinder alignment to demonstrate this potential gap.


  14. Choose the Edit | Apply All Operations menu option to apply the queued operations, to disk.

  15. Click on Apply to apply operations to disk.

    Applying pending operations window displaying progress bar growing from left to right

  16. Click on Close to close the apply operations to disk window.

    Disk layout showing the final partition layout with a primary partition followed by a small amount of unallocated space followed by an extended partition that wholly contains a logical partition


How it works...

In order to add space to a partition, unallocated space must be available immediately adjacent to the partition. To free up this space, we use many of the recipes covered earlier.

First, we made unallocated space available by shrinking the logical partition where free space was available. Because the free space came from a logical partition inside an extended partition, and we needed to add the space to a primary partition, we had to edit three partitions to achieve the desired goal.


There's more...

As mentioned in previous recipes, if you resize or move a partition containing an NTFS file system, then you should reboot into Windows twice to permit Windows to perform file system consistency checks.

Growing or moving a partition

To grow or move a partition, unallocated space must be available adjacent to the partition:

  • When growing a logical partition, the unallocated space must be within the extended partition.
  • When growing a primary partition, the unallocated space must not be within the extended partition.

You can move unallocated space inside or outside of an extended partition by resizing the extended partition boundaries.


The preceding section entitled Moving Space Between Partitions (Become an expert) is a sample chapter from the book Manage Partitions with GParted How-to written by Curtis Gedak and reproduced with permission from Packt Publishing.

Documentation   FAQ   Forum   Bugs   Features   Screenshots   Articles   Contact

Get GParted at SourceForge.net. Fast, secure and Free
	Open Source software downloads Valid HTML 4.01! Correct CSS! Privacy policy