The hibernate and page files are low level system files. Both are used to temporarily store system memory (RAM) on non-volatile storage (disk or ssd).
Hibernation—also called suspend to disk—is powering down a computer while retaining its state (so, for example, word processor files being worked on don't have to be saved first). When the system is powered on again, the RAM image data is restored from the "hibernate image and the system proceeds as though it had not been powered down at all.
Paging is a central characteristic of virtual memory systems where each program is given the illusion that its process-specific memory space is all of the address space on the computer. That illusion is provided by moving not-recently-used small blocks (commonly 4,096 bytes, but sometimes larger—32 KiB, 1 MiB, 16 MiB, 1 TiB) of memory to disk until needed. When a program accesses memory which has been paged out, a low level CPU operation called a "page fault" is attended to by the o/s kernel to bring the page back into memory and then resumes the program seamlessly at the faulting instruction so it can execute as though the page had been in memory all along.
Both paging and hibernation are implemented at the lowest levels of the operating system. As a result, it is inconvenient and messy for a disk defragmenter to cleanly move the disk blocks of those files around while they are potentially in use. To greatly simplify programs which might do that, it is easier to recognize these files and prohibit such operations.
They are movable but not while booted into windows, you need a third party partitioning tool that you boot from, then any of them can be moved. – Moab – 2019-09-12T20:23:33.447
4
Possible duplicate of How can I shrink a Windows 10 partition?
– Moab – 2019-09-12T20:26:34.2575@Moab I'm not asking how to shrink or remove them. There are tons of sites that mentions this. I'm just asking Why! – kelalaka – 2019-09-12T20:28:29.547
3"I'm trying to shrink my partition" Because they are in use by Windows and some are protected, just cant move them while booted into windows. – Moab – 2019-09-12T20:29:41.943
While running hibernation is used? It should be used only when going to hibernate. – kelalaka – 2019-09-12T20:31:57.173
Its still locked by Windows. – Moab – 2019-09-12T20:33:04.283
Voted to close as a duplicate, since we don't need yet another question, that explains how to disable the pagefile, hibernation file, in order to then recreate it at a different part of the disk. – Ramhound – 2019-09-12T22:39:49.393
2@kelalaka: Windows 10 makes hibernation faster by preparing in the background, when it's got nothing else to do. – MSalters – 2019-09-13T09:13:46.663
1You might as well ask why you can't rip out the RAM/memory and replace it while windows is running. pagefile is on-disk memory. – freedomn-m – 2019-09-13T09:58:04.000
@freedomn-m That still doesn't explain why it is not movable. – glglgl – 2019-09-13T11:40:55.797
8
This is actually a duplicate of Why are some files unmovable when shrinking a partition in Windows? Sadly, the only "answer" at the older question fails to answer it at all. This is not a new issue, nor is it specific to Windows 10. Given the superior quality of the answers here, I'd almost be tempted to suggest removing the "windows-10" tag from this question and making it the canonical version (marking the older question as a dupe to this one).
– jmbpiano – 2019-09-13T18:06:04.497@jmbpiano I see no problem with your approach. If you're still hesitant or looking for more support, take it to meta and I'm sure you'll find it. – Mast – 2019-09-15T06:16:58.413
1You can't move files on Windows which have an open file handle. I believe this is different on Linux as even if you were to delete file when there is an active handle, the handle is still valid in that it still points to the original data which isn't actually deleted until the last handle is closed (despite the file no longer having any reference in the file tree). – Zhro – 2019-09-15T08:58:40.860