Resize hard drive partition Windows Server 2012/2016/2019

by John, Updated on: November 16, 2024

This article introduces how to resize hard drive partition in Windows Server 2012/2016/2019/2022, 3 ways to resize Windows server partition without losing data.

1. Resize hard drive partition with Diskpart cmd

When resizing hard drive partition in Windows Server 2012 an other versions, there are Windows inbuilt tools and third party partition editor software. Diskpart is integrated from Windows XP and works via command prompt. Disk Management added "Shrink Volume" and "Extend Volume" functions from Windows 7, it works with graphical interface.

How to resize hard drive partition in Windows Server 2012/2016/2019/2022 with Diskpart:

To shrink partition with Diskpart:

  1. Press Windows and R on the keyboard, type diskpart and press Enter.
  2. Type list volume and press Enter in Diskpart command prompt window, then you'll see all partitions.
  3. Type select volume X and press Enter, X is drive letter or number of the partition that you want to shrink.
  4. Type shrink desired=XX and press Enter. XX is the amount of space to shrink (in MB).

To extend partition with Diskpart:

  1. Type select volume D and press Enter. (D is the letter or number of the adjacent partition on the right)
  2. Type delete volume and press Enter.
  3. Type select volume C and press Enter. (C is the letter or number of the partition that you want to expand)
  4. Type extend and press Enter.

Disadvantages of diskpart to resize Windows server partition:

2. Adjust hard drive size with Disk Management

Diskpart is easy and fast, but it doesn't show disk partition structure or any unallocated space, so there's trouble if you do not know all disk partition structure and other information clearly. Better than Diskpart, the GUI Disk Management tool display all single partitions with detailed parameters on the top, it also shows a disk with partition structure on the bottom. However, Disk Management has the same restrictions with diskpart when resizing disk partitions.

How to resize hard drive partition in Server 2012/2016/2019/2022 with Disk Management:

To shrink a volume:

  1. Press Windows and X on keyboard, then click Disk Management in the list.
  2. Right click a NTFS partition and select "Shrink Volume".
  3. All available space is given by default, click "Shrink" button to execute or enter a smaller amount by yourself.

To extend a volume:

  1. Right click the NTFS partition with adjacent unallocated space on the right, and select "Extend Volume".
  2. Available disk and space is selected by default, click "Next" to continue.
  3. Click "Finish" to confirm and execute.

If there is no required unallocated space, you have to delete the right contiguous partition.

Transfer files before deleting. Do not delete the partition with programs and Windows services.

3. Resize drive volume with partition editor software

Comparing with Windows inbuilt tools, NIUBI Partition Editor is much more powerful, it is able to:

Download NIUBI Partition Editor and follow the steps in the video to resize hard drive partition in Windows Server 2012/2016/2019/2022.

How to extend C: drive by resizing other partitions:

Video guide

How to extend D: drive by resizing other partitions:

Video guide

In summary

Besides resizing partition in Windows Server 2012/2016/2019/2022 and previous Server 2003/2008, NIUBI Partition Editor helps you do many other disk/partition management operations.

Download