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/4923d3736d71bb7a233302c7d6151e40 to your computer and use it in GitHub Desktop.
Save ca4ti/4923d3736d71bb7a233302c7d6151e40 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