2021-10-29 03:30:50 +01:00
|
|
|
# diskpart
|
|
|
|
|
|
|
|
> Disk, volume and partition manager.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/diskpart>.
|
2021-10-29 03:30:50 +01:00
|
|
|
|
|
|
|
- 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`
|