summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2020-08-31 15:01:59 +0100
committerbreadcat2020-08-31 15:01:59 +0100
commit9f9af77ead3a2e013654ab2f24c4f54dd52a27af (patch)
tree06f3f2753b4300c43f92f1ab28bf037a8495562c
parentcfaaf7c4c232f6adb15f96cffa222bdb5f9e9d4c (diff)
downloadblog.minskio.co.uk-9f9af77ead3a2e013654ab2f24c4f54dd52a27af.tar.gz
blog.minskio.co.uk-9f9af77ead3a2e013654ab2f24c4f54dd52a27af.tar.bz2
blog.minskio.co.uk-9f9af77ead3a2e013654ab2f24c4f54dd52a27af.zip
New post
-rw-r--r--content/posts/zeroing-drive-on-windows.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/content/posts/zeroing-drive-on-windows.md b/content/posts/zeroing-drive-on-windows.md
new file mode 100644
index 0000000..dbab561
--- /dev/null
+++ b/content/posts/zeroing-drive-on-windows.md
@@ -0,0 +1,26 @@
+---
+title: "Zeroing out a drive on Windows"
+date: 2020-08-28T20:34:00
+tags: ["Guides", "Servers", "Snippets", "Software", "Windows"]
+---
+
+Recently I sold a couple more of the hard drives that made up my SnapRAID array back when I had a Linux powered home server. Wanting to check over the drives one last time for SMART info, and bad sectors I noticed I hadn't wiped the drive, and there were still readable files and partitions there.
+
+Previously, I did this all via a USB3 dock on my Linux laptop using `dd`, but today we're on a Windows desktop, so let the adventure commence!
+
+The command we want to run, in an elevated command prompt is:
+```
+format g: /fs:NTFS /p:1
+```
+In this example, we're formatting drive **G**. The `/p` parameter here is what's doing the zeroing, indicating the number of passes.
+
+Now to **fully** clean a drive, after the above you can wipe the partition table from the disk by running:
+```
+start > run > cmd
+diskpart
+list disk
+select disk 1
+clean
+```
+
+And you're done. \ No newline at end of file