How to Resize a Volume
New in Windows Vista, and also included in Windows 7, is the ability to expand and contract simple volumes without a third-party tool. You can also expand and contract spanned volumes, but striped volumes are fixed in size. To change the size of a striped volume, you need to delete and re-create it.
Note Third-party products offer additional flexibility in resizing partitions, allowing the resizing of partitions with no available unallocated space immediately adjacent to the partition that you want to extend and also allowing you to control the placement of the unallocated space after shrinking the partition.
To shrink a volume, follow these steps:
- Open the Disk Management snap-in.
- Right-click the volume you want to shrink and then click Shrink Volume.
- The Shrink dialog box opens and shows the maximum amount by which you can shrink the volume in megabytes. If desired, decrease the amount to shrink the volume and then click Shrink. The shrink process will proceed without further prompting.
You can also use DiskPart interactively from an elevated command line, using exactly the same steps as you would use with a script. The following interactive steps show how to shrink a volume as much as possible.
DiskPart Microsoft DiskPart version 6.1.7100 Copyright (C) 1999-2008 Microsoft Corporation. On computer: WIN7 DISKPART list volume DISKPART> list volume
|Volume 0||F||New Volume||NTFS||Simple||20 GB||Healthy|
|Volume 1||E||New Volume||NTFS||Simple||40 GB||Healthy|
|Volume 2||R||DVD-ROM||0 GB||No Media|
|Volume 3||C||NTFS||Partition||75 GB||Healthy||System|
|Volume 4||D||New Volume||NTFS||Partition||52 GB||Healthy|
DISKPART> select volume 4 Volume 4 is the selected volume. DISKPART> shrink querymax The maximum number of reclaimable bytes is: 26 GB DISKPART> shrink DiskPart successfully shrunk the volume by: 26 GB
Note In the code list, the command shrink querymax queries the volume to determine the maximum amount of shrinkage that the volume will support. The actual number will depend on the amount of free space on the volume, the fragmentation level, and where critical files are located on the volume.
To extend a volume, the steps are similar:
- Open the Disk Management snap-in.
- Right-click the volume you want to extend and then click Extend Volume. The Extend Volume Wizard appears.
- Click Next. The Select Disks page appears.
- Select the disks and set the amount of space from each disk to include in the extended volume. If you are extending a volume on a basic disk and you choose noncontiguous unallocated space or space on a second disk, the extension will also convert any disks involved to dynamic disks as part of the extension. Click Next.
- On the Completing The Extend Volume Wizard page, click Finish. If the extension requires conversion to a dynamic disk, you'll see a warning.
In this tutorial:
- Managing Disks and File Systems
- Overview of Partitioning Disks
- How to Choose Between MBR or GPT
- Converting from MBR to GPT Disks
- GPT Partitions
- Choosing Basic or Dynamic Disks
- Working with Volumes
- How to Create a Simple Volume
- How to Create a Spanned Volume
- How to Create a Striped Volume
- How to Resize a Volume
- How to Delete a Volume
- How to Create and Use a Virtual Hard Disk
- File System Fragmentation
- Backup And Restore
- How File Backups Work
- File and Folder Backup Structure
- How System Image Backups Work
- How to Start a System Image Backup from the Command Line
- How to Restore a System Image Backup
- System Image Backup Structure
- Best Practices for Computer Backups
- How to Manage Backup Using Group Policy Settings
- Previous Versions and Shadow Copies
- How to Manage Shadow Copies
- How to Restore a File with Previous Versions
- How to Configure Previous Versions with Group Policy Settings
- Windows ReadyBoost
- BitLocker Drive Encryption
- How BitLocker Encrypts Data
- How BitLocker Protects Data
- TPM with External Key (Require Startup USB Key At Every Startup)
- TPM with PIN (Require PIN At Every Startup)
- TPM with PIN and External Key
- BitLocker To Go
- BitLocker Phases
- Requirements for Protecting the System Volume with BitLocker
- How to Enable the Use of BitLocker on the System Volume on Computers Without TPM
- How to Enable BitLocker Encryption on System Volumes
- How to Enable BitLocker Encryption on Data Volumes
- How to Manage BitLocker Keys on a Local Computer
- How to Manage BitLocker from the Command Line
- How to Recover Data Protected by BitLocker
- How to Disable or Remove BitLocker Drive Encryption
- How to Decommission a BitLocker Drive Permanently
- How to Prepare AD DS for BitLocker
- How to Configure a Data Recovery Agent
- How to Manage BitLocker with Group Policy
- The Costs of BitLocker
- Windows 7 Encrypting File System
- How to Export Personal Certificates
- How to Import Personal Certificates
- How to Grant Users Access to an Encrypted File
- Symbolic Links
- How to Create Symbolic Links
- How to Create Relative or Absolute Symbolic Links
- How to Create Symbolic Links to Shared Folders
- How to Use Hard Links
- Disk Quotas
- How to Configure Disk Quotas on a Single Computer
- How to Configure Disk Quotas from a Command Prompt
- How to Configure Disk Quotas by Using Group Policy Settings
- Disk Tools
- MoveFile and PendMoves