This article introduces how to resize and extend primary partition in Windows Server 2008 r2 without losing data.
GPT and MBR are common disk type in both Windows PC and server. Primary partition is common partition type in both GPT and MBR disk, NTFS and FAT32 are common file system for both Primary and Logical partition.
Difference of MBR and GPT disk:
- In GPT disk, all partitions are created as Primary, but in MBR disk, there could be Primary and Logical partition.
- You can create many Primary partitions in GPT disk, but in MBR disk you can create maximum 4 primary partitions.
- In general, the maximum partition size on a MBR disk is 2TB. On a 2TB+ MBR disk, you can only use 2TB and the remaining space can't be used.
Is there any difference when resizing Primary and Logical partition in Windows Server 2008?
1. Resize primary partition with diskpart for Windows 2008 server
Diskpart is a command line tool that runs in Windows or from Preinstallation Environment (Windows PE). It is included from old Windows XP. This Windows native tool can only shrink and extend NTFS partition, other types of partitions are not supported.
How to resize Primary partition in Windows Server 2008 R2 with diskpart cmd:
- Press Windows and R hot-keys together to open Run, type diskpart and press Enter.
- Input list volume and press Enter in the command prompt window. Then you'll see all partitions in a list.
- Input select volume D and press Enter. D is drive letter or number of the volume that you want to shrink.
- Input shrink desired=10240 and press Enter. 10240 is the amount of space that you want to shrink from this partition (in MB).
- Input list volume and press Enter in the command prompt window.
- Input select volume D and press Enter. (D is the right adjacent drive.)
- Input delete volume and press Enter.
- Input select volume C and press Enter. (C is the partition that you want to extend.)
- Input extend and press Enter.
There's no difference to resize a Logical partition, the problem is that you cannot extend a partition by shrinking another one. Because, the Unallocated space that shrunk from D is non adjacent to C drive, so extend command cannot add this space into C drive. To extend a partition (such as C:) with diskpart, you must delete the contiguous partition on the right (such as D:). D drive could be either Primary or Logical.
2. Extend primary partition with Server 2008 Disk Management
Disk Management has graphical interface, it has new Shrink and Extend Volume function to help repartition hard drive. The same with diskpart cmd, before extending a partition with Server 2008 Disk Management, you must delete the right contiguous partition in advance.
As you see in the screenshot, Extend Volume is disabled for C: drive, because:
- The same with diskpart shrink command, Disk Management Shrink Volume function can only make Unallocated space on the right while shrinking a partition.
- The same with diskpart extend command, Disk Management Extend Volume can only expand partition when there is contiguous Unallocated space on the right.
There is an additional limitation while extending Primary partition with Server 2008 Disk Management.
As you see in the screenshot, the 70GB Free space is deleting from drive D, Extend Volume option is still disabled for C drive. This is because:
Unlike Primary partition, Logical drive will be changed to Free space after deleting. It is still part of the Extended partition. Free space can't be extended to any Primary partition. Likewise, Unallocated space deleted from Primary partition can't be extended to any Logical drive.
To extend primary partition in Windows Server 2008 R2 with Disk Management, your disk partition structure must meet the requirements below:
- This primary partition must be formatted with NTFS file system.
- There is another primary partition on the right and on the same disk.
- There's no programs installed in the primary partition on the right, so you can delete it to get adjacent Unallocated space.
In general, server administrators want to extend C drive, this partition is always Primary. Therefore, if you want to extend Primary partition C in Server 2008 Disk Management, the contiguous partition D must be Primary, too. Before deleting this partition to get contiguous Unallocated space, make sure there are no programs or Windows services installed in it.
3. Better way to resize and extend primary partition with NIUBI
Third party software is more much more powerful to resize and extend partitions for Windows 2008 server.
- They can shrink and extend both NTFS and FAT32 partitions.
- They can make Unallocated space on either left or right side while shrinking a partition.
- They can add Unallocated space to either contiguous and any nonadjacent partitions on the same disk.
You can resize Primary and Logical partition without deleting any other one. Operating System, programs and anything else keep the same with before. There are many partition manager for Windows Server 2008, but you'd better make a backup first and run the safest, because there's potential data loss risk with unreliable software. Better than other tools, NIUBI Partition Editor has powerful technologies to protect system and data:
- Virtual Mode - all operations will be listed as pending for preview, real disk partitions won't be modified until click Apply to confirm.
- Cancel-at-will - if you applied wrong operations, it doesn't matter, you can also cancel the ongoing operations without losing data.
- 1 Second Rollback - if encounter any error while resizing partition, it automatically reverts server to original status in a flash.
- Advanced file-moving algorithm - move and extend partition 30% to 300% faster, saving much time especially if there are large amount of files.
Download NIUBI Partition Editor and follow the steps in the video to resize and extend primary partition in Windows Server 2008 R2:
To NIUBI Partition Editor, there's no difference to resize NTFS or FAT32 partition, Primary or Logical partition, you just need to drag and drop on the disk map.
- Drag the border towards the other one, then you can shrink this partition.
- Drag the middle towards other side, then you can move this partition and adjacent Unallocated space.
- Drag the border opposite to the other one, then you can combine contiguous Unallocated space to this partition.
Beside shrinking and extending partitions, it helps you do many other operations such as copy, merge, convert, defrag, hide, wipe, scan partition, etc.