Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
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.
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.
macOS provides several tools to manage disk partitions, including:
diskutil
and gpt
for advanced users.Open Disk Utility: You can find Disk Utility in the Applications > Utilities folder or search for it using Spotlight (Cmd + Space).
Select Your Drive: In Disk Utility, select the drive you want to partition from the sidebar.
Erase the Drive: Click the "Erase" button. In the dialog that appears, choose:
Confirm: Click "Erase" to format the drive and apply the GUID partition scheme.
For users comfortable with the command line, diskutil
is a powerful tool.
List All Drives: Open Terminal and type:
diskutil list
Identify the drive you want to partition (e.g., /dev/disk2).
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.
Verify the Partition Scheme: After partitioning, you can verify the scheme by listing the partitions again:
diskutil list /dev/disk2
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.
Initialize the Drive with GPT:
sudo gpt create /dev/disk2
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.
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.