Terminal - diskutil secureErase freespace not working

Hey, I'm trying to erase free space on main volume using diskutil secureErase freespace command, but I'm getting "Erasing freespace only works on mounted and writable volumes". Any ideas please?

MacBook Pro 13", macOS 10.15

Posted on Oct 20, 2019 3:01 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 20, 2019 11:33 AM

Another possibility is you are using an SSD. Disk Utility does not allow a Secure Erase on an SSD because it doesn't do any good because of the way SSDs work internally and it just causes unnecessary wear on an SSD. If you are using an SSD, then the blocks where the deleted data was stored will automatically be erased once TRIM works on the now discarded block or the discarded block is processed by the SSD's internal garbage collection routines.


If the computer is using FileVault, then no one will be able to see the deleted data anyway unless they were able to unlock the FileVault.


Similar questions

3 replies
Question marked as Top-ranking reply

Oct 20, 2019 11:33 AM in response to DiscoTrooper

Another possibility is you are using an SSD. Disk Utility does not allow a Secure Erase on an SSD because it doesn't do any good because of the way SSDs work internally and it just causes unnecessary wear on an SSD. If you are using an SSD, then the blocks where the deleted data was stored will automatically be erased once TRIM works on the now discarded block or the discarded block is processed by the SSD's internal garbage collection routines.


If the computer is using FileVault, then no one will be able to see the deleted data anyway unless they were able to unlock the FileVault.


Oct 20, 2019 4:14 AM in response to DiscoTrooper

I've no experience with diskutil secureErase. Anyway, Catalina separates the partition where it resides in two volumes (well, actually more than 2 as you can see from your terminal screenshot): Macintosh HD and Macintosh HD – Data. The latter is where your information (as a user) is stored. Maybe you have to work only on that partition, because the former is read only (for the end user) for security purposes.

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.

Terminal - diskutil secureErase freespace not working

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