Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Create and Manage GUID Partition Scheme on macOS

The GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical storage device. It is part of the Unified Extensible Firmware Interface (UEFI) standard, which is gradually replacing the older Master Boot Record (MBR) partitioning scheme. In the Apple environment, macOS uses GPT as the default partition scheme for Intel-based Macs and is compatible with Apple Silicon Macs as well. This article will guide you through creating and managing a GUID partition scheme using macOS utilities.

Understanding GPT in macOS

GPT is essential for macOS because it supports larger disk sizes and more partitions than the older MBR scheme. Each partition in GPT has a globally unique identifier (GUID), which helps in managing partitions more efficiently.

Tools for Managing GPT on macOS

macOS provides several tools to manage disk partitions, including:

  • Disk Utility: A graphical interface for managing disks and partitions.
  • Terminal: Command-line interface tools like diskutil and gpt for advanced users.

Example: Creating a GUID Partition Scheme using Disk Utility

  1. Open Disk Utility: You can find Disk Utility in the Applications > Utilities folder or search for it using Spotlight (Cmd + Space).

  2. Select Your Drive: In Disk Utility, select the drive you want to partition from the sidebar.

  3. Erase the Drive: Click the "Erase" button. In the dialog that appears, choose:

    • Name: Enter a name for the drive.
    • Format: Choose a file system (e.g., APFS or Mac OS Extended (Journaled)).
    • Scheme: Select "GUID Partition Map".
  4. Confirm: Click "Erase" to format the drive and apply the GUID partition scheme.

Example: Creating a GUID Partition Scheme using Terminal

For users comfortable with the command line, diskutil is a powerful tool.

  1. List All Drives: Open Terminal and type:

    diskutil list

    Identify the drive you want to partition (e.g., /dev/disk2).

  2. Erase and Partition the Drive: Use the following command to erase the drive and create a GUID partition scheme:

    diskutil partitionDisk /dev/disk2 GPT APFS "MyDrive" 0g

    This command erases the specified drive, creates a GUID partition map, and formats it with the APFS file system.

  3. Verify the Partition Scheme: After partitioning, you can verify the scheme by listing the partitions again:

    diskutil list /dev/disk2

Managing Partitions with gpt

For more granular control, the gpt command can be used. This is typically for advanced users who need to script or automate partitioning tasks.

  1. Initialize the Drive with GPT:

    sudo gpt create /dev/disk2
  2. Add a Partition:

    sudo gpt add -i 1 -b 2048 -s 409600 -t hfs /dev/disk2

    This command adds a new partition starting at block 2048 with a size of 409600 blocks.

Conclusion

The GUID Partition Scheme is a robust and modern way to manage disk partitions on macOS, supporting larger disks and more partitions than MBR. Whether using Disk Utility for a graphical approach or Terminal for command-line precision, macOS provides flexible tools for managing your storage devices.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.