Created
April 28, 2020 15:32
-
-
Save garethrees/7b67db37c43415720da920499ab7231c to your computer and use it in GitHub Desktop.
Format USB drive from the command line macOS
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 | |
diskutil unmountDisk /dev/disk2 | |
diskutil eraseDisk FAT32 SANDISK /dev/disk2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
unmountDisk
is not required in practice, Sequoia.