Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fbx1989

macrumors member
Original poster
Aug 7, 2017
36
17
I saw this elsewhere and wanted to check whether folks here felt this was a safe and appropriate method for clearing all personal info off an SSD in preparation for sale etc. I'm QUOTING the following and if, for any reason, this is inappropriate for the forum, please delete or obscure. Not sure on the protocol of quoting so much text.

QUOTED TEXT BELOW THIS LINE

--------------------------------------------------------

SECURE ERASE A SSD FROM COMMAND LINE

Securely erasing free space on your SSD

If you don’t want to take Apple’s word for it, if you’re not using FileVault, or if you just want to, there is a way to securely erase free space on your SSD. It’s a little more involved but it works.

Before we get into the nitty-gritty, let me state for the record that this really isn’t necessary to do, which is why Apple’s made it so hard to do. But if you’re set on it, you’ll need to use Apple’s Terminal app. Terminal provides you with command line interface access to the OS X operating system. Terminal lives in the Utilities folder, but you can access Terminal from the Mac’s Recovery System, as well. Once your Mac has booted into the Recovery partition, click the Utilities menu and select Terminal to launch it.

From a Terminal command line, type:

diskutil secureErase freespace VALUE /Volumes/DRIVE

That tells your Mac to securely erase the free space on your SSD. You’ll need to change VALUE to a number between 0 and 4. 0 is a single-pass run of zeroes; 1 is a single-pass run of random numbers; 2 is a 7-pass erase; 3 is a 35-pass erase; and 4 is a 3-pass erase. DRIVE should be changed to the name of your hard drive. To run a 7-pass erase of your SSD drive in “Peters-Macbook”, you would enter the following:

diskutil secureErase freespace 2 /Volumes/Peters-Macbook

And remember, if you used a space in the name of your Mac’s hard drive, you need to insert a leading backslash before the space. For example, to run a 35-pass erase on a hard drive called “Macintosh HD” you enter the following:

diskutil secureErase freespace 3 /Volumes/Macintosh\ HD

Something to remember is that the more extensive the erase procedure, the longer it will take.

Your type of drive

One final thing, and maybe this should have been first, before you can securely erase your files on your Mac, you need to know if you have a standard hard drive or an SSD. To find out, or at least to make sure, you click on the Apple menu and select “About this Mac”. Once there select the “Storage” tab to see which drive is in your system.
 
Last edited:
I'm assuming that something like the above, or using FileVault2 and THEN doing an erase and reinstall is necessary to ensure obliteration of all kinds of personal and financial and password data. With a nearly full 512 GB SSD just running FV2 takes a week or more to encrypt. Is a long time. Was thinking this might be much quicker and equally effective.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.