Resize/Extend C Partition in Hyper-V Windows Server 2016

avtor John, Posodobljeno: 28. julija 2022

Hyper-V is common used virtual machine tool and many Windows server are running from it. The same with physical server, C: drive in virtual machine is getting full. Many people ask whether there's any difference when spreminjanje velikosti navidezne particije v Hyper-Vin ali je to varno podaljšajte sistemski pogon C v Hyper-V tek Windows Server 2016/2019/2022. This article introduces how to resize and extend Hyper-V partition in Server 2016 with both Windows domorodna in zunanja orodja.

Kako spremeniti velikost particije v Hyper-V brez programske opreme

Odprto Windows Server 2016 v Hyper-V pritisnite Windows in X skupaj na tipkovnici in nato kliknite disk za upravljanje na seznamu.

Right click a partition, you'll see some options. Among them, "Shrink Volume" and "Extend Volume" is used to prilagodite velikost particije without losing data (in most cases). Both functions only support NTFS partition, FAT32 and any other types of partitions cannot be shrunk or extended.

Večina particij v Windows Strežnik 2016 je formatiran s NTFS file system by default, but Disk Management still cannot help you extend a partition by shrinking another one, because:

Unallocated space that shrunk from D drive is nonadjacent to C. Therefore, Disk Management cannot help you extend C drive in Hyper-V by shrinking other volume. Only when you want to shrink a NTFS to create new volume, or extend a NTFS partition by deleting the right contiguous volume, you can resize partition without any software.

Če želite extend partition C in Hyper-V by shrinking another one without losing data, only 3rd-party software can help you. However, you'd better back up in advance and run safe partition software. Otherwise, there's potential system and partition damage tveganje. Boljše od drugih orodij, NIUBI Partition Editor ima inovativne tehnologije za zaščito sistema in podatkov, kot so:

How to extend C drive in Hyper-V Windows Server 2016

To extend C drive in Hyper-V running Windows Server 2016, firstly, check there's free space in D other partition on the Enako virtualni disk. Če je odgovor da, je zelo enostavno. S to particijo skrčite NIUBI Partition Editor, se bo del prostega prostora pretvoril v Nerazporejen, nato pa dodajte ta nerazporejeni prostor na pogon C. Po spreminjanju velikosti particij, operacijskega sistema, programov, Windows storitve in vse ostalo ostane enako kot prej, razen velikosti particije.

Steps to extend C partition in Hyper-V Windows Server 2016/2019/2022:

  1. Prenos NIUBI Partition Editor and install to Hyper-V virtual server.
  2. Z desno miškino tipko kliknite desno sočasno particijo D: (v nekaterih strežnikih je E :) in izberite "Resize/Move Volume"Povlecite leva meja v desno v pojavnem oknu ali v polje vnesite znesek Nerazporejen prostor prej.
  3. Z desno miškino tipko kliknite sistemsko particijo C: in izberite "Resize/Move Volume"spet povlecite desna meja proti desni, da združite nedodeljeni prostor v pojavnem oknu.
  4. klik Apply zgoraj levo za izvršitev. (Če ste naredili kaj narobe, preprosto kliknite Razveljavi, če želite preklicati postopek v teku.)

Video guide

Če želite dobiti prosti prostor od katerega koli ne-sosednji volume, there's an additional step to premakni nedodeljeni prostor poleg pogona C.

Kako razširiti Hyper-V particijo, ko je virtualni disk poln

In a physical server, if a system disk is full, you have to clone it to a larger one, and then extend system C drive with additional disk space. But in Hyper-V virtual server, it is much easier.

  1. Sledite koraki za razširitev navideznega diska Hyper-V. Po tem bo dodatni prostor prikazan kot Nerazporejen na koncu izvirnega virtualnega diska.
  2. Sledite korakom do združite nedodeljeni prostor na particijo (-e), ki jo želite razširiti.

Poleg krčenja in razširitve particije v Hyper-V ali fizični Windows Strežnik 2016, NIUBI Partition Editor pomaga kopirati, pretvoriti, združiti, defragrirati, skriti, obrisati particijo, skenirati slab sektor in še veliko več.

Prenos