The same with all previous versions, system C drive is running out of space on Windows Server 2019. You'd better expand C drive before it becomes full, otherwise, you'll encounter many problem such as server stuck and reboot unexpectedly. To extend partition on Windows Server 2019, there's a native tool - diskpart, which runs via command prompt. However, it is not recommended because of many limitations, it only works under particular condition.
To extend partition with diskpart on Windows Server 2019, your disk partition must meet all requirements below:
Follow the steps to extend C drive (system partition) with diskpart on Windows Server 2019:
Immediately, diskpart reports successfully extended the volume. Run list volume again, C drive is extended from 40GB to 110GB.
There's another shrink command in diskpart, why not shrink D to expand C drive? This is because diskpart can only extend a partition by deleting another one.
Type help extend in diskpart command prompt window, you'll see the syntax and limitation of extend command.
As you see, the free (Unallocated) space must be on the same disk and immediately follow the volume or partition with focus. If you shrink D to expand C drive with diskpart, you'll receive error "The size of the extend is less than the minimum". In fact, this error message is not accurate, maybe it's easier to understand if change the error message to "There's no contiguous free space".
After you shrink D drive with Diskpart shrink command, Unallocated space is generated on the right of D drive, so it is non-adjacent to C drive. Shrink command cannot make Unallocated space on the left side. This is the reason why you should delete the right contiguous drive (D:) before extending C drive with diskpart in Windows Server 2019.
As the screenshot shows above, diskpart extend command only supports NTFS partition, FAT32 and any other types of partitions can't be extended.
Diskpart command prompt only show you all partitions in a list with little information. If you open Server 2019 Disk Management, you'll see all disks with partition structure and other information such as used and free space of each partition. So you'll see clearly which partitions are on the same disk and how much free space can be shrank from and extended to other volume. However, Disk Management has same restrictions when shrinking and extending partitions.
Comparing with diskpart command and Disk Management, disk partition software is much easier and more powerful. You just need to drag and drop on the disk map to shrink and extend partition without deleting.
Download NIUBI Partition Editor and follow the steps to shrink and extend partition in Windows Server 2019:
Better than other disk partition software, NIUBI Partition Editor is much safer and faster because of the advanced technologies:
Besides shrinking and extending partitions, it helps do many other operations such as move, merge, convert, copy, defrag, hide, wipe, scan bad sectors.➤