Menu

Autostart for pagefile.sys

solara
2024-10-28
2024-10-28
  • solara

    solara - 2024-10-28

    Hello. I want to use imdisk for pagefile to test some things.
    When I run it via scheduler as
    imdisk -a -t vm -s 500M -m P: -p "/fs:ntfs /q /y" -o fix
    I get a system error saying pagefile can't be mounted
    when I configure the RAM drive via Toolkit (checkbox "Launch at Windows Startup")
    I get the same error (see attachment)

    My question here is how to use ImDisk to mount a disk suitable for pagefile.

     
  • v77

    v77 - 2024-10-28

    When Windows starts, it checks for a pagefile on a drive that does not yet exists.
    You have to create the pagefile after the drive is created (and so, not with the options of Windows). You can do that for instance with "swapadd", a commande line utility available here:
    https://ltr-data.se/opencode.html/#CmdUtils

     

    Last edit: v77 2024-10-28

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.