Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Manage Partitions with GParted How-to

You're reading from   Manage Partitions with GParted How-to A task-based, step-by-step guide that empowers you to use your disk space effectively with this book and ebook.

Arrow left icon
Product type Book
Published in Nov 2012
Publisher Packt
ISBN-13 9781849519823
Pages 86 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Curtis Gedak Curtis Gedak
Author Profile Icon Curtis Gedak
Curtis Gedak
Arrow right icon
View More author details
Toc

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.

You have been reading a chapter from
Manage Partitions with GParted How-to
Published in: Nov 2012
Publisher: Packt
ISBN-13: 9781849519823
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime