Created
November 27, 2020 14:26
-
-
Save startergo/e202beb447785fbcfb2b0203da60f7ee to your computer and use it in GitHub Desktop.
This file contains 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
diskutil list | |
/dev/disk0 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *251.0 GB disk0 | |
1: EFI EFI 314.6 MB disk0s1 | |
2: Apple_APFS Container disk2 188.0 GB disk0s2 | |
3: Microsoft Basic Data BOOTCAMP 62.7 GB disk0s3 | |
/dev/disk1 (external, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *500.1 GB disk1 | |
1: EFI EFI 209.7 MB disk1s1 | |
2: Apple_APFS Container disk3 499.9 GB disk1s2 | |
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 DiskNameGoesHere /dev/DiskNodeIDHere | |
Formatting a Disk to ExFAT from the Command Line in Mac OS X | |
diskutil eraseDisk ExFAT DiskName /dev/DiskNodeID | |
To split the container disk1s2 in half: | |
sudo diskutil apfs resizeContainer disk1s2 250g ExFAT BOOTCAMP 250g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment