Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Managing hard drives on macOS involves understanding how to use both the graphical interface provided by Disk Utility and the command-line tool, Terminal. This guide will walk you through the essentials of managing hard drives, including formatting, partitioning, and checking the status of your drives.
Disk Utility is a built-in macOS application that provides a user-friendly interface for managing disks and volumes. Here's how to perform some basic tasks:
Open Disk Utility:
Applications
> Utilities
> Disk Utility
.Format a Drive:
Partition a Drive:
For more advanced users, Terminal provides powerful command-line tools to manage hard drives.
To list all connected drives, use the following command:
diskutil list
To format a drive using Terminal, use the diskutil
command. Replace /dev/diskX
with your actual disk identifier:
diskutil eraseDisk JHFS+ NewVolumeName /dev/diskX
To verify the status of a drive, you can use:
diskutil info /dev/diskX
This command provides detailed information about the specified drive.
To repair a drive, use the following command:
diskutil repairDisk /dev/diskX
This attempts to repair any issues with the specified disk.
Example 1: Formatting a USB Drive
Suppose you have a USB drive that you want to format to Mac OS Extended. First, identify the disk using diskutil list
, then format it:
diskutil list
diskutil eraseDisk JHFS+ MyUSB /dev/disk2
Example 2: Partitioning a Drive
Let's say you want to add a partition to your main drive: