mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 11:55:33 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
37
tldr/windows/diskpart
Normal file
37
tldr/windows/diskpart
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user