När C-enheten går tom för utrymme, många människor vill förläng C-frekvensomriktaren rather than recreating partitions and restoring from backup. There's "Extend Volume" function in native Disk Management tool. Some people try to öka C-utrymmet but failed, because "Extend Volume" är nedtonat. In this article, I'll explain why Disk Management is unable to extend C drive in Windows Server 2019/2022 and what to do when you can't extend C drive partition.
Varför kan inte förlänga C-enheten in Windows Server 2019/2022 Diskhantering
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, .
Inget intilliggande oallokerat utrymme is the most common reason why you can't extend C drive in Server 2019/2022 with Disk Management.
Storleken på en fysisk disk är fast. Du kan ändra storlek på en 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 på höger. With "Extend Volume" function in Disk Management, Unallocated space can only be extended to the vänster sammanhängande dela.
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 till båda partitionerna.
If your system disk is MBR, there's another reason why you cannot extend C drive in Windows Server 2019/2022 with Disk Management.
Because it doesn't work to krympa D och förläng C-drevet. Some people are wondering whether it's possible to aktivera Förläng volym by deleting D. The answer is yes on GPT disk, men till MBR-disk beror det.
On MBR disk, the partitions that you want to delete and extend must be the Samma Primary or Logical. Because C drive is always Primary, if D is logisk, 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 flytta partition D till höger and make Unallocated space contiguous 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.
Steg när du inte kan förlänga C drive in Windows Server 2019/2022 after shrinking D:
- Download NIUBI Partition Editor, högerklicka D: kör och välj "Resize/Move Volume".
- Dra i popup-fönstret mitten of D drive towards right, then Unallocated space will be moved to the left side.
- Högerklicka på C: kör och välj "Resize/Move Volumedra igen höger gräns towards right in the pop-up window, then Unallocated space will be combined to C drive.
- Klicka Apply uppe till vänster för att bekräfta och köra.
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"till lägg till oallokerat utrymme på C-enheten.
Till 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.
Alternativet 1: Om du drar vänster gräns mot höger eller ange ett belopp i rutan med "Unallocated space before", då kommer Oallokerat utrymme att skapas till vänster.
Alternativet 2: Om du drar höger gräns mot vänster eller ange ett belopp i rutan med "Unallocated space after", då kommer Oallokerat utrymme att skapas på höger.
This Unallocated space can be combined to either adjacent NTFS or FAT32 partition directly. It also can be moved to combined to nonadjacent partition on the same disk. Learn how to flytta och slå samman oallokerat utrymme 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.
Bättre än andra verktyg, NIUBI Partition Editor has Virtual Mode, Cancel-at-well, 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.