Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Site. v2.4.L: tip204 tips mac owen2 
Tip

Discuss   Up to OJB's Mac Tips List

Secure Erase Options

To secure erase when that option isn't available in Disk Utility.
For example, for SSDs.
Boot from another disk or recovery mode.
Erase the disk encrypted, with a complex key.
Fill the disk with zeros.
Erase it again, without encryption or with a different key.

Options to fill with zeros

If it is available, use mkfile, otherwise use dd...

mkfile SIZE FILE
Example: mkfile 200G File1
dd if=/dev/zero of=FILE bs=BLOCKSIZE count=BLOCKS
Example: dd if=/dev/zero of=File1 bs=1024 count=1000000
Warning: don't make bs too small or the process will be very slow.

Related Tips

Secure Erase from El Capitan
Secure Erase SSD
Erase a Disk from Terminal





My latest blog post: Think for Yourself: In the end, everything is just an opinion. Be skeptical, and think for yourself! (posted 2026-04-25).

My latest podcast: OJB's Podcast 2026-04-14 How Far is that Star?

If you're not sure what to view from my site, here are some suggestions: My Latest Airshow Report, My Favourite Wines and Beers, An Interesting Astronomical Observation, See Some Photos, Read Some Mac Tips.


Site News (Mobile): OJB's web site, v 2.4 which has major changes, and possibly errors! Please report anything to ojb@mac.com.