Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Partition or Volume - Shrink


Partition or Volume - Shrink

How to Shrink a Partition or Volume in Windows 7
Published by Brink
22 Jan 2009
Published by

How to Shrink a Partition or Volume in Windows 7

information   Information
This will show you how to shrink an existing partition or volume using Disk Management or Diskpart in Windows 7 to create unallocated disk space, from which you can create a new partition or volume with.
warning   Warning
You must be logged on in an administrator account to be able to do this tutorial.

If while shrinking a partition below, you get a Convert to Dynamic disks? type prompt, do not do so.

If you disable the Disk Defragmenter service, then you will get the error below when you try to do anything in Disk Management. If you get this error, then make sure that the Disk Defragmenter service is set to only Manual.

Name:  Error.jpg
Views: 23035
Size:  29.2 KB





OPTION ONE
Using Disk Management
1. Open the Control Panel (icons view), and click on the Administrative Tools icon. then close the Control Panel window.

2. Click on Computer Management in Administrative Tools, then close the Administrative Tools window.

3. In the left pane under Storage, click on Disk Management. (See screenshot below)
Partition or Volume - Shrink-shrink_step1.jpg
4. In the middle pane, right click on the partition that you want to shrink and click on Shrink Volume. (See screenshot above)

5. Type in how many MB (1 GB = 1024 MB) of the available shrink space shown that you want to shrink the partition or volume by to be used for the new unallocated space, then click on the Shrink button. (See screenshot below)
warning   Warning
The size of the available shrink space can be restricted by the amount of space currently allocated to on the hard drive for the virtual memory page file, System Protection maximum storage space size, and hibernation files. The location of the files on the hard drive plays a big part here because these files are marked as unmovable, and Disk Management is unable to relocate them. As such, if these unmovable files are located in the middle of the total amount of free space on the disk, then only the amount of free space on the other side (to the right) of these files will actually be available for the new partition. This will result in you showing that you have x amount of free space, but not being able to use it for your partition. The only way around this is to use a 3rd party hard drive partition management program, or setup the partition when installing Vista.
Name:  Shrink_Step2.jpg
Views: 34526
Size:  66.6 KB
6. The selected partition (step 4) has now been shrunk to create a new empty unallocated space. You can use this new unallocated space to create a new partition with. (See screenshot below)
Partition or Volume - Shrink-shrink_step3.jpg
7. Close the Computer Management window. (See screenshot above)






OPTION TWO
Using Diskpart in a Elevated Command Prompt
1. Open a elevated command prompt, or a command prompt at boot.

2. In the elevated command prompt, type diskpart and press Enter. (See screenshot below)
Name:  CMD_Shrink_Step1.jpg
Views: 32984
Size:  65.2 KB
3. In the elevated command prompt, type list volume and press Enter. (See screenshot below)
NOTE: This will give you a list of volume numbers to select from to shrink.
Name:  CMD_Shrink_Step2.jpg
Views: 30563
Size:  100.6 KB
4. In the elevated command prompt, type select volume # and press Enter. (See screenshot below)
NOTE: You would substitute # for the volume number listed that you want to shrink. For example, I want to shrink the listed volume 2, so I would type select volume 2 and press Enter.
Name:  CMD_Shrink_Step3.jpg
Views: 29977
Size:  108.6 KB
5. In the elevated command prompt, type shrink querymax and press Enter. (See screenshot below)
NOTE: This will give you the maximum amount of size in MB that you can shrink the selected partition or volume (step 4) by to be used as the new unallocated space. For example, I have 696 GB available to shrink.
Name:  CMD_Shrink_Step4.jpg
Views: 31140
Size:  122.0 KB
6. To Shrink All of the Available Space
A) In the elevated command prompt, type shrink and press Enter.
NOTE: This will shrink the selected partition or volume by all of the maximum number of reclaimable bytes (step 4) to be used for the new unallocated space.

B) Go to step 8.
7. To Shrink the Available Space by a Specified Size
A) In the elevated command prompt, type shrink desired=(# in MB) and press Enter. (See screenshot below)
NOTE: You would substitute (# in MB) for how many MB (1 GB = 1024 MB) you want to shrink the selected partition or volume (step 4) by to be used for the new unallocated space. For example, if I only wanted to shrink the partition or volume by 81920 MB (80 GB), then I would type shrink desired=81920 and press Enter.
Name:  CMD_Shrink_Step5.jpg
Views: 29985
Size:  135.3 KB
8. In the elevated command prompt, type exit and press Enter. (See screenshot below)
Name:  CMD_Shrink_Step6.jpg
Views: 27278
Size:  137.7 KB
9. Close the elevated command prompt.

10. The selected partition (step 4) has now been shrunk to create a new empty unallocated space. You can use this new unallocated space to create a new partition with.
That's it,
Shawn





.

05 Jun 2009   #1
Todaya

 
 

How do i undo this shrinking?

My System SpecsSystem Spec
.

05 Jun 2009   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Todaya,

You can delete the partition, and extend the partition to the left of it that you shrank it from back into it.

Hope this helps,
Shawn
My System SpecsSystem Spec
06 Jul 2009   #3
Aydhayeth

windows 7
 
 

Greetings,

I am having the problem where i have 120gigabytes of free data, but I can only shrink 78. I know that i have hit an unmoveable file of some sort, but I've been told that I could get around this by defragging etc. I have defragmented by disk, but with no result.

Any ideas on how I could resolve this?

Thanks in advance.
My System SpecsSystem Spec
06 Jul 2009   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Aydhayeth, and welcome to Seven Forums.

You can use a trial version of a 3rd party disk management program (ex: Paragon Disk Manager) to easily shrink the partition when you have this type of problem with a unmovable file. Unfortunately, Disk Management in Windows 7 and Vista is limited.

Hope this helps,
Shawn
My System SpecsSystem Spec
19 Jul 2009   #5
Aydhayeth

windows 7
 
 

Thank you for your help.
I tried using the program, it did not get me much further but i've decided too keep it as 1 partition.

regards,

ayd
My System SpecsSystem Spec
19 Jul 2009   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Ok Ayd. You're welcome.
My System SpecsSystem Spec
25 Aug 2009   #7
Paww

Windows 7 Home Premium x64
 
 

Thanks for the post, the forum is a fantastic resource.

I'm well versed with XP but the site has helped me come to terms with the changes in 7 comfortably, hope the site grows from strength to strength.
My System SpecsSystem Spec
25 Aug 2009   #8
noyb

XP MCE .... XP Pro 64 .... W7 U x64
 
 

Quote   Quote: Originally Posted by Aydhayeth View Post
I can only shrink 78. I know that i have hit an unmoveable file of some sort, but I've been told that I could get around this by defragging ...
This is a problem in Vista or Windows 7's defragger .. use another Defragger.
My System SpecsSystem Spec
25 Nov 2009   #9
Suranjit

Windows 7 64 bit
 
 

Hi,
I was able to shrink (and got unallocated space) but when I tried to create a new volume, I'm facing some errors. It said that I have already contained max number of partitions. Before I had created one. I think there is another one which is as HP Recovery Disk.
Is there any way I can create volume? I don't want to use VHDs. Every time I restart my computer, I have to reattach those drives.

Thanks,
Suranjit
My System SpecsSystem Spec
Comment

 Partition or Volume - Shrink





Tutorial Tools



Similar help and support threads for2: Partition or Volume - Shrink
Windows 7 Tutorial Category
Not Able to Create Partition (Shrink Volume Issue) Installation & Setup
Shrink Volume General Discussion
Solved "Shrink Volume" problem on partition General Discussion
I cant shrink volume please help... General Discussion
External Hard drive cannot shrink volume to partition General Discussion
Shrink Volume - Create Partition Q General Discussion
Shrink volume General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:12 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33