snipt

Ctrl+h for KB shortcuts

Bash

osx > securely erase drive

1
2
3
4
5
6
7
8
9
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.1 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   
$ diskutil secureErase 3 disk0
https://snipt.net/embed/e37080b9a2e1fd8be2e29513c9be4475/
/raw/e37080b9a2e1fd8be2e29513c9be4475/
e37080b9a2e1fd8be2e29513c9be4475
bash
Bash
10
2019-07-16T10:33:29
True
False
False
Mar 04, 2016 at 01:14 PM
/api/public/snipt/144568/
osx-securely-erase-drive
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a> <a href="#L-9">9</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ diskutil list </span><span id="L-2"><a name="L-2"></a>/dev/disk0 <span class="o">(</span>internal, physical<span class="o">)</span>: </span><span id="L-3"><a name="L-3"></a> <span class="c1">#: TYPE NAME SIZE IDENTIFIER</span> </span><span id="L-4"><a name="L-4"></a> 0: GUID_partition_scheme *251.0 GB disk0 </span><span id="L-5"><a name="L-5"></a> 1: EFI EFI 209.7 MB disk0s1 </span><span id="L-6"><a name="L-6"></a> 2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2 </span><span id="L-7"><a name="L-7"></a> 3: Apple_Boot Recovery HD 650.0 MB disk0s3 </span><span id="L-8"><a name="L-8"></a> </span><span id="L-9"><a name="L-9"></a>$ diskutil secureErase <span class="m">3</span> disk0 </span></pre></div> </td></tr></table>
drive, erase, format, osx
--- 
+++ 
@@ -0,0 +1,9 @@
+$ diskutil list
+/dev/disk0 (internal, physical):
+   #:                       TYPE NAME                    SIZE       IDENTIFIER
+   0:      GUID_partition_scheme                        *251.0 GB   disk0
+   1:                        EFI EFI                     209.7 MB   disk0s1
+   2:          Apple_CoreStorage Macintosh HD            250.1 GB   disk0s2
+   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
+   
+$ diskutil secureErase 3 disk0
  • somlor
  • 3 years, 4 months ago