Use of Diskpart to Format Clean or Wipe Clean All Partitions on a Drive Before Windows Installation

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=KcA2FxT59xs



Duration: 9:38
23,052 views
129


This video will instruct in using either the Dell Data Wipe utility included in the Dell UEFI BIOS or the command line based utility Diskpart included in the Windows Installation Media to remove the partition table on a drive before Windows installation. This is required when the Windows Installation Media cannot recognise the partition table after switching from a Legacy Boot to a UEFI Boot or vice-versa usually with the following error messages:

"Windows cannot be installed to this disk. The selected disk has an MBR partition table. One EFI systems, Windows can only be installed to GPT disks."

"Windows cannot be installed to this disk. The selected disk is of the GPT partition style."

This may also address the following error however the following error commonly displays when the installation media is corrupt or lacks the storage controllers required to read the internal drive (common with Windows 7 installation media as Microsoft never incrementally updated the installation media with driver support):

"We couldn't create a new partition or locate an existing one. For more information, see the Setup log files"

Contents:
01:15 Entering the UEFI BIOS Setup (Press F2 at power up on a Dell PC)
01:23 Removing old Boot Entries and configuring your SATA Operation
02:17 Dell Data Wipe (Late 2015 Systems or Newer).
04:40 Booting using Windows Installation Media (F12 at Power up on a Dell PC)
04:50 Launching the Command Prompt from Windows Installation Media (Press Shift + F10)
05:23 Use of Diskpart to Format (clean) or Wipe (clean all) a Drive

Diskpart commands:
diskpart
list disk
select disk 0 (or relevant disk number)
clean
clean all

Note: it is better to use a data wipe routine designed for a SSD for a SSD due to the speed of wiping each cell collectively instead of individually and due to the fact that it is less intensive on a SSD. For this reason I start with Dell Data Wipe and then move onto Diskpart demonstrating both clean and clean all. Dell Data Wipe is the preferred method however not all computers have Data Wipe in the UEFI BIOS Setup.

SSDs have limited write cycles, the SSD Endurance of a Crucial BX500 for example is specified by Crucial to be 360 TB meaning 360 TB of data can be written to the SSD before it begins to fail. Using diskpart clean all will intensively write 0s to each cell of the SSD. If for arguments sake the SSD is a 1 TB SSD, then clean all (1 pass) will write 1 TB of data to it albeit all the data will be zeros. Therefore running clean all (360 passes) on a BX500 SSD may bring the SSD towards the end of its life cycle.

Windows Feedback for Microsoft to improve Diskpart to better support SSDs (please upvote and leave a comment):
https://aka.ms/AAdd77f

Lenovo systems have Securely Erase HDD Data (works for SSDs) under Security within their UEFI BIOS Setup (requires a temporary drive password to be set):
https://www.youtube.com/watch?v=VsP-A2ZM8t0&ab_channel=PhilipYip

Microsoft Surfaces Devices use the Surface Eraser Bootable USB:
https://www.youtube.com/watch?v=fUazixELnDE&ab_channel=PhilipYip

If your system is too old to have a Data Wipe Utility embedded in the UEFI BIOS Setup. The Parted Magic Utility can be used to make a UEFI Bootable USB and can be used to invoke a more appropriate data wipe routine for a SSD:
https://www.youtube.com/watch?v=kqHp500g0tw&ab_channel=PhilipYip

#Wipe #Format #Partition




Other Videos By Philip Yip


2021-12-14Dell Firmware Update to TPM Version 2.0 or Downgrade to TPM Version 1.2 (OptiPlex 7050)
2021-12-12winget The Windows Command Line Package Manager
2021-12-09Windows 11 Direct ISO Download Link (UEFI Bootable USB with Intel VMD and Dell Driver Pack)
2021-11-30Installing Windows 11 OEM on a Dell XPS 13 9305 (Intel 11th Gen) UEFI BIOS, Secure Boot, TPM
2021-11-11Elegoo Arduino Uno IDE Installation on Zorin OS 16 (Ubuntu 20.04 LTS Based)
2021-08-30Zorin OS 16 Linux Installation on a Dell XPS 13 9365 2 in 1 Convertible Touchscreen Device
2021-08-28Windows 11 System Requirements PC Check (Updated)
2021-08-22Downloading the Windows 11 ISO, Making a UEFI Bootable USB and Clean Installing on a Dell PC
2021-08-11Securely Wiping a Microsoft Surface using the Microsoft Surface Data Eraser
2021-08-08Install DeepIn 20.2.2 on Windows 11 Pro Hyper-V VM with UEFI BIOS and Secure Boot Full Screen
2021-08-06Use of Diskpart to Format Clean or Wipe Clean All Partitions on a Drive Before Windows Installation
2021-08-05Screen Recording within the UEFI BIOS Setup and within Windows 11
2021-08-04Downloading a Windows 11 Insider Preview ISO, making a UEFI Bootable USB and Installation on a Dell
2021-07-15Install Ubuntu 20.04 LTS on Windows 11 Pro Hyper-V VM with UEFI BIOS and Secure Boot MOK Full Screen
2021-07-10Windows 11 Snap, Multi-Tasking and Multiple Monitors Feedback
2021-06-25Windows 11 Elevated System Requirements
2021-06-21Hexadecimal Colour Encoding Explanation using a Red, Green, Blue LED
2021-06-20A Clean Install of Zorin Linux 16 Beta (Dell UEFI BIOS with Secure Boot and MOK)
2021-06-18Python Object Orientated Programming (Spyder 5 IDE)
2021-06-13Python Code Blocks and Debugging (Spyder 5 IDE)
2021-06-10Python Procedural Programming (Spyder 5 IDE)