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)

Formatting a partition (Should know)


Normally you choose the file system type when creating a new partition. However, sometimes you want to keep an existing partition location exactly the same, but format it with a new file system so you can use the partition for a different purpose. The following steps describe how to accomplish this task.

Getting ready

As formatting a partition will overwrite the existing data, if you wish to keep the data you must first make a backup.

How to do it...

  1. Select the partition to format:

  2. Choose the Partition | Format menu option and select a file system; for example, fat32.

    Tip

    A list of default file systems used by operating systems can be found in the Identifying partitions and actions available recipe.

  3. Choose the Edit | Apply All Operations 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…

By selecting an existing partition and choosing format, you maintain the existing partition boundaries and the partition number. The process of formatting writes new file system metadata to the partition, which destroys the links to previously existing files. Often software recovery tools can be used to recover this data, but for our purposes all data in the partition is lost.

There's more...

Formatting the partition with a new file system will overwrite the label and UUID used by the previous file system. The next two sections cover how to set a new label, and also the implications of the UUID change.

Labeling the partition

After formatting a partition you can choose to place a label on the file system to make it easier to identify the partition. You can also label other existing partitions too.

  1. Select the partition to label.

  2. Choose the Partition | Label menu option and a Set partition label window is displayed.

  3. Enter a Label for the file system; for example, MUSIC.

  4. Click on OK.

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

  6. Click on Apply to apply operations to disk.

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

Formatting creates a new UUID

Formatting an existing partition with a new file system results in the creation of a new Universally Unique Identifier (UUID) for the file system. Additionally, the previous volume label on the file system is lost. As the UUID or volume label is often used to identify the partition, this can impact how the operating system treats the file system.

For example, in Linux, if the file system was previously automatically mounted, then it might cease to be mounted due to the change in UUID or volume label. To address this situation you might need to update configuration files, such as /etc/fstab, to reflect the new UUID or volume label.

For file systems recognized by Windows (ntfs, fat16, and fat32), Windows will reuse the drive letter for the new file system and UUID. For example if G: was used for an NTFS partition, then after you reformat the partition with fat32 Windows will reuse G: as the drive letter. For file systems not recognized by Windows, no drive letter is assigned.

If you need to change the Windows drive letter assignments, use the Disk Management tool. In Windows, start the Disk Management tool from the Start menu's Run box or from a command prompt window by entering diskmgmt.msc. To access the drive letter change feature, right-click on the partition that you want to assign a new drive letter to. Next, click on Change Drive Letters and Paths, and then assign an available drive letter.