Giter Site home page Giter Site logo

Comments (5)

LTRData avatar LTRData commented on July 29, 2024

First of all, It is typically a very bad idea to try to put a page file on a VM type disk. They are backed by virtual memory that may get swapped out to disk, which could effectively mean that the page file might be stored in itself which will cause system hangs when data is swapped in to physical memory again.

If you really need a paging file in a RAM disk for some reason, at least drop -t VM and use -o awe instead. But I would also recommend that you check what happens if you instead run Windows without any page file at all (set to none in page file settings in Windows). In most cases that works perfectly and if it does not with some application, you could use my swapadd tool to create a paging file manually when system is running. You can even add swapadd to your script after the imdisk command to automatically create the paging file at that point to make sure that things happen in the correct order for it to work.

Swapadd tool is available here:
https://ltr-data.se/opencode.html

from imdisk.

lazarusUser avatar lazarusUser commented on July 29, 2024

Thank you for reply.
So what is about to be done:
Imdisk_start.cmd:
imdisk -a -o awe -s 10G -m Z: -p "/fs:ntfs /q /y"
swapadd Z:\pagefile.sys 1024M 1024M

And there are four options to run this file on startup:
Registry; \Startup; Task Scheduler; gpedit

Aside of all there is a question for me: why the built-in option "mount on startup" does not work?
Or I was doing something wrong?
I have seen that this problem was discussed on "reboot" in 2011.
But may be there is a certain solution with the last versions of ImDisk?

Other questions:

  1. As far it seems, that GUI and the driver are different. Is it possible to use the most pleasant (for me) GUI with the most efficient driver ( latest?, best working for me?)
  2. And where to see the whole list of files added to system?
  3. Which IDE to use to change the GUI and add some additional options? (like automatically add swapadd, rawcopy, example cmd-s, task to Task Sheduler, or at least an example xml to the folder of choice?)

from imdisk.

LTRData avatar LTRData commented on July 29, 2024

The mount on startup command option -p should work, but it is a bit limited. It cannot format file systems for example, so you would need to have an image file pre-loaded with a file system that could be loaded into memory instead. But that takes some time and is typically not a recommended way to do this. Your script with -o awe followed by swapadd should be better in most cases.

Source code for the Control Panel applet is in this repository. It should be possible to open with latest Visual Studio versions, but you might need to install several additional components like WDK and similar because the solution also contains driver projects.

If you are on the other hand referring to ImDisk Toolkit, that is a different thing and is not included here and not developed by me. It is developed by "v77" and is available in a SourceForge repository:
https://sourceforge.net/projects/imdisk-toolkit/

from imdisk.

lazarusUser avatar lazarusUser commented on July 29, 2024

So far understand it so (trying to figure out a manual):

  1. install ImDisk
  2. copy swapadd and rawcopy to Windows\system32
  3. prepare an image file in... C:\images\Z.img //formatted NTFS with command:
    imdisk -a -o awe -s 5G -m Z: -p "/fs:ntfs /q /y"
    Then
    rawcopy -mld \\.\Z: "C:\images\Z.img"
  • thus getting an image formatted to NTFS
  1. prepare a Start.cmd:
    imdisk -a -o awe -f "C:\images\Z.img" -m Z:
    swapadd Z:\pagefile.sys 1024M 1024M
  2. put Start.cmd to startup by means of any approach or try with ImDiskToolkit...
    //In case you know: is it right, that ImDiskToolkit just sends the same command line commands to imdisk?

If you suggest no corrections - will keep this as a manual.
Thank you in advance.

from imdisk.

LTRData avatar LTRData commented on July 29, 2024

Yes, it gets a bit unnecessarily complicated in the beginning though. You could just mount the image file directly, format it and dismount it. You do not need rawcopy for that.

Instead of #3, you could do this:

imdisk -a -f "C:\images\Z.img" -o sparse -s 5G -m Z: -p "/fs:ntfs /q /y"
Followed by
imdisk -d -m Z:

That will save a lot of time.

from imdisk.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.