Comments (7)
Thanks for the report!
Since ImDisk is deprecated and very rarely changed nowadays, it has very low priority and it will take a few weeks before I can start looking at it.
Have you looked at alternatives such as Arsenal Image Mounter instead? The aim_cli.exe command line tool mounts images supported by DiscUtils libraries as full disks and is usually better and more compatible with modern Windows versions. https://github.com/ArsenalRecon/Arsenal-Image-Mounter/
Well the general advantages of Arsenal Image Mounter are in my actual use case more disadvantages, I don't want the mounted images to be visible in Disk Manager. The idea is to mount up to a couple dozen images to folders and use them transparently.
Sometimes less is better LOL,
hence a fix would be greatly appreciated.
from imdisk.
Thanks for the report!
Since ImDisk is deprecated and very rarely changed nowadays, it has very low priority and it will take a few weeks before I can start looking at it.
Have you looked at alternatives such as Arsenal Image Mounter instead? The aim_cli.exe command line tool mounts images supported by DiscUtils libraries as full disks and is usually better and more compatible with modern Windows versions.
https://github.com/ArsenalRecon/Arsenal-Image-Mounter/
from imdisk.
And shortly there after the entire system becomes unresponsive and needs to be hard reset.
This part of the stack is suspiciously equal: #15
11, KernelBase.dll!WriteFile+0x7b
12, kernel32.dll!WriteFile+0x36
13, DomainNeutralILStubClass.IL_STUB_PInvoke(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte*, Int32, Int32 ByRef, IntPtr) + 0xc8 <-- mscorlib.ni.dll+0x63c9e8
14, System.IO.FileStream.WriteFileNative(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte[], Int32, Int32, System.Threading.NativeOverlapped*, Int32 ByRef) + 0x83 <-- mscorlib.ni.dll+0x5ad683
15, System.IO.FileStream.WriteCore(Byte[], Int32, Int32) + 0x5d <-- mscorlib.ni.dll+0x5ad5dd
from imdisk.
And shortly there after the entire system becomes unresponsive and needs to be hard reset.
This part of the stack is suspiciously equal: #15
11, KernelBase.dll!WriteFile+0x7b 12, kernel32.dll!WriteFile+0x36 13, DomainNeutralILStubClass.IL_STUB_PInvoke(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte*, Int32, Int32 ByRef, IntPtr) + 0xc8 <-- mscorlib.ni.dll+0x63c9e8 14, System.IO.FileStream.WriteFileNative(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte[], Int32, Int32, System.Threading.NativeOverlapped*, Int32 ByRef) + 0x83 <-- mscorlib.ni.dll+0x5ad683 15, System.IO.FileStream.WriteCore(Byte[], Int32, Int32) + 0x5d <-- mscorlib.ni.dll+0x5ad5dd
Not really sure what you mean. That is the implementation of writing to a .NET FileStream
by calling Win32 WriteFile
API.
from imdisk.
Not really sure what you mean. That is the implementation of writing to a .NET FileStream by calling Win32 WriteFile API.
The dead lock was around the WriteFile in all cases. Looks like the dead lock inside the Win32 API.
from imdisk.
Not really sure what you mean. That is the implementation of writing to a .NET FileStream by calling Win32 WriteFile API.
The dead lock was around the WriteFile in all cases. Looks like the dead lock inside the Win32 API.
Yes, but the deadlock is probably in the file system due to some kind of lock needed to flush the write operation, but the same lock is already held elsewhere in the file system mounted on the virtual drive, waiting for the write operation to complete.
I can investigate this in a few weeks probably. But if possible, I strongly recommend trying some other image mounting tool than ImDisk when things like this happen.
from imdisk.
I have updated DiscUtilsDevio to use latest DiscUtils with some fixes that could potentially solve this. The same changes in DiscUtils has solved similar issues in other projects at least.
https://ltr-data.se/opencode.html#ImDisk
There are now three versions of DiscUtilsDevio. For .NET Framework 4.6, .NET Framework 4.8 and .NET 6.0. If you have .NET 6.0 installed, try that version first. It makes use of several modern optimizations in .NET runtimes. Otherwise, try the 4.8 version.
from imdisk.
Related Issues (19)
- 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
- Not creating RamDisk on early startup before PageFile initialisation versions(2015 to 2022-08-26) HOT 5
- Enhancement: Unable to create taskbar entry on windows taskbar HOT 1
- An unnecessary virtual disk is automatically created HOT 1
- Unable to run 2.1.1 installer HOT 10
- 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
- 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
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.