Hyper-V is a widely used virtualization platform, and many Windows servers run on it. Just as with a physical server, the C: drive in a virtual machine can run out of space. Many people ask whether there is any difference when resizing a virtual partition in Hyper-V, and whether it is safe to extend the C drive in Windows Server 2016/2019/2022 on Hyper-V. This article explains how to resize and extend a partition in Windows Server 2016/2019/2022 running on Hyper-V without losing data.

How to Resize Partition in Hyper-V Without Third-Party Software
Open Windows Server 2016/2019/2022 in Hyper-V, right-click the Windows Start button on the taskbar, and then click Disk Management from the list.
Right-click a partition, and you will see the available options. Among them, "Shrink Volume" and "Extend Volume" are used to adjust the partition size without losing data in most cases. Both functions only support NTFS partitions; FAT32 and any other types of partitions cannot be shrunk or extended.
Most partitions in a Windows server are formatted with the NTFS file system by default. However, Disk Management still cannot help you extend a partition by shrinking another one because:
- The "Shrink Volume" function can only decrease an NTFS partition and create unallocated space on the right side.
- The "Extend Volume" function can only extend an NTFS partition when there is adjacent unallocated space on the right side.
The unallocated space freed up by shrinking the D drive is not adjacent to the C drive. Therefore, Disk Management cannot extend the C drive in Hyper-V. You can only resize a partition without third-party software when you want to shrink an NTFS partition to create a new volume, or extend an NTFS partition by deleting the adjacent volume on its right.
- How to Shrink Volume With Server 2016 Disk Management
- How to Extend Volume With Server 2016 Disk Management
To extend the C drive in Windows Server 2016/2019/2022 on Hyper-V without losing data, only third-party software can help you. However, it is highly recommended to back up your data in advance and choose safe software; otherwise, there is a potential risk of system and partition damage. Unlike many other tools, NIUBI Partition Editor features innovative technologies to protect your system and data, such as:
- Virtual Mode - All operations will be listed as pending for preview; real disk partitions won't be changed until you click "Apply" to confirm.
- Cancel-at-will - If you applied incorrect operations, you can cancel the ongoing operations without damaging partitions.
- 1-Second Rollback - If any known error is detected while resizing a partition, it automatically reverts the server to its original status instantly.
- Hot Clone - Clone disk partitions without server interruption; you can clone the system disk before any operations or regularly as a backup.
How to Extend C Drive in Windows Server on Hyper-V
To extend the C drive in Windows Server 2016/2019/2022 on Hyper-V, first check if there is free space in the D drive or another partition on the same virtual disk. If there is, the process is very easy. Shrink this partition with NIUBI Partition Editor to convert part of its free space into "unallocated" space, and then add this unallocated space to the C drive. After resizing the partitions, the Operating System, programs, Windows services, and everything else will remain exactly the same as before, except for the partition size.
Steps to Extend C Drive in Hyper-V Windows Server 2016/2019/2022:
- Download NIUBI Partition Editor and install it on the Hyper-V virtual server.
- Right-click the adjacent partition on the right (D:) (or E: on some servers) and select "Resize/Move Volume". Drag the left border towards the right in the pop-up window, or enter an amount in the "Unallocated space before" box.
- Right-click the system partition C: and select "Resize/Move Volume" again. Drag the right border towards the right to combine the unallocated space in the pop-up window.
- Click Apply on the top left to execute. (If you did something wrong, simply click Undo to cancel the pending operation.)
If you want to free up space from any non-adjacent volume, there is an additional step required to move the unallocated space next to the C drive.
How to Extend Hyper-V Partition When Virtual Disk Is Full
On a physical server, if the system disk is full, you have to clone it to a larger one and then extend the partition with the extra disk space. However, it is much easier in Hyper-V.
- Follow the steps to expand the Hyper-V virtual disk. After that, the additional space will be shown as unallocated at the end of the original virtual disk.
- Follow the steps to combine the unallocated space into the partition that you want to extend.
Besides shrinking and extending partitions in Windows Server 2016/2019/2022 on Hyper-V, NIUBI Partition Editor helps you copy, convert, merge, defrag, hide, and wipe partitions, as well as scan for bad sectors and much more.

