System Grab Bag

View all TLDR pages from Windows (or from all pages)

diskpart

Disk, volume and partition manager. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/diskpart.
  • Run diskpart by itself in an administrative command prompt to enter its command-line:
    diskpart
  • List all disks:
    list disk
  • Select a volume:
    select volume {{volume}}
  • Assign a drive letter to the selected volume:
    assign letter {{letter}}
  • Create a new partition:
    create partition primary
  • Activate the selected volume:
    active
  • Exit diskpart:
    exit

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.