Comments (5)
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.
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:
- 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?)
- And where to see the whole list of files added to system?
- 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.
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.
So far understand it so (trying to figure out a manual):
- install ImDisk
- copy swapadd and rawcopy to Windows\system32
- 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
- prepare a Start.cmd:
imdisk -a -o awe -f "C:\images\Z.img" -m Z:
swapadd Z:\pagefile.sys 1024M 1024M
- 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 toimdisk
?
If you suggest no corrections - will keep this as a manual.
Thank you in advance.
from imdisk.
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)
- Unable to run 2.1.1 installer HOT 10
- The build date and download size on https://ltr-data.se/opencode.html have changed, but the version number has not HOT 2
- Implementation of multilingual application HOT 1
- ImDisk doesn't seem to be compatible with Firefox HOT 14
- Installation fails on Windows 11 for ARM64 HOT 4
- Is this the right setup for RAM disk? HOT 23
- Unable to unmount: access denied HOT 8
- Compression and Encryption functionality? HOT 3
- There is some sort of problem when accessing elements inside an ImDisk based disk. HOT 9
- Mount and unmount issue HOT 19
- Request: CSO Support HOT 2
- Hangs on write into .vdi or .vmdk mounted image HOT 11
- Deadlock when using a proxy with an image file HOT 7
- Enhancement: Unable to create taskbar entry on windows taskbar HOT 1
- An unnecessary virtual disk is automatically created HOT 1
- Is there a way to make my new memory virtual disk invisible to other users on the same machine? HOT 2
- Some executables are not able to call Windows APIs correctly when put inside the ramdisk HOT 1
- In Windows 10, when setting virtual memory on the disk created by LmDisk, there will be an error during startup. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imdisk.