Skip to content

Instantly share code, notes, and snippets.

@semagarcia
Last active April 22, 2017 02:09
Show Gist options
  • Save semagarcia/e3fad0c38295ad4b0977ced214ff5329 to your computer and use it in GitHub Desktop.
Save semagarcia/e3fad0c38295ad4b0977ced214ff5329 to your computer and use it in GitHub Desktop.
How format a SDCard in OSX

Command

diskutil list

Output command

In the output of previous command, search the sdcard and look for the identifier.

Example

If we want to to format the sdcard to the desired format (FAT32), with the name of "SDCARD", located on /dev/desk1, we should execute the following command:

sudo diskutil eraseDisk FAT32 SDCARD MBRFormat /dev/disk1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment