Shrinking a volume using diskpart

By Mitch Tulloch  Add a new comment

The Diskpart command in Vista now lets you shrink a volume by using the Shrink subcommand, see here for details. This can be useful if you have only one hard disk and a C: drive that fills the disk, and you want to make room on your disk to create a second volume for storing data or some other purpose. Unfortunately system files that have fixed locations like the paging file and system restore points can prevent you from shrinking your C: drive by much.

The workaround is to disable System Protection (i.e. disable automatic creation of System Restore points) and specify no paging file, and then shrink your volume. For example, I had Vista installed on a 64 GB volume and did the following in order:

diskpart
select disk 0
select volume 1
shrink

This reduced my C: drive from 60 to 45 GB.

I then disabled System Protection and specified no paging file, rebooted, and ran the above commands again. The result was I could take another 10 GB off my C: drive to bring it down to 35 GB at which point the volume is about 75% full.

A few caveats though before you try this on your computer:

1. If you disable System Protection, you won't be able to go back to a previous restore point if something goes wrong with your system, so it's a good idea to re-enable System Protection after you've shrunk your volume.

2. If you shrink your volume too much, you may run into problems since Vista saves old versions of system binaries in the WinSXS folder and this folder can grow quite large in size.

3. If you want to expand your volume afterwards, you can use the Expand subcommand of Diskpart to do this, but if you want to keep your disk a basic (rather than dynamic) disk you can only extend your C: drive to contiguous (adjacent) space on the disk.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    WindowsWhite Papers & Webcasts

    White Paper

    Microsoft Volume Licensing Reference Guide

    This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

    White Paper

    HP Software Licensing & Management Solutions for Microsoft

    See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

    White Paper

    Microsoft Open Value Program Guide

    In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

    White Paper

    Microsoft Volume Licensing Comparison - Enterprise

    With this quick-reference document, you can easily compare the available Microsoft Volume Licensing programs for enterprise organizations with 250+ devices, and tailor a program to help save costs, manage multiple licenses, and keep software up-to-date.

    White Paper

    Microsoft Enterprise Agreement Program Brief

    This white paper provides an in-depth look into how the Microsoft Enterprise Agreement Program provides with flexibility to choose among on-premises software and cloud services to best suit your user needs, and helps you optimize your technology spend as business priorities change.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question