Last active
February 10, 2018 18:26
-
-
Save lucascantor/5316443b3e791c8301196a11b85adf66 to your computer and use it in GitHub Desktop.
Overwrite the macOS disk partition table and re-partition over encrypted data without causing excessive wear by explicitly erasing the full SSD
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
# Replace N in diskN with the disk number of your choice | |
# Use "diskutil list" to confirm, and ALWAYS back up your data | |
dd if=/dev/zero of=/dev/diskN bs=512 count=1 | |
diskutil partitionDisk /dev/diskN 1 GPT APFS "Macintosh HD" 100% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment