If you want to repartition your partitions, you may need to shrink the partitions. This page is about how to shrink partition with CMD diskpart for totally free.
Here is a comparison table between CMD DiskPart and Partition Resizer. While DiskPart can shrink volumes, it has several limitations. See the table below for more details.
Finding DiskPart difficult to use and limited in functionality? Try the free tool Partition Resizer, which offers an easy-to-use interface and can shrink partitions beyond the limitations of DiskPart on Windows 11, 10, Server 2019, 2022, 2025, and more.
Note: Shrinking partition won't lose data no matter using Windows built-in tools Disk Management or Diskpart, or a third party tool Partition Resizer.
cmd
(Admin)diskpart
list volume
select volume X
shrink desired=10240
Note: When Diskpart cannot shrink a partition, try the free tool Partition Resizer, which offers more flexibility with a user-friendly interface.
Video - how to shrink volume using cmd
Possible error messages when cannot shrink volume using Diskpart:
defrag /x C:
)convert X: /fs:ntfs
) or use a free tool like Partition Resizer.powercfg -h off
) or move pagefileshrink querymax
to check limitschkdsk /f
and sfc /scannow
shrink querymax
before shrinking.
Partition Management shrink note:
You cannot shrink a volume beyond the point where any unmovable files are located. See the "defrag" event in the Application log for detailed information about the operation when it has completed.
powercfg -h off
, defrag /x /v C:
chkdsk /f /r
, sfc /scannow
shrink desired=
with smaller MBattributes disk clear readonly
defrag /x /v C:
powercfg -h off
chkdsk /f
shrink desired=10240
Using the IM-Magic Partition Resizer Free Edition to shrink partition guarantees against any data loss. While there are so many software programs out there promising the same thing, this does what it says. To use IM-Magic, first get it installed on your computer, then launch the software. All your partitions will be shown, then click on the particular one to shrink and click ‘Resize/Move’. Then drag the arrows to the desired place you want to shrink the disk to.
Video1: Shrink D/E to extend C
Also read: How to shrink D extend C
Video2: Shrink C extend D or E
For Windows 11/10/8/7 => Download Partition Resizer Free [100% Free]
For Windows Server 2025-2003 => Download Partition Resizer Server [Free Demo]
Also read: how to shrink C extend another drive
[Guide] Steps to extend volume without data loss
This step by step guide will show you the right way to extend any volume.
Step-1 Download, install, and launch the program.
Step-2 Right click the large volume to produce unallocated free space.
Steps to resize your partition when you can not extend volume
Step-3 Then right click c and drag the border to acquire the free space.
Steps to resize your partition when you can not extend volume
Step-4 Apply the changes.
Question: Does Diskpart shrink delete data?
No, using Diskpart to shrink a volume does not delete existing data on the partition. However, if the disk volume contains unmovable files—usually created by the operating system—it may not be possible to shrink the volume using Windows' built-in tools. Always back up your data before performing disk operations to prevent accidental loss.
Partition Resizer is a free tool that can shrink a volume without data loss more easily, thanks to its user-friendly interface. Additionally, it offers free partition copying and disk cloning features.
Question: How to partition a disk without losing data in Windows 11/10?
You can partition a disk without losing data in Windows 11/10 using built-in tools like Disk Management or Diskpart. Here’s how:
This method does not affect the data on the existing partition, but backing up data beforehand is still recommended. If it's not easy to follow the Diskpart or Disk Management, try free tool Partition Resizer.
Other related articles that you may want to read
How to shrink D and extend c drive, or Shrink D extend c on Windows Server