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.

  1. 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.
    Windows installation screen
  2. Type diskpart and then press enter on the keyboard.
    command prompt, diskpart
  3. 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.
    command prompt, diskpart, list disk
  4. 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.
    command prompt, diskpart, select disk
  5. Type clean and press enter on the keyboard. This will completely remove any data or formatting on the drive.
    command prompt, diskpart, clean drive
  6. Type create partition primary and then press enter on the keyboard. This will add a partition to the drive and make it accessible.
    command prompt, diskpart, create partition on drive
  7. 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 .
    command prompt, diskpart, format drive
  8. Type assign and then press enter on the keyboard to assign a drive letter. The drive will now show up with a drive letter.
    command prompt, diskpart, assign a drive letter
  9. 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.


Ask questions and get answers from our technical support team or our community.
PC Builds
Help in Choosing Parts

Knowledge Base

Helpful articles written by Micro Center Experts.

Sign in for the best experience

Access helpful features and personalize your experience - Sign in or create an account now

Sign In
Don't have an account? Create Account