Shrinking a Partition in Windows Vista or Server 2008
In the past, managing disk partitions had to be mostly done through 3rd-party tools such as Partition Magic and others, that had to be booted externally to Microsoft operating systems from bootable CDs. Such tools allowed you to re-format your disk, manage partitions, and mostly to extend (increase the size of) and shrink (reduce the size of) disk partitions. Unlike in previous Microsoft operating systems, Windows Vista and Windows Server 2008 now allow for an easy, out-of-the-box, method of shrinking partitions and making them smaller, thus freeing disk space and allowing the creation of another partition out of that space. This is made possible by using the Shrink feature in Disk Management. If you have multiple partitions on your hard disk, you can delete and create partitions from the resulting unallocated space. When you delete a partition, all data on the partition will be erased. You can also repartition hard disks with a third-party partitioning program. Several third-party manufacturers offer programs that allow you to repartition your hard disk without erasing data, but that’s a topic for a future article.
Shrinking a partition in Windows Server 2008 is similar to the process in Windows Vista. I’ve used screenshots of Windows Vista, except the ones related to Server Manager in Windows Server 2008. The rest of the procedure is the same.
Note: Besides shrinking a volume or partition, in Vista and Windows Server 2008 you can also Extend a partition or volume without the need to reboot or use 3rd-Party tools. See my “Extending a Partition in Windows Vista/2008” article for more info.
Shrinking a partition by using the GUI
- First, like in most administrative tasks, you must be logged on as an Administrator.
- In Windows Vista, go to Control Panel > System and Maintenance > Administrative Tools, or on the My Computer context menu. Select Computer Management. In Vista, if you are prompted for an administrator password or confirmation, type the password or provide confirmation.
- In Windows Server 2008 you need to go to Server Manager, found in the Administrative Tools folder or on the My Computer context menu.
- Next, scroll down till you get to the Storage section, and in it go to the Disk Management console.
- Select the disk you want to shrink, for example Drive C.
- Right-click the disk and select Shrink Volume.
- Click Shrink to use the maximum allowable amount of space.
- Windows Vista will do some calculations and tell you how much space can be freed. You can manually enter the amount of space you want to free by changing the “Enter the amount of space to shrink in MB” values. However note that you cannot enter a higher value than the value calculated by Vista.
- After the shrinking process has ended you will see some unallocated space being available on the disk you’ve worked on.
Note: Shrinking any volume is fine as long as you make sure you leave enough space on the partition you are shrinking. For example, having a 40 GB system partition might seem too much at the beginning, but after a while you might find it to be less than optimal. You see, many applications such as Microsoft Office take tons of free space. So do Service Packs, hotfixes and other files. For a server running Windows Server 2008 this calculation might be different than on a workstation running Windows Vista, but in any case, make a mental note of this BEFORE shrinking your partitions.
Shrinking a partition by using the command line
Shrinking a partition or volume can be done via the CLI, or command line interface. This works in both Vista and Windows Server 2008. In order to do that perform the following steps:
- Click Start and type CMD, then press Enter.
- In the command prompt type
- Select the right disk drive and partition to work on. Typically this should be disk 0 and partition 1, but YMMV.
- When the right disk and partitions were selected, perform the SHRINK command. If you don’t specify the size to shrink by, then the command will shrink the partition by the maximum allowed size.
Select disk 0 Select partition 1
Note: You may want to perform a LIST operation to view your existing disks and partitions BEFORE attempting to shrink the wrong one:
List disk List partition
The above command will shrink the partition by 500 MB.
The above command will shrink the partition by the maximum allowed size.
And with that final step, we have completed our task.
How to Create a Partition in your new free disk space
If you wish, you can now use this new free space to create a new partition.
- In order to create a new partition, right-click the unallocated space on the disk and choose New Simple Volume.
- The New simple volume wizard will open, click Next to continue.
- Click Next all the way out unless you wish to manually change settings such as the drive letter, formatting type or other settings.
You have successfully created a new partition out of the freed space.
More in Windows Server 2008
Microsoft Acknowledges New Netlogon Issues On Windows Server Machines
Feb 25, 2022 | Rabia Noureen
How to Fully Patch the PrintNightmare Vulnerability
Jul 9, 2021 | Brad Sams
Everything You Need to Know About Windows – January 2020
Feb 3, 2020 | Russell Smith
Paul Thurrott's Short Takes: Microsoft Earnings Special Edition
Jan 31, 2020 | Paul Thurrott
SCARY: “Atom Bomb” Windows Security Hole said to be Unfixable
Oct 31, 2016 | Richi Jennings
Microsoft’s New Patching Philosophy Sacrifices A Few For The Many
Aug 19, 2016 | Brad Sams
Most popular on petri