Skip to content

Instantly share code, notes, and snippets.

@jasonwbarnett
Last active August 27, 2019 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonwbarnett/f8ed8ddb3e2e906e7c3a97529aa13a4e to your computer and use it in GitHub Desktop.
Save jasonwbarnett/f8ed8ddb3e2e906e7c3a97529aa13a4e to your computer and use it in GitHub Desktop.

Mac OS Boot Camp External Drive

Requirements

Build

Format Drive

  1. Attach your external drive to your Mac.

  2. Identify disk via diskutil list.

    $ diskutil list
    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                         2.0 TB     disk0
       1:                        EFI EFI                     314.6 MB   disk0s1
       2:                 Apple_APFS Container disk1         2.0 TB     disk0s2
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +2.0 TB     disk1
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD            1.2 TB     disk1s1
       2:                APFS Volume Preboot                 46.7 MB    disk1s2
       3:                APFS Volume Recovery                510.3 MB   disk1s3
       4:                APFS Volume VM                      2.1 GB     disk1s4
    
    /dev/disk2 (external, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *960.2 GB   disk2
       1:                        EFI EFI                     209.7 MB   disk2s1
       2:                  Apple_HFS Boot Camp               959.9 GB   disk2s2
    
  3. Delete all partitions

    $ diskutil eraseDisk FREE %noformat% /dev/disk2
    
    # Verify
    $ diskutil list
       /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                         2.0 TB     disk0
       1:                        EFI EFI                     314.6 MB   disk0s1
       2:                 Apple_APFS Container disk1         2.0 TB     disk0s2
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +2.0 TB     disk1
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD            1.2 TB     disk1s1
       2:                APFS Volume Preboot                 46.7 MB    disk1s2
       3:                APFS Volume Recovery                510.3 MB   disk1s3
       4:                APFS Volume VM                      2.1 GB     disk1s4
    
    /dev/disk2 (external, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *960.2 GB   disk2
       1:                        EFI EFI                     209.7 MB   disk2s
    
  4. Start Disk Utility from Spotlight.

  5. Select your external drive.

  6. Click Erase and enter the following information:

    • Name: Boot Camp
    • Format: Mac OS Extended (Journaled)
    • Scheme: GUID Partition Map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment