Created
October 17, 2017 17:48
-
-
Save n0an/c774b59916512045e0bd4a46008926ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Here's what I would try. First run | |
``` | |
diskutil list | |
``` | |
to get the name to the disk you're trying to format. The below commands assume this is "disk1", but replace "disk1" with the correct disk if it's something different. | |
Now unmount the disk: | |
``` | |
diskutil unmountDisk force disk1 | |
``` | |
and then write zeros to the boot sector: | |
``` | |
sudo dd if=/dev/zero of=/dev/disk1 bs=1024 count=1024 | |
``` | |
finally attempt to partition it again: | |
``` | |
diskutil partitionDisk disk1 GPT JHFS+ "My External HD" 0g | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment