Home
Operating System
Windows
Linux
Tutorial
Windows Server
About
☰
Shrink disk or drive with diskpart
# Manage Hard Drives, Partitions, and Volumes (DiskPart)
diskpart
📋 Copy
Copied!
# List the Disk
list disk
📋 Copy
Copied!
# Select Drives or Disk
select disk <number>
✏️ Edit
📋 Copy
Copied!
# List Partition
list partition
✏️ Edit
📋 Copy
Copied!
# List Partition
select partition <number>
✏️ Edit
📋 Copy
Copied!
# Shrink by 4 GiB ( = 4096 MiB)
shrink desired=4096
✏️ Edit
📋 Copy
Copied!
# Create new Partition with Unallocated Space
create partition primary size=4096
✏️ Edit
📋 Copy
Copied!
# Format new Partition as NTFS with label
format fs=ntfs label="DATA" quick
✏️ Edit
📋 Copy
Copied!
# List Volume
list volume
✏️ Edit
📋 Copy
Copied!
# Assign Drive letter to new Volume
assign letter=W
✏️ Edit
📋 Copy
Copied!
Labels
all
(31 )
autocad
(3 )
css
(2 )
linux
(5 )
op_system
(18 )
website
(4 )
windows
(14 )
windowsServer
(27 )