-
-
Save Pelirrojo/08518ff754718238d258dce78b64aaf2 to your computer and use it in GitHub Desktop.
Bash Script to format an usb from CLI
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
#!/usr/bin/env bash | |
clear | |
diskutil --version >/dev/null 2>&1 || { echo >&2 "I require diskutil diskutil but it's not installed. Aborting."; exit 1; } | |
diskutil partitionDisk /dev/disk2 1 MBRFormat "MS-DOS FAT32" USB_NAME 805.30M | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment