07-22-2025, 09:32 PM
(07-22-2025, 06:29 PM)bacevs Wrote:(07-21-2025, 01:17 PM)admin Wrote: When booting Windows on a VHD(X) in Native Boot Mode (where Windows To Go belongs) instead of Virtual Machine Boot Mode, page files cannot be created in the VHD(X), which is a Microsoft limitation. Please refer to:
https://learn.microsoft.com/en-us/window...quirements
Here, Microsoft mentioned "The local disk partition that contains the VHDX file needs enough free disk space to expand a dynamic VHDX to its maximum size and to create the page file during the VHD boot process. The page file is created outside the VHDX file, unlike with a virtual machine where the page file is contained inside the VHD."
So to create page files for VHD(X)-based WTGs, you should ensure that the physical partition where the VHD(X) files are stored has enough free space and set the page files to be created in that physical partition.
That helped me resolve the persistent paging file issue with my Portable Windows 11 setup (booting via VHDX on a USB-C NVMe enclosure). Initially, I had set the VHDX file almost to the same size as the drive, essentially filling up all available space on the physical SSD. By shrinking the internal partition and the VHDX itself, I freed up enough space on the host drive. With this change, I was able to set the paging file on the physical SSD (outside the VHDX), which fixed the error about temporary paging files appearing on every reboot. Thank you for highlighting the Microsoft limitation and clearly explaining that, when booting natively from a VHD(X) file, the paging file must reside on the underlying physical disk.
Glad to hear that. Have a nice day!