RAM Disk keeps files and folders after shutdown (fixed)

So you installed RAM Disk (for example IMDisk which is free and really good), you created a RAM Disk, and thought after reboot all data would be gone. To your surprise though, the data are persistent!
What’s going on, and what should you do?

What’s going on
Windows 10 has a feature called hybrid boot. When you shut down a hybrid boot system, it saves the current system state to the hard disk before switching off. On boot, it restores the system state back into memory. The saved state includes any RAM Disks, which means that files and folders stay on a RAM Disk between sessions.

What should you do
Disable the hybrid boot permanently.

Open an elevated command prompt and type

REG ADD “HKLMSYSTEMCurrentControlSetControlSession ManagerPower” /V HiberbootEnabled /T REG_DWORD /D 0 /F

Alternatively, if you don’t hibernate your PC at all, and want to save a few GBs of disk space, you can disable hibernation. This will permanently deactivate the hybrid boot as well. For that, in an elevated command prompt type

powercfg /h off

—————-
Disclosure, original source: Original source

Scroll to Top