How to use the Diskpart Utility preparing to install Windows
Description: This article will show you how to how to use DiskPart while installing a fresh installation of Windows 10. This is helpful if your drive is not showing up in the Windows installation partition screen and you cannot format it in any other way. This type of situation can also come up when trying to do a clean installation on a working drive that has been previously used with different formatting than is currently being used. This tool offers a way to work around this type of situation.
- On the Windows installation screen, hold down Shift + F10 on the keyboard to bring up the command prompt window. In this example, you see a Windows 7 installation screen, but this process is the same for Windows 7, Windows 8, and Windows 10 to date.
- Type diskpart and then press enter on the keyboard.
- Type list disk and then press enter on the keyboard. This will show a list of numbered drives in the system starting at 0. Carefully check for the disk number that is to be cleaned.
- Type select disk followed by the number of the drive that is to be cleaned and then press enter on the keyboard - example: select disk 1 . There will be a confirmation message stating it is now the selected disk. Double check to be sure that this is the drive intended to be cleaned - a mistake at this point could easily wipe the wrong partition from the drive.
- Type clean and press enter on the keyboard. This will completely remove any data or formatting on the drive.
- Type create partition primary and then press enter on the keyboard. This will add a partition to the drive and make it accessible.
- Format the drive by typing format fs= followed by the file system you want to use. Current Windows computers use NTFS, other devices typically use either FAT32 or exFAT. Example: format fs=ntfs .
- Type assign and then press enter on the keyboard to assign a drive letter. The drive will now show up with a drive letter.
- Type exit and press enter on the keyboard. Your drive is now ready to use for installation.
Technical Support Community
Free technical support is available for your desktops, laptops, printers, software usage and more, via our new community forum, where our tech support staff, or the Micro Center Community will be happy to answer your questions online.