Created
August 14, 2020 19:53
-
-
Save alexleone/eab950078209b90498d2d9dd3ac4e01f to your computer and use it in GitHub Desktop.
Format External Hard Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic usage | |
diskutil eraseDisk FILE_SYSTEM DISK_NAME DISK_IDENTIFIER | |
#Formatting a Disk to Mac OS Extended Journaled (JHFS+) from Terminal in Mac OS X | |
diskutil eraseDisk JHFS+ DiskName /dev/DiskNodeID | |
#Formatting a Disk to Mac OS Extended (HFS+) from Terminal in Mac OS X | |
diskutil eraseDisk HFS+ DiskName /dev/DiskNodeID | |
#Formatting a Disk to MS-DOS fat32 from the Command Line in Mac OS X | |
diskutil eraseDisk FAT32 DiskName /dev/DiskNodeID | |
#Formatting a Disk to ExFAT from the Command Line in Mac OS X | |
diskutil eraseDisk ExFAT DiskName /dev/DiskNodeID | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment