Important information for those who struggle to shrink the partition even taking all steps mentioned in the accepted answer.
It is possible to get the information what is the last unremovable file, which disturbs the shrinking process and delete it.
Look for the solution below.
Obviously, you can use 3rd party software, which I also tried to use, but most of the cases free versions will allow you only to shrink when running the system - for the bootable versions in most cases you need to pay.
Before you start, important things to remember:
- Don't treat your SSD drive with any of defragmentation tools, because you can damage it or make it live shorter.
- Before you start to play with partition tools, make a backup of important data.
BACKGROUND:
In my case under Windows 10 ran on SSD drive I performed all steps mentioned in this tutorial, which are:
- Disable pagefile.
- Disable hibernation.
- Disable system protection.
- Disable the kernel memory dump
- Restart the system.
It didn't work. I also performed partition optimization process, but it also didn't work. I keep getting the message:
You cannot shrink a volume beyond the point where any unmovable files are located
I've also tried MiniTool Partition Wizard Free
, however like mentioned above, I was unable to shrink while running the system. I've been asked to reboot, however the application froze. Fortunately, I was able to cancel the process without losing any data - system booted normally. One of the suggestions was to use bootable version, which is not free. So I dug more and found the solution.
SOLUTION:
It is possible to get the information what is the last unremovable file, which disturbs the shrinking process. Simply you need to run the Event Viewer.
- Start Menu > Run > eventvwr.msc
- In the left panel choose “Windows logs” > “Application”.
- Check last Defrag events details to see what is the possibly last unremovable file.
- Remove the file. If the file is somehow related to the system and protected, Google for a solution with the filename as a query.
- Perform partition shrinking attempt again.

If you succeed, remember to:
- Enable pagefile.
- Enable hibernation.
- Enable system protection.
- Enable the kernel memory dump
In my case, I need to look for last unremovable file 3 times and after each deletion, I was able to shrink the partition a little bit. Basically, you jump from the last unremovable file to another, until you reach the desired partition volume. It can take some time but still, you are able to do it without third-party apps.
I've found the solution there and sharing it here hope it will help more people.