Cannot shrink C: partition: Not enough space

30

7

I am trying to create a new partition on my laptop (XPS 12 9Q33, 128GB SSD) by shrinking the C:\ partition. However, despite the fact that it indicates there is enough space, it displays an error message. I have successfully done this on my desktop, but for some reason it fails on my laptop.

There is not enough space available on the disk(s) to complete this operation.

I am trying to shrink C:\ (which has ~25GB free) by 10GB.

I have:

  • ensured there are no files at the end of the sector (disabling pagefile, etc.). See How can I shrink a Windows 10 partition? for how to do that (and you do need to do that).
  • turned off my antivirus temporarily.
  • disabled BitLocker encryption.

And it still fails. I've even tried Paragon's Partition Manager, which claims there is not enough space on the disk, which is not true.

I have even tried shrinking different sizes (down to 256MB), but to no avail (it still displays the same error).

Screenshots:

It allows me to shrink 10GB (unlike similar issues)

but fails on this message:

Any help would be appreciated.

Eddie Q

Posted 2016-04-10T13:36:16.383

Reputation: 303

I know this is a very bad thing to do on SSDs, but the problem may be that there is not enough CONTIGUOUS space on the SSD being data scattered all across the drive, so have you tried defragmenting? – Manchineel – 2017-06-17T08:20:08.047

Answers

4

MS's Disk Management never shrinked right for me, usually having this kind of problems. I'd try a different program, my best experience is with MiniTool Partition Wizard Free. It won't shrink BitLocker encrypted partitions though. Since it's your system disk, you'd better do it from some live environment (such as some Windows PE environment if you have a license for that and use MiniTool Partition Wizard Free or other Windows tool there, or GParted Live CD or SystemRescueCD if you're comfortable enough with Linux) – and DON'T FORGET TO BACKUP before shrinking the drive.

Lists of live rescue/administration environments can be found at many places, such as at gfi.com in post "Top 5 Free Rescue Discs for Your Sys Admin Toolkit".

LuH

Posted 2016-04-10T13:36:16.383

Reputation: 186

Your answer was very helpful - I used MiniTool's Partition wizard from the main OS and it worked fine! However, I was under the impression that using Linux tools to resize an NTFS partition would be dangerous as the support isn't great? Anyways, thanks for your help! – Eddie Q – 2016-04-11T01:17:59.873

I think Linux NTFS support is getting much better recently (even though it still hogs CPU a lot). Actually recently it happened to me that shrinking NTFS drive using Partition Wizard Free from live Windows PE rendered the volume unreadable from Windows, yet from Linux I was able to rescue all data just fine. It was the only time I ever had such problem shrinking a drive though and it may have been due to faulty motherboard. – LuH – 2016-04-11T22:21:02.087

1It was bad advice: "MiniTool Partition Wizard Free" cannot resize volumes, only the paid version can do it. The free version also installs "Brave" and Norton malware. The latter can be unchecked during setup, the former just sneaks in with no question asked. – fviktor – 2019-01-03T13:06:06.547

Tried installing the current version, it tried to sneak in Opera and McAffee, which I both unchecked and prevented. Didn't sneak in Brave. However, I couldn't find the resizing option either. I guess someone else needs to suggest other resizing software, I didn't do this kind of stuff in a long time. When I answered the question, this program was resizing in the free mode as well. – LuH – 2019-01-06T14:57:14.310

On second attempt, I realized it offers to Move/Resize Partition on unencrypted partitions (only the boot and recovery partitions in my laptop), but won't offer it on BitLocker encrypted ones. @fviktor maybe that's your problem as well? – LuH – 2019-01-06T15:13:53.743

43

I got this error when trying to shrink by 150GB, but shrinking three times by 50GB worked fine.

Tgr

Posted 2016-04-10T13:36:16.383

Reputation: 2 363

4You are my hero, 3x10GB worked, but single 30GB didn't. – Enis P. Aginić – 2017-01-04T11:34:20.830

2Something similar worked for me too, strange as it seems... – iammax – 2017-11-10T15:16:24.083

2Stupid MS ;-) This even worked initially in chunks of 100GB for me, and then I had to gradually reduce the size of chunks to reach the minimum size I can get... So that I can install Linux Mint and forget about Windows as I've been doing for more than a decade now ;-) – Sadi – 2017-12-29T23:54:09.467

2Wow, I feel stupid to write "worked for me too", but this is surprising. Although I eventually had to resort to 10Gb increments for my total of 200Gb shrink. Took like 20 minutes. – Aleksei Petrenko – 2018-01-07T20:32:54.637

1I can't stop laughing, how stupid this all is. Thanks, man. – Gaurav Gandhi – 2018-01-09T13:36:35.140

close enough. I had to perform tons of reduction by 2-5gb to achieve 100gb reduction – Leggy7 – 2018-05-31T09:32:55.620

I tried to free 170 GB at a go, but it didn't work. Then tried 60 GB following this answer, it worked first time, but showed the same error while trying again for 60 GB. So I tried for 50 GB, then 40 GB, and finally 20 GB, and it worked! :) – Mahbub Alam – 2018-09-22T11:06:55.427

13

Try launching the Event Viewer to see which individual files are blocking the partition shrink.

  1. Once again, attempt to shrink the partition. You should get the "There is not enough space" error.
  2. Launch Windows' Event Viewer application.
  3. In Event Viewer, go to Windows Logs > Application.
  4. Find and Click a recent log of type Warning. It should have the message, "Error: during volume shrink initiated on volume Windows (C:) we failed to move a movable file extent." (screenshot)
  5. The Diagnostic details will give you the name of the "last unmovable file"
  6. Delete this file (Simply send to recycle bin. I did not need a hard delete).
  7. Try shrinking your volume again.
  8. Repeat steps 2-7 until you successfully shrink your partition. (In my case, I had to do this 3 times, as I had 3 pdf files in my local Google Drive that were for some reason stuck as 'unmovable'.).
  9. Restore your deleted files.

CAUTION: Make sure you know what you are deleting! In my case, I knew that these pdf files were:

  1. Not system files
  2. Easy to download again if they became lost

MrE

Posted 2016-04-10T13:36:16.383

Reputation: 141

The event viewer was the only solution that helped me to find the remaining culprit: Google Backup And Sync seems to create files with properties that Windows 10 is unable to handle. I deleted the Google Drive folder while the sync client was shut down and the shrinking worked just fine! For the record: if the shrinking finds unmovable files, it generates a warning administrative event. – user1050755 – 2018-07-04T15:44:45.417

Looking at those event viewer logs, my anti-virus (ESET) apparently has files open which block the defrag step of the shrinking. – user18099 – 2019-01-16T11:43:29.913

1The event viewer helped me a lot. I had a file related to my anti-virus that wouldn't let Windows shrink the partition. It was not open or locked, it just had unusual file permissions: Deny:Read:Administrators. Instead of deleting it, I removed the "Deny" permission and Windows was able to shrink the partition. Before that I used the icacls command with the /save parameter to save the previous state and after shrinking was done, I used icacls again to restore them to the exact previous state. See icacls /? for help. Maybe @user18099 has the same issue? – marcus – 2019-05-12T01:38:30.903

1This answer needs more upvotes. It's the only one that teaches you how to find out what went wrong instead of just guessing. – marcus – 2019-06-25T21:21:16.903

8

The reason why Windows won’t let you shrink the volume is as the message shown in Disk Management suggested, because there are immovable system files at the very end of the volume, as this screenshot from utility shows us. there are multiple things you could try to work this around.

  1. Run the Disk Cleanup Wizard, making sure to remove the hibernation file and all restore points.

  2. Disable System Restore

  3. Disable the pagefile ( Open up System in Control Panel, then Advanced System Settings \ Advanced \ Performance \ Advanced \ Change \ No Paging File.

  4. Disable kernel memory dump. In the same Advanced Settings, go to Startup and Recovery \ Settings and then change the Write debugging information drop-down to “None” to disable the kernel memory dump.

  5. Disable Hibernation mode in your power options \ advanced power options screen.

Reboot the machine, and then delete your c:\pagefile.sys file, following these instructions if you are having issues. details about the fix and cause of this problem, see http://www.disk-partition.com/articles/shrink-volume-not-enough-space-4348.html

varllar

Posted 2016-04-10T13:36:16.383

Reputation: 99

2As in my initial question, I have already resolved that issue. This issue is different. – Eddie Q – 2016-04-12T05:46:30.433

You're answering a different question which is https://superuser.com/questions/1017764/how-can-i-shrink-a-windows-10-partition . This question is about what to do afterwards if shrinking still fails.

– Gilles 'SO- stop being evil' – 2018-04-27T19:49:56.947

2

Something that people haven't mentioned yet is the Master File Table. In NTFS that's where the disk keeps track of where all the files are. By default it is placed in the center of the partition for ease of access, but without a 3rd party program you can't move it to shrink your partition past that halfway point.

jandsm5321

Posted 2016-04-10T13:36:16.383

Reputation: 41

0

As some people mentionned, there are unmovable files on the partition. On Windows 10, fast boot and hibernate create such files, so you have to disable these features before resizing. Here are the steps to disable them (in the "pre-setup" part): https://hackernoon.com/installing-ubuntu-18-04-along-with-windows-10-dual-boot-installation-for-deep-learning-f4cd91b58557

PlasmaBinturong

Posted 2016-04-10T13:36:16.383

Reputation: 186