{"id":24208,"date":"2019-02-06T16:05:13","date_gmt":"2019-02-06T21:05:13","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=24208"},"modified":"2019-02-06T16:08:42","modified_gmt":"2019-02-06T21:08:42","slug":"secure-erase-and-mojaves-disk-utility","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/02\/06\/secure-erase-and-mojaves-disk-utility\/","title":{"rendered":"Secure Erase and Mojave&rsquo;s Disk Utility"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2018\/12\/17\/cleaning-up-sensitive-files-how-to-sanitise-storage\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2018\/12\/17\/cleaning-up-sensitive-files-how-to-sanitise-storage\/\">\n<p>The snag is that Disk Utility won&rsquo;t overwrite an SSD&rsquo;s free space in the way that it does with hard disks. It pretends to offer the same three secure erase options, but in fact none of them does what the dialog says. Indeed, in Sierra they aren&rsquo;t even available, which is perhaps a little more honest.<\/p>\n<p>In Mojave, all three secure erase options offer is that the original APFS volume is completely deleted, with any Preboot and Recovery directories, and it is then added back as a new volume. This will destroy all APFS data about the original volume, but the file data for that volume will remain on the SSD. Although at present there appear to be no macOS utilities which can reconstruct such a removed volume, that situation will change in the future.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/eclecticlight.co\/2018\/12\/17\/disk-utility-18-0-mojave-not-exactly-the-truth\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2018\/12\/17\/disk-utility-18-0-mojave-not-exactly-the-truth\/\">\n<p>To perform the secure erase which it describes, you have to use the <code>diskutil<\/code> command in Terminal instead, using a command of the form<\/p>\n<pre>diskutil secureErase freespace 2 \/Volumes\/volumeName<\/pre>\n<p>which is an even slower process.<\/p>\n<p>Before using <code>diskutil secureErase<\/code>, you should read <code>man diskutil<\/code>, where Apple cautions:<\/p>\n<blockquote><p>This kind of secure erase is no longer considered safe. Modern devices have wear-leveling, block-sparing, and possibly-persistent cache hardware, which cannot be completely erased by these commands. The modern solution for quickly and securely erasing your data is encryption. Strongly-encrypted data can be instantly &ldquo;erased&rdquo; by destroying (or losing) the key (password), because this renders your data irretrievable in practical terms. Consider using APFS encryption (FileVault).<\/p><\/blockquote>\n<p>[&#8230;]<\/p>\n<p>It isn&rsquo;t possible to encrypt an existing APFS volume non-destructively using Disk Utility, and in some cases when attempting to erase and reformat a volume, Disk Utility returns &ldquo;an internal state error&rdquo; and fails to perform the operation.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2017\/10\/02\/high-sierras-disk-utility-does-not-recognize-unformatted-disks\/\">High Sierra&rsquo;s Disk Utility Does Not Recognize Unformatted Disks<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2017\/11\/29\/why-little-bugs-need-to-get-fixed\/\">Why Little Bugs Need to Get Fixed<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2015\/10\/13\/disk-utility-in-el-capitan\/\">Disk Utility in El Capitan<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: The snag is that Disk Utility won&rsquo;t overwrite an SSD&rsquo;s free space in the way that it does with hard disks. It pretends to offer the same three secure erase options, but in fact none of them does what the dialog says. Indeed, in Sierra they aren&rsquo;t even available, which is perhaps a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-02-06T21:05:16Z","apple_news_api_id":"90239990-55e1-4c25-b413-c64b1f88fd2f","apple_news_api_modified_at":"2019-02-06T21:08:46Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AkCOZkFXhTCW0E8ZLH4j9Lw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1395,538,30,1609,355,183],"class_list":["post-24208","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-file-system-apfs","tag-diskutility","tag-mac","tag-macos-10-14","tag-privacy","tag-ssd"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=24208"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24208\/revisions"}],"predecessor-version":[{"id":24212,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24208\/revisions\/24212"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=24208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=24208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=24208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}