Published by


Brink's Avatar
Administrator

Posts: 25,183

Show Printable Version 


How to Shrink a Volume or Partition in Windows 10

information   Information
In Windows, you can decrease the space used by primary partitions and logical drives by shrinking them into adjacent, contiguous unallocated space on the same disk. This unallocated space could then be used to create a new simple volume (partition) on the disk.

This tutorial will show you different ways on how to shrink a volume or partition on a basic disk in Windows 10.

You must be signed in as an administrator to shrink a volume or partition.

CONTENTS:
  • Option One: Shrink Volume or Partition on Disk in Disk Management
  • Option Two: Shrink Volume or Partition on Disk in Command Prompt
  • Option Three: Shrink Volume or Partition on Disk in PowerShell





Shrink Volume or Partition in Windows 10 OPTION ONE Shrink Volume or Partition in Windows 10
Shrink Volume or Partition on Disk in Disk Management

1. Right click on the Start button to open the Win+X menu, and click/tap on Disk Management (diskmgmt.msc).

2. Right click or press and hold on the partition/volume (ex: "D") you want to shrink, and click/tap on Shrink Volume. (see screenshot below)
Note   Note
If Shrink Volume is grayed out, then it is not supported for the partition/volume.
Name:  Shrink_Volume_in_Disk_Management-1.jpg
Views: 106
Size:  101.4 KB

3. Type in how many MB you want to shrink the partition/volume by, and click/tap on Shrink. (see screenshot below)
Note   Note
You can compare the given Size of available shrink and Total size after shrink to help determine the amount of space you want to shrink this partition/volume by.

You can only shrink a partition/volume if it has enough free space.

1024 MB = 1 Gb
1024 GB = 1 TB
Name:  Shrink_Volume_in_Disk_Management-2.png
Views: 109
Size:  28.3 KB

4. If successful, you can now create a New Simple Volume with the Unallocated space if you like. (see screenshot below)

Name:  Shrink_Volume_in_Disk_Management-3.jpg
Views: 107
Size:  91.8 KB






Shrink Volume or Partition in Windows 10 OPTION TWO Shrink Volume or Partition in Windows 10
Shrink Volume or Partition on Disk in Command Prompt

1. Open an elevated command prompt or command prompt at boot.

2. Type the commands below one at a time into the command prompt, and press Enter after each command. Make note of the volume number (ex: "4") of the drive letter (ex: "D") you want to shrink. (see screenshot below)

diskpart

list volume

Name:  Shrink_Volume_in_command_prompt-1.jpg
Views: 104
Size:  63.6 KB

3. Type the commands below one at a time into the command prompt, and press Enter after each command. Make note of the maximum number of reclaimable bytes (ex: "1427659" MB) that you can shrink by. (see screenshot below)

select volume <number>

shrink querymax

Note   Note
Substitute <number> in the top command above with the actual volume number (ex: "4") you want to shrink from step 2 above.

For example: select volume 4
Name:  Shrink_Volume_in_command_prompt-2.jpg
Views: 103
Size:  80.4 KB

4. Type the command below you want to use into the command prompt, and press Enter. (see screenshot below)

(To shrink by maximum size allowed)
shrink

OR

(To shrink by specified size)
shrink desired=<size in MB>

Note   Note
Substitute <size in MB> in the command above with the actual size in MB (ex: "71680") you want to shrink the partition/volume (ex: "D") by. You will not be able to shrink the partition/volume more than the maximum number of reclaimable bytes given from step 3 above.

1024 MB = 1 Gb
1024 GB = 1 TB

For example: shrink desired=71680
Name:  Shrink_Volume_in_command_prompt-3.jpg
Views: 106
Size:  88.2 KB

5. When finished, you can close the elevated command prompt, or create a New Simple Volume with the unallocated space if you like.






Shrink Volume or Partition in Windows 10 OPTION THREE Shrink Volume or Partition in Windows 10
Shrink Volume or Partition on Disk in PowerShell

Note   Note
To see more usage options for the Resize-Partition command, see: Resize-Partition - Microsoft Docs

1. Open an elevated PowerShell.

2. Type the Get-Partition command into the elevated PowerShell, press Enter, and make note of the drive letter (ex: "D") of the partition/volume you want to shrink on a disk. (see screenshot below)

Click image for larger version. 

Name:	Shrink_Volume_in_PowerShell-1.png 
Views:	6 
Size:	48.1 KB 
ID:	159853

3. Type the command below into the elevated PowerShell, and press Enter. Make note of the supported SizeMin (minimum size) and SizeMax (maximum size) in bytes to resize the partition/volume. (see screenshot below)

Get-PartitionSupportedSize -DriveLetter <Drive Letter>

Note   Note
Substitute <Drive Letter> in the command above with the actual drive letter (ex: "D") you want to resize from step 2 above.

For example: Get-PartitionSupportedSize -DriveLetter D
Name:  Shrink_Volume_in_PowerShell-2.png
Views: 105
Size:  13.7 KB

4. Type the command below you want to use into the elevated PowerShell, and press Enter. (see screenshot below)

(To shrink by size in Bytes)
Resize-Partition -DriveLetter "<Drive Letter>" -Size <Size>

OR

(To shrink by size in KB)
Resize-Partition -DriveLetter "<Drive Letter>" -Size <Size>KB

OR

(To shrink by size in MB)
Resize-Partition -DriveLetter "<Drive Letter>" -Size <Size>MB

OR

(To shrink by size in GB)
Resize-Partition -DriveLetter "<Drive Letter>" -Size <Size>GB

OR

(To shrink by size in TB)
Resize-Partition -DriveLetter "<Drive Letter>" -Size <Size>TB

Note   Note
Substitute <Drive Letter> in the command above with the actual drive letter (ex: "D") you want to resize from step 2 above.

Substitute <Size> in the command above with the actual size (ex: "1327" in GB) you want to resize the partition/volume (ex: "D") by. You will not be able to resize the partition/volume more than the supported SizeMin (minimum size) and SizeMax (maximum size) given from step 3 above.

The left over space (SizeMax-resize) after resizing the partition/volume will be how much you shrink the partition/volume by for the unallocated space.

1000 Bytes = 1 KB
1024 KB = 1 MB
1024 MB = 1 Gb
1024 GB = 1 TB

For example: Resize-Partition -DriveLetter "D" -Size 1327GB
Name:  Shrink_Volume_in_PowerShell-3.png
Views: 104
Size:  11.7 KB

5. When finished, you can close the elevated PowerShell, or create a New Simple Volume with the unallocated space if you like.


That's it,
Shawn