11

I have a 900GB HDD, but for some reason it will only allow me to shrink like 2500MB of it. In the past, I could shrink to my desired size, but for some reason it is giving me a problem now. I have tried defragging it with PerfectDisk, but I actually think doing that made it even smaller. I have also tried using cmd diskpart but that fails too. Heres a pic:

Shrink C

  • 2
    There's an explanation in the middle of the box in the link you pasted that tells you what causes this and what to do about it. – David Schwartz Mar 6 '13 at 10:39
  • You are attempting to shrink a volume with files that are unable to be moved. You will need to get rid of those files ( its likely a page file ) before you will be able to do this. – Ramhound Mar 6 '13 at 12:44
  • 1
    @Ramhound This can also be caused by 'unmovable' files, such as file system metadata. I believe the MFT mirror is created in the middle of the partition by default. The normal solution is to perform an offline resize using a tool that can move files and metadata, such as the Linux parted utility (often used with the gparted graphical interface). – Bob Mar 6 '13 at 13:11
  • 1
    @Ramhound I am aware that they are using Windows. In my previous comment, I used a popular nix-based tool *as an example, though there are other methods. If desired, it is possible to use a Linux Live CD independent of the installed OS - Parted Magic is designed specifically for this purpose. It's important to note, however, that resizing a partition in this manner can lead to a loss of data. – Bob Mar 6 '13 at 13:48
  • 8
    Possible duplicate of How to shrink Windows 7 boot partition with unmovable files – fixer1234 May 22 '16 at 18:26
11

The main reason for not being able to shrink the disk are that there are unmovable files on the disk at the time of trying to shrink the volume (as your screenshot says).

The most common "unmoveable" files are files which are locked during normal computer operation such as virtual memory/pagefile/system restore files as well as a few other files which may be open, but not running "in memory"

Having come across this myself previously on both server and desktop operating systems - I can say the most likely culprit is the pagefile.

To fix this:

  1. Right-click Computer
  2. Select Properties
  3. Select Advanced system settings
  4. Select the Advanced tab and then the Performance radio button
  5. Select the Change box under Virtual memory
  6. Un-check Automatically manage paging file size for all drives
  7. Select No paging file, and click the Set button
  8. Select OK to allow and restart.

Once your machine has rebooted and you know you have no page file (check at the root of C: with hidden and system files showing) - try a defrag and then try shrinking the volume again.

Don't forget to reset your pagefile back to its original size afterwards! Failure to do so will potentially cause significant performance issues with any machine.

Hope this helps.

EDIT: I have just had to do this on another system which had other unmovable files. These turned out to be shadow copies of drives on a 2008R2 server. To remove these, use the following command in an elevated command prompt: Vssadmin delete shadows /For=:<driveletter> /all

| improve this answer | |
  • I've found that I had to disable hibernation as well to be able to shrink the volume as much as I wanted. The command for that is "powercfg.exe /hibernate off". – kotekzot Sep 14 '19 at 5:49
4

The answer here worked for me: How to shrink Windows 7 boot partition with unmovable files

Turn off Virtual Memory and System Restore, then run your shrink, then turn them back on again.

| improve this answer | |
  • 1
    Fazer's answer didn't work for me. Had to also disable and delete system restore as mentioned here – Ryall Oct 16 '18 at 14:20
  • Same for me. I had 582GB HDD with 90% free, yet I could only shrink 25GB initially. Disabling paging file didn't help. But disabling System Restore let me shrink up to 496GB! – wisbucky Dec 8 '18 at 8:47
1

I know this is a really old question but had the same issue. Did a reset of Windows. After re-install I had about 10% of my available space to shrink.

I first tried @Fazer87's answer, which did reclaim some space, but not a lot. For some reason I remembered always finding the hibernate file taking up space and thought maybe it was locking something so I ran:

powercfg -h off

Immediately after running the above command, and without rebooting, my disk management now shows the full available space I would expect.

| improve this answer | |
  • This worked for me, thank you! – nmio Mar 30 at 3:13
0

Forget Windows. Use Minitool Partition Wizard (free version). I incrased the shrink of my drive from 7Gb (Windows) to 50Gb (Minitool Partition Wizard).

Steps:

  1. Select the partition you are interested in. E.g. C:.

  2. Click Move/Resize Partition from the left action panel.

  3. Scroll bar to choose how much you want to shrink it.

It will restart your computer and job done.

| improve this answer | |
0

Take the guess work out of it by just opening the "Event Viewer" and going to Windows Logs then Application and look for entries where Source = Defrag. Mine had this to say:

The last unmovable file appears to be: \System Volume Information\{e5ea2453-8708-11ea-bb4c-1c1b0dfeec7e}{3808876b-c176-4e48-b7ae-04046e6cc752}::$DATA

I would not have figured this out by myself. That file is swop file related and I had to do this for Windows 10:

  1. Right click on "This PC" and then "Properties".
  2. Then click on "System Protection"
  3. Select the drive you are having issues with and click configure
  4. The "Disable System Protection"
  5. Click on the tab that says "advanced"
  6. Click "Advanced again"
  7. The click on "Change" under "Virtual Memory"
  8. Change the settings for the drive you are having issues with and specify that it must use "No paging file"

Doing this should solve the problem. And this will answers some of the other questions you might have:

What is that folder?

That’s because Windows uses this folder for certain system-level features. The permissions are set to prevent users—and programs without the appropriate permissions—from tampering with the files inside and interfering with important system functions.

How do I get around this problem?

If you need to shrink the size of the System Volume Information folder, you can do so from the Control Panel. Head to Control Panel > System and Security > System > System Protection. Under Protection Settings, you can choose whether System Restore is enabled and control how much disk space Windows uses for System Restore points.

| improve this answer | |
-1

Turning off hibernation fixed mine.
So open a cmd prompt with admin rights and enter:

powercfg -hibernation off
| improve this answer | |
  • It didn't work for me, so I tried powercfg.exe /hibernate off which I found on Microsoft website and it went through but didn't change the shrink volume – Asaf M Apr 24 at 10:35
  • disable System Protection helped – Asaf M Apr 24 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.