Book Image

Manage Partitions with GParted How-to

By : Curtis Gedak
Book Image

Manage Partitions with GParted How-to

By: Curtis Gedak

Overview of this book

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"Manage Partitions with GParted" is a practical, hands-on guide providing you with step-by-step instructions to effectively organize your hard drive. You start with simple tasks that help you identify drives and partitions and progress to advanced tasks such as preparing for new operating systemsThis 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.
Table of Contents (7 chapters)

Deleting a partition (Should know)


Deleting a partition will free up space, enabling you to use the space in other new or existing partitions. This recipe covers the steps to delete a partition and describes a boot problem that might arise.

Getting ready

When you delete a partition you lose all of the data inside the partition. Hence, if you need any of the data, be sure to make a backup before deleting the partition.

How to do it...

  1. Select a partition to delete:

  2. Choose the Partition | Delete menu option.

  3. Choose the Edit | Apply All Operation menu option to apply the queued operations to disk.

  4. Click on Apply to apply operations to disk.

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

How it works...

Deleting a primary or extended partition removes the partition entry from the partition table.

Deleting a logical partition is different. Logical partitions are a special case because each logical partition has an Extended Boot Record (EBR) associated with the partition. The EBR is used to track the partition boundaries, and also to link to the next logical partition. Due to this linking nature, deleting a logical partition affects the device names of all higher numbered logical partitions. For example, if logical partition sda5 is deleted, then logical partitions sda6 and higher will have their partition number reduced by one (for example, sda6 will become sda5).

Changes in logical partition device names can adversely affect operating system boot process. As Windows can only be installed in a primary partition, the Windows boot process will not be affected. However, for operating systems that do permit booting from a logical partition, such as GNU/Linux, you might need to edit configuration files such as /etc/fstab, or other specific boot loader configuration files to restore the ability to boot.

There's more...

Deleting a partition that is part of the boot process, such as the C: drive or a system reserved partition in Windows, might cause a computer to fail to boot. If your intention was to remove only one operating system, such as Windows, you might be surprised to find your other operating systems also fail to boot. If this occurs you should be able to restore the ability to boot using the original operating system install media.

The GParted website contains additional resources to help you restore the operating system boot. See http://gparted.org/faq.php.

Deleting a partition by accident

If you have recently deleted a partition and have not yet used this space, then there is a chance you can recover the data or restore the partition.

Data rescue steps are covered later in the Rescuing data from a lost partition recipe.