When C drive is running out of space, many people want to extend C drive by adding free space from other partitions. If this can be done without losing data, nobody likes to waste a long time to start over. There's "extend volume" function in native Disk Management tool. Some people try to increase C drive space with this tool but failed, because "extend volume" is grayed out. This article explains why Disk Management is unable to extend C drive in Windows Server 2019 and what to do when you can't extend C drive in Server 2019/2022.
Why Disk Management cannot extend C drive in Windows Server 2019/2022
Firstly, you should know that Disk Management can only shrink and extend NTFS partition, FAT32 and other types of partitions are not supported. Because all system C: drive are formatted with NTFS file system by default, this is not an issue to system partition.
No adjacent unallocated space is the most common reason why you can't extend C drive in Server 2019/2022 with Disk Management.
The size of a physical disk is fixed. You can resize a partition, but you cannot decrease a 512GB disk to 256GB or increase it to 1TB. Therefore, before extending C drive, there must be "unallocated" space on the same disk. To get such space, you may either shrink or delete a partition on this disk. You won't lose files (in most cases) when shrinking partition with Disk Management. The problem is that Disk Management cannot extend this unallocated space to other partition.
Because "shrink volume" function in Disk Management can only make unallocated space on the right. With "extend volume" function in Disk Management, unallocated space can only be extended to the left contiguous partition.
As you see in the screenshot, I got 20GB unallocated space after shrinking D drive in my server. C drive is nonadjacent and E is on the right of this unallocated space. Hence, extend volume greyed out for both partitions.
If your system disk is MBR, there's another reason why Disk Management is unable to extend C drive in Windows Server 2019/2022.
Because it doesn't work to shrink D and extend C drive. Some people are wondering whether it's possible to enable extend volume option by deleting D. The answer is yes to GPT disk, but to MBR disk, it depends.
On MBR disk, the partitions that you want to delete and extend must be the same primary or logical. Because C drive is always primary, if D is logical, you still cannot extend C drive after deleting D in Disk Management.
After deleting a logical drive, the space will be changed to "Free" instead of "unallocated". To convert "Free" space to unallocated, you must delete all logical partitions and then delete the "Extended" partition.
In my server, if I want to extend C drive without any software, I must delete D and E drive. Obviously, this is not a good idea.
What to do when you are unable to extend C drive in Server 2019/2022
If you shrunk D (or E) drive and got nonadjacent unallocated space, you need to move partition D to the right and make unallocated space next to C drive. In some servers, there's another Recovery, EFI or OEM partition in the middle of C and D drive. In that case, you need to move these partitions to the right, too. The method to move these partitions are the same.
Steps when you can't extend C drive in Windows Server 2019/2022 after shrinking D/E:
- Download NIUBI Partition Editor, right click D: drive and select Resize/Move Volume.
- In the pop-up window, put the mouse pointer in the middle of D drive and drag towards right, then unallocated space will be moved to the left side.
- Right click C: drive and select Resize/Move Volume again, drag the right border towards right in the pop-up window, then unallocated space will be combined to C drive.
- Click Apply on top left to confirm and execute.
If you are unable to extend C drive in Server 2019/2022 after deleting logical partition D, follow the steps below:
- Recreate partition with the "Free" space in Disk Management.
- Delete or shrink this new volume with NIUBI Partition Editor.
- Right click C drive and run "Resize/Move Volume" to add unallocated space to C drive.
To NIUBI Partition Editor, there's no difference to resize NTFS and FAT32 partition, or resize primary and logical partition. Unlike Disk Management, NIUBI can make unallocated space on either left or right when shrinking a partition. Right click a partition (such as D:) and select "Resize/Move Volume", in the pop-up window you have 2 options.
Option 1: If you drag left border towards right or enter an amount in the box of "unallocated space before", then unallocated space will be made on the left.
Option 2: If you drag right border towards left or enter an amount in the box of "unallocated space after", then unallocated space will be made on the right.
This unallocated space can be combined to either adjacent NTFS or FAT32 partition directly. It also can be moved and combined to nonadjacent partition on the same disk. Learn how to move and merge unallocated space in Windows Server 2019.
Steps are the same no matter you use SSD, HDD, any types of hardware RAID or run the server in VMware/Hyper-V/Virtualbox.
Better than other tools, NIUBI Partition Editor has Virtual Mode, Cancel-at-will, 1-Second Rollback and Hot-Clone technology to protect your system and data. Besides shrinking, moving and extending partitions, it helps you do many other disk partition management operations.