How to manage Drive Partitions with Diskpart in Windows 10

Description: This article will show how to manage drive partitions using diskpart in Windows 10.

This section talks about how to delete a partition using diskpart.

  1. Near the Start Button, type Command Prompt in the search box. Right click on Command Prompt
    and then choose Run as Administrator.
    Windows 10 desktop, search box, command prompt, run as administrator
  2. Type diskpart on the keyboard and then press enter.
    admin command prompt, diskpart
  3. Type list disk on the keyboard and then press enter.
    admin command prompt, diskpart, list disk
  4. Select the disk that you want to delete a partition from by typing select disk followed by the disk number. For example, if it is Disk 1, type select disk 1 and then press enter.
    admin command prompt, diskpart, select disk
  5. Type list partition and then press enter.
    admin command prompt, diskpart, list partition
  6. Select the partition that you want to delete by typing select partition followed by the partition number. For example, if it is Partition 2, type select partition 2 and then press enter.
    admin command prompt, diskpart, select partition
  7. Now type delete partition and then press enter. This will erase that specific partition of any formatting and data.
    admin command prompt, diskpart, delete partition

This section talks about how to extend a volume using diskpart.

  1. Near the Start Button, type Command Prompt in the search box. Right click on Command Prompt
    and then choose Run as Administrator.
    Windows 10 desktop, search box, command prompt, run as administrator
  2. Type diskpart on the keyboard and then press enter.
    admin command prompt, diskpart
  3. Type list volume on the keyboard and then press enter. This will display a list of all volumes that are attached to disk drives on your computer as well as their drive letters.
    admin command prompt, diskpart, list volume
  4. Select the volume that you want to extend by typing select volume followed by the volume number. In this example, there is a 16GB drive with two partitions - a 3GB partition with drive letter G and the rest is unallocated. Note that the unallocated partitions do not show as volumes on the list.
    admin command prompt, diskpart, select volume
  5. Type extend and then press enter. This merges the volume that you selected with any unallocated space positioned after it on the drive. Note that this will only extend into unallocated spece.If there is already a partition that has been formatted next to the one you are trying to extend, the command will fail.
    admin command prompt, diskpart, extend volume

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.

Forums

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

Knowledge Base

Helpful articles written by Micro Center Experts.
ESET
Windows

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