Extend disk partition in Windows Server 2008/2012/2016/2019

by James, Updated on: November 12, 2024

It is very common that a server that disk partition is running out of space, especially to system partition C or the drives for exchange, database and backup. To database and backup partition, you can change settings and transfer files. But to system partition, it is more complicated. To solve this problem much faster and more easily, you can extend server partition with safe tool. This article introduces how to extend disk partition in Windows Server 2008/2012/2016/2019 without losing data.

Extend Server 2008 partition without software

To extend partition in Windows Server 2008 (R2), there are 2 native tools - Diskpart and Disk Management. Diskpart works via command prompt and Disk Management works with graphical interface. Although they work in different way, they have similar restrictions including:

Only when your disk partition configuration meets all above requirements, you can extend server 2008 partition without software.

How to extend Server 2008 partition with Diskpart:

  1. Press Windows and R together on the keyboard, type diskpart and press "Enter".
  2. Type list volume and press Enter in the command prompt window.
  3. Type select volume D and press Enter. (D is the right adjacent drive.)
  4. Type delete volume and press Enter.
  5. Type select volume C and press Enter. (C is the partition that you want to extend.)
  6. Type extend and press Enter.

How to extend Server 2008 partition with Disk Management:

  1. Press Windows and R together on the keyboard, type diskmgmt.msc and press "Enter".
  2. Right click the right adjacent partition (such as D:) and select "Delete Volume".
  3. Right click the partition that you want to extend (such as C:) and select "Extend Volume".
  4. Available space is selected by default, simply click Next till Finish in "Extend Volume Wizard" window.

Why you must delete the adjacent partition on the right before extending partition? Because:

As you see in my server, unallocated space is on the right of drive D after shrinking. C drive is nonadjacent to it and drive E is on the right, therefore, Extend Volume doesn't work.

If there is no or you can't delete the right contiguous partition, or the partition that you want to extend is formatted as FAT32, you need server partition software.

Cannot extend

Extend partition with free space in other drive

Before extending partition in Server 2008/2012/2016/2019/2022, you should know that there's potential data loss risk with third party software. Some unreliable software could cause system boot failure, partition damage and data loss, so remember to back up before any operations.

Comparing with other tools, NIUBI Partition Editor is much safer and faster because of its powerful technologies:

As long as there's free space in a partition, NIUBI can transfer to other partition on the same disk.

How to extend partition C in Windows Server 2008 R2/2012/2016/2019:

Step 1: Download NIUBI Partition Editor and you'll see the main window with disk partition structure and other information.

NIUBI Partition Editor

Step 2: Right click drive D: and select "Resize/Move Volume", drag left border towards right in the pop-up window. You may also enter an amount in the box behind "Unallocated space before" (1024MB = 1GB).

Shrink D

Then drive D is shrunk and 20GB unallocated space is made on its left.

Shrink D

Step 3: Right click C: drive and select "Resize/Move Volume", drag right border towards right to combine unallocated space.

Extend C drive

Then system partition C is extended to 60GB.

Extend os drive

To modify real disk partition, remember to click Apply on top left to execute.

Video guide to extend system partition C in Windows Server 2008:

Video guide

Video guide to extend data partition D in Windows Server 2008:

Video guide

Extend virtual partition in RAID, VMware/Hyper-V

When there's free space on a disk, do not break RAID array, there's no difference to extend partition in hardware RAID array or VMware/Hyper-V virtual disk.

If there is no other partition or no available free space in entire disk, no software can transfer space from other separate disk. In that case, there are several options with NIUBI, select the corresponding method according to your own disk partition structure.

The separated disk means Disk 0, 1, etc. shown by NIUBI or Windows Disk Management.

If you want to extend virtual partition for VMware or Hyper-V:

  1. Increase virtual disk size with their own tools, then additional space will be shown as unallocated space at the end of disk.
  2. Follow the steps in the video to move and combine unallocated space to C: drive (and other partition).

If you want to extend virtual partition on RAID array:

Firstly, confirm if your raid controller support RAID expansion with larger drives. It's much better if it does, then additional space will be shown as unallocated on the end after rebuilding raid array.

If it doesn't, follow the steps below:

  1. Insert a single disk which should be larger than the size of original raid array.
  2. Copy original raid array to the single disk.
  3. Build a new raid array with larger disks and then copy back from the single disk.

If there is no such large enough single disk, you have to build a new RAID and copy from original raid directly.

No matter how your disk partitions are configured (except dynamic disk), there's a way with NIUBI Partition Editor to help you extend partition on Windows Server 2008 fast and safely.

Download