Right — that’s the right idea. Here’s a safe, step‑by‑step workflow (with exact commands and GUI steps) so you free up contiguous space reliably and avoid surprises. Do a full backup first — moving system files and repartitioning always carries risk.
Before you start
- Backup important files (image or file copy).
- Make sure you have a recovery USB or Windows installation media in case something goes wrong.
Step A — Turn off the things that create immovable system files
1) Turn off hibernation (removes hiberfil.sys)
- Open an elevated Command Prompt (Run as Administrator) and run:
powercfg -h off
- To re‑enable later: powercfg -h on
2) Disable the pagefile temporarily (removes/relocates pagefile.sys)