Last active
December 27, 2020 15:17
-
-
Save lil12t/131c1e4fd1967cf659f3c190545f3f4e to your computer and use it in GitHub Desktop.
Hard format usb drive on mac OS
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
# It formats disk2 in format FAT32 | |
# In order to check your disk name run: diskutil list | |
sudo diskutil eraseDisk FAT32 MYSD MBRFormat /dev/disk2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script should be used when Disk Utility can't format partition, in my case it has been showing an partition with 4MB available of 4MB (usb drive has 16GB).