- Disable hybernation: run
powercfg.exe /hibernate off
pagefile.sysin the file explorer
c:\dir -hto confirm ‘hyberfil.sys’ and ‘pagefile.sys’ are deleted
- Clear recycle bin
- unplug internet
- Resize partition
If ‘not enough space available’ error is found, go to the Event log viewer and find out which file is stuck
Try launching the Event Viewer to see which individual files are blocking the partition shrink.https://superuser.com/questions/1063692/cannot-shrink-c-partition-not-enough-space
Once again, attempt to shrink the partition. You should get the “There is not enough space” error.
Launch Windows’ Event Viewer application.
In Event Viewer, go to Windows Logs > Application.
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)
The Diagnostic details will give you the name of the “last unmovable file”
Delete this file (Simply send to recycle bin. I did not need a hard delete).
Try shrinking your volume again.
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’.).
Restore your deleted files.