While trying to Dual boot Windows 10 with Kali Linux 2020 on a single drive. Then for that, you need to create an unallocated volume. Therefore, I faced an error while I wanted to shrink the drive for Kali Linux. The error is the following “You cannot shrink a volume beyond the point where any unmovable files are located. See the “Defrag” events in the application log for detailed information about the operation when it has completed”. When usually you use “Disk Management” to shrink volume for dual footing that the operating system is installed. In that case, you are unable to shrink the volume beyond limited.
When you navigate to Event 259, Defrag the event shows the following
A Volume shrink analysis was initiated on volume (C:). This event log entry details information about the last unmovable file that could limit the maximum number of reclaimable bytes.
Diagnostic details:
-The last unmovable file appears to be" \pagefile.sys::$DATA
-The last cluster of the file is: 0x2cfb8ab
-Shrink potential target (LCN address): 0x1235d53
-The NTFS file flag are:P---D
-Shrink phase:
To find more details about this file please use the "fsutil volume querycluster \\?\Volume{3e191241-0000-0000-0000-100000000000} 0x2cfb8ab" command.
However, I tried many ways then finally I find the solution to this error. And there is a small tool that allows you to shrink the volume with. Download “MiniTool” install it on your PC and shrink the volume if you want to dual boot any operating system. To fix the beyond limited on Disk Management follow my instruction step by step.
You cannot shrink a volume beyond the point where any unmovable files are located
Step 1.
To do it, navigate to my computer then right-click and select Manage. When the computer management opened click down below on “Disk Management”. Once the list of Disk appeared right-click on the disk that you want to shrink. While the Shrink option opened you will see the size of shrink is 0MB, and you are not able to shrink it.

Shrink beyond limited
To fix this, you need some steps to perform. The first step right-clicks on the Windows start menu, and click “Event Viewer”.

Open Event Viewer
When the event viewer window opened, click Windows Log>Application. Then select “Defrag” and click “Filter Current Log…”.

Event viewer
Here select the boxes of “Event Level”, Critical, Warning, Verbose, Error, Information. On the Event, sources check the box of “Defrag” and at last click OK.

Filter current log
In this step, open my computer click on the top menu bar on “View”. Then click on “Options” Once the options window opened click on the “View” tab. Then select the option of “Show hidden files, folder, and drives” and at last click Apply OK.

Open my computer
Once that is done, open the C drive and all the hidden files are now showing there. Usually sometimes the Pagefile.sys occurred this error. But the error on my is hiberfil.sys.

Hidden files
Step 2.
Navigate to Windows start menu and type CMD then right-click and Run as Administrator.

Run as Administrator
Once the command prompt opened type the below code and press enter.
Powercfg /h off
Once the command applied, open the CD drive and check the Pagefile.sys and hiberfil.sys should be disappeared from the list of files.

Files disappeared
Step 3.
Now open the Windows start menu and type “Adjust the appearance and performance of Windows” and press enter.

Adjust the appearance and performance of Windows
When the performance options open, click Advanced click Change. Uncheck the “Automatically manage paging file size for all drives” option. After that, select the option “No paging file” then click “Set” and click “Yes”.

Performance options
Step 4.
In this step, open the Control Panel, when the control panel opened then find out the “Security and Maintenance” and open it.

Open security Maintenance
When the security and maintenance opened. Click “Configure system restore” then select the “System Protection” menu. After that, select Local Disk C and hit “Configure”. In the next window select the “Disable system protection” and click Apply.
NOTE: When all the settings performed restart your computer, restarting is must. Otherwise, you will not be able to shrink the volume.

Configure system restore
Step 5.
Now its done, right-click on my computer and click Manage. While the computer management window pop-up clicks “Disk Management”.

Open disk management
Select the disk which Windows is already installed and right-click and select Shrink.

Shrink the volume
Now select the amount which you want to shrink for Dual booting, and click Shrink.

Shrink
Conclusion
That’s all about You cannot shrink a volume beyond the point where any unmovable files are located. At las, there something remaining to tell you. That’s the settings which you configured then again you have to turn it back as a default. Open the performance options and check the box of Automatically manage paging file size for all drives. Then turn on the system protection, also, Run the CMD as administrator and type the below code and press enter.
Powercfg /h on
However, I hope you have gotten something important from this article. Still, if you are facing the same error then feel free to share with below in the comment section.
Priyansh jain
How doing the steps mentioned I had partitioned my
256gb sad card into 168 and 70 but now many errors are coming like in Google Chrome opening some tabs sometimes comes out of memory so can’t open page….. Is my system Will not work properly now.?