{"id":1182,"date":"2024-10-06T14:52:40","date_gmt":"2024-10-06T20:52:40","guid":{"rendered":"https:\/\/fallingstuff.net\/blog\/?p=1182"},"modified":"2025-10-24T05:00:45","modified_gmt":"2025-10-24T11:00:45","slug":"diskpart-how-clean-is-clean-part1","status":"publish","type":"post","link":"https:\/\/fallingworks.com\/blog\/2024\/10\/06\/diskpart-how-clean-is-clean-part1\/","title":{"rendered":"Diskpart &#8211; How Clean is Clean?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">BEFORE <a href=\"https:\/\/digitalstuffy.com\/officehours\/2021\/02\/02\/new-pc-who-dis\/\">selling or throwing away a machine<\/a> I cleaned the drive. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Building onto <a href=\"https:\/\/gotchtech.com\/2022\/04\/26\/diskpart-parting-the-disk\/\" data-type=\"URL\">Parting the Disk<\/a> we can see how DiskPart might be applied to clean up drives BEFORE selling or throwing away a machine. I did not have a machine convenient to test the cleaning of drives, but I DID have a Windows 10 Install USB, so that will have to do for the purposes of this test&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, looking at the drive in explorer there are files present. I am going to skip the highly technical part where &#8216;files in explorer we see are pointers to the actually data&#8221; in favor of &#8220;deleting the picture does not make the file disappear completely. To prove that the files are not actually removed, I am going to look at the drive in a hex editor which will show the bits on the drive, the actual data and more than the picture in the file explorer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"308\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1.png\" alt=\"\" class=\"wp-image-2616\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1.png 751w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1-300x123.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><figcaption class=\"wp-element-caption\">Start off with files like this here<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_00_31-1024x557-1.png\" alt=\"\" class=\"wp-image-2617\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_00_31-1024x557-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_00_31-1024x557-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_00_31-1024x557-1-768x418.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Under a Microscope (Hex Editor)<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_01_59-Window-1024x555-1.png\" alt=\"\" class=\"wp-image-2619\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_01_59-Window-1024x555-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_01_59-Window-1024x555-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_01_59-Window-1024x555-1-768x416.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">And another &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_03_49-Window-1024x554-1.png\" alt=\"\" class=\"wp-image-2620\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_03_49-Window-1024x554-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_03_49-Window-1024x554-1-300x162.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_03_49-Window-1024x554-1-768x416.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">And a third &#8230;<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we see we have files and data, so now comes DiskPart and use the clean command, and see what we have left in the same spots as before &#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_10_17-Window-1024x554-1.png\" alt=\"\" class=\"wp-image-2622\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_10_17-Window-1024x554-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_10_17-Window-1024x554-1-300x162.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_10_17-Window-1024x554-1-768x416.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">First spot, still stuff &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_07-1024x556-1.png\" alt=\"\" class=\"wp-image-2623\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_07-1024x556-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_07-1024x556-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_07-1024x556-1-768x417.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Second position &#8230; still here &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_37-1024x555-1.png\" alt=\"\" class=\"wp-image-2624\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_37-1024x555-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_37-1024x555-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_11_37-1024x555-1-768x416.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Third position &#8230; yep, there is still stuff here too &#8230;<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So, even after &#8216;cleaning&#8217; the drive the bits are still present, which means that even though we do not see files when we look at the drive in Explorer, they can be put together some way. Now for giggles, we know that if we create a partition now on this &#8220;empty&#8221; drive there will be no files &#8230; but will the data still exist that could be recovered? Again, we DiskPart and this time run the commands to Create Partition Primary. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_16_23-Window-1024x552-1.png\" alt=\"\" class=\"wp-image-2625\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_16_23-Window-1024x552-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_16_23-Window-1024x552-1-300x162.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_16_23-Window-1024x552-1-768x414.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">This looks just a little bit different &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_14-Window-1024x551-1.png\" alt=\"\" class=\"wp-image-2626\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_14-Window-1024x551-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_14-Window-1024x551-1-300x161.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_14-Window-1024x551-1-768x413.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">This one looks really similar &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_56-1024x556-1.png\" alt=\"\" class=\"wp-image-2627\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_56-1024x556-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_56-1024x556-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-06-06_17_56-1024x556-1-768x417.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">&#8230; and so does this one &#8230;<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">From the looks of it, part of the data looks different &#8211; meaning the files are &#8220;missing&#8221;, but the actual bits of the data are still left behind. This means that the bits could be recovered and the files put back together &#8230; not a great cleaning method. Maybe there is another way the drive could REALLY be cleaned &#8230; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Looking at the drive in explorer there are files present. I will still skip going into the highly technical part where \u2018files in explorer we see are pointers to the actually data\u201d in favor of \u201cdeleting the picture does not make the file disappear completely. To prove that the files are not actually removed, I am going to look at the drive in a hex editor which will show the bits on the drive, the actual data and more than the picture in the file explorer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"308\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1-1.png\" alt=\"\" class=\"wp-image-2628\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1-1.png 751w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-17-18_42_06-DELLRESTORE-H_-1-1-300x123.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><figcaption class=\"wp-element-caption\">Start off with files like this here<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"548\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-18_58_33-Window-1024x548-1.png\" alt=\"\" class=\"wp-image-2703\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-18_58_33-Window-1024x548-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-18_58_33-Window-1024x548-1-300x161.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-18_58_33-Window-1024x548-1-768x411.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Under a Microscope (Hex Editor)<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_27_05-Window-1024x554-1.png\" alt=\"\" class=\"wp-image-2704\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_27_05-Window-1024x554-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_27_05-Window-1024x554-1-300x162.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_27_05-Window-1024x554-1-768x416.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">And another \u2026<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_30_49-1024x556-1.png\" alt=\"\" class=\"wp-image-2705\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_30_49-1024x556-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_30_49-1024x556-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-19_30_49-1024x556-1-768x417.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">And a third \u2026<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we see we have files and data, so now comes DiskPart and use the cleanall command, and see what we have left in the same spots as before \u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_35_49-1024x557-1.png\" alt=\"\" class=\"wp-image-2706\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_35_49-1024x557-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_35_49-1024x557-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_35_49-1024x557-1-768x418.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">This looks a little different &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_39_01-1024x556-1.png\" alt=\"\" class=\"wp-image-2707\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_39_01-1024x556-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_39_01-1024x556-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_39_01-1024x556-1-768x417.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Whoa, nothing here &#8230;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_43_38-1024x557-1.png\" alt=\"\" class=\"wp-image-2708\" srcset=\"https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_43_38-1024x557-1.png 1024w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_43_38-1024x557-1-300x163.png 300w, https:\/\/fallingworks.com\/blog\/wp-content\/uploads\/2024\/10\/2022-01-05-20_43_38-1024x557-1-768x418.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Nothing here either &#8230;<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Judging by the fact that there is a whole lot of zeros there, the drive is clean and data irretrievable, so if I did want to save something off there &#8230; I cannot anymore. For now, this wraps up my ranting about DiskPart and how it can clean up files you do not want people to find. I wanted to look at this myself for a while, and hopefully it helped out and now second-hand drives will be clean from now on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>BEFORE selling or throwing away a machine I cleaned the drive. Building onto Parting the Disk we can see how DiskPart might be applied to clean up drives BEFORE selling or throwing away a machine. I did not have a machine convenient to test the cleaning of drives, but I DID have a Windows 10 &hellip; <a href=\"https:\/\/fallingworks.com\/blog\/2024\/10\/06\/diskpart-how-clean-is-clean-part1\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Diskpart &#8211; How Clean is Clean?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bluesky_dont_syndicate":"","_bluesky_syndication_accounts":"","_bluesky_syndication_text":"","footnotes":"","_share_on_mastodon":"0"},"categories":[42,46],"tags":[],"class_list":["post-1182","post","type-post","status-publish","format-standard","hentry","category-hardware","category-software"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/posts\/1182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/comments?post=1182"}],"version-history":[{"count":5,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/posts\/1182\/revisions"}],"predecessor-version":[{"id":2709,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/posts\/1182\/revisions\/2709"}],"wp:attachment":[{"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/media?parent=1182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/categories?post=1182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fallingworks.com\/blog\/wp-json\/wp\/v2\/tags?post=1182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}