mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
78951c649c
Co-authored-by: Lena Pastwa <lena@lnps.me>
33 lines
540 B
Markdown
33 lines
540 B
Markdown
# 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`
|