Created
April 28, 2020 15:32
-
-
Save garethrees/7b67db37c43415720da920499ab7231c to your computer and use it in GitHub Desktop.
Format USB drive from the command line macOS
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
diskutil list | |
diskutil unmountDisk /dev/disk2 | |
diskutil eraseDisk FAT32 SANDISK /dev/disk2 |
It's working, Thanks.
Tnx! It's working method!🔥👍
Thankyou soo much, the disk utility cannot fix the issue.
the commands fixed it.
It's working, Thanks. To add secure erase config, we can use it like:
sudo diskutil secureErase 4 eraseDisk exFAT sandisk128 /dev/disk9
thanks!!! you saved my day
I need your help. It seems that my 128Gig SanDisk memory card has an internal write protection on and I cant erase anything on it. My MAC disk utility wont work, the adapter security switch doesnt help, it is locked on a software side of the SD Micro card.
Can yoiu help. I use a MAC and dont have a lot of experience with the Terminal side.
unmountDisk
is not required in practice, Sequoia.
Thank you, It's works.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It worked. Thank you so much.