Extend hard drive in Windows Server 2008

Updated on: November 16, 2019

This article introduces how to extend hard drive in Windows Server 2008 r2, 3 ways to extend hard drive partition for Server 2008 without losing data.

Many server administrator are wondering if it is possible to extend hard drive partition for Windows 2008 server after running several years. If yes, is it safe to repartition hard drive? The answer is yes and there are 3 common safe tools: diskpart (command line), Disk Management and NIUBI Partition Editor.

How to extend hard drive with diskpart command

Diskpart works via command prompt and it has set of commands to disk and partition. The extend command can increase partition size without losing data but under restricted condition.

Only after deleting the contiguous partition on the right, you can extend with diskpart. In addition, the partition that you want to extend must be NTFS, any other types of partitions are not supported.

Steps to extend hard drive with diskpart in Windows Server 2008:

  1. Press Windows and R together on keyboard, type diskpart and press Enter.
  2. Type list volume and press Enter, then you'll see all single partitions in a list.
  3. Type select volume D and press Enter. D is drive letter or number of the right contiguous partition.
  4. Type delete volume and press Enter.
  5. Type select volume C and press Enter. C is drive letter or number of the drive that you want to extend.
  6. Type extend and press Enter.

Diskpart works

Diskpart has shrink command, is it possible to shrink D drive rather than deleting? No, you'll receive error - The size of the extent is less than the minimum. I'll explain with Disk Management.

Extend hard drive with Server 2008 Disk Management

Disk Management has graphical interface and works in different way. It has Shrink and Extend Volume function to resize hard drive partition, but the same with diskpart, it cannot extend a partition by shrinking other one.

Cant extend C

Cant extend D

As you see in the screenshots, no matter you want to extend hard drive C or D, it is impossible. Extend Volume is always greyed out after shrinking other volumes. This is because:

If these tools can make Unallocated space on the left while shrinking, there is no such issue.

Steps to extend hard drive partition via Server 2008 Disk Management:

  1. Transfer all files in the right contiguous partition (such as D:) to other place.
  2. Press Windows and R key together on the keyboard, type diskmgmt.msc and press Enter to open Disk Management.
  3. Right click D: drive and select Delete Volume.
  4. Right click C: drive and select Extend Volume.
  5. Follow the instructions in pop-up Extend Volume Wizard window via several clicks.

If there is no or you cannot delete the right contiguous partition, both diskpart and Disk Management are useless.

Better way to extend hard drive with NIUBI Partition Editor

Comparing with Windows native tools, NIUBI Partition Editor is much more powerful.

Download NIUBI Partition Editor and follow the steps in the video.

How to extend C drive partition in Windows Server 2008 R2:

Video guide

How to extend D drive partition with free space in other volumes:

Video guide

If you use any types of hardware RAID arrays or VMware/Hyper-V virtual disk, simply follow steps above to resize hard drive with NIUBI Partition Editor, there is no difference.