Skip to content

Instantly share code, notes, and snippets.

@ca4ti
Forked from garethrees/format.sh
Created June 21, 2024 15:13
Show Gist options
  • Save ca4ti/1c692454dcaf528f6b473c7938e7d755 to your computer and use it in GitHub Desktop.
Save ca4ti/1c692454dcaf528f6b473c7938e7d755 to your computer and use it in GitHub Desktop.
Format USB drive from the command line macOS
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