Disk Utility - Secure Erase is not working in terminal

I'm trying to securely erase my disk by using diskutil in terminal in the recovery mode (restart --> hold down command+R --> terminal)


I first use diskutil list to find the disk name, which is disk0:


Then I use diskutil secureErase 0 disk0 to erase the disk:


However, the error "Couldn't open disk" happened. I tried to go to the UI version of Disk Utility, unmount the disk and erase again, but the same problem happens.


How can I solve this issue?

MacBook

Posted on Oct 1, 2019 8:35 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 1, 2019 9:59 AM

Secure Erase isn't available to SSDs because they work quite differently from hard drives. The recommended way to scramble data on a computer with an SSD is to use FileVault (file encryption). You can erase the drive and even if the next user is able to resurrect the data it will be garbage without the encyption key.

1 reply
Question marked as Top-ranking reply

Oct 1, 2019 9:59 AM in response to kk131

Secure Erase isn't available to SSDs because they work quite differently from hard drives. The recommended way to scramble data on a computer with an SSD is to use FileVault (file encryption). You can erase the drive and even if the next user is able to resurrect the data it will be garbage without the encyption key.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disk Utility - Secure Erase is not working in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.