-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAMDisk Storage Driver Sample #44
Comments
Did you ever figured out this issue? I'm having a similar problem, except I don't even see the drive 'R' in explorer. When using the Command Prompt I'm also getting "incorrect function", and a "DriveNotFoundException" when using PowerShell. |
In the example FILE_SYSTEM_DISK is used. So when the drive gets the first request it tries to mount the volume. The mounting of the volume is not handled properly in the example and that is the reason we get this error message. On the web a have found the previous version of ramdisk for x86 operating system and this example is working as expected. It has been built for windows 2000/xp. |
Thanks for the info. |
I updated the RAMDisk driver sample so that drive "R:" can be accessed via command line in Windows 10. Please see pull request #53, if you're interested. |
I have the latest version and have it working correctly in my hyper-v machines, but I still get the incorrect function when using it on my host machine (also windows 10 x64). |
I have a virtual machine with Windows x64. the driver installs properly with the devcon.exe. The What is the solution for this? |
See pull request #53 |
@tchaudev I forked your repo. I had some build errors in the inx file. I fixed them. It is not working either :( Did you test on Windows 10 x64? |
Yes, I tested on Windows 10 x64, but that was a long time ago. It is possible that the fix is out dated. That said, the problem was pretty simple. The reason why you get access denied is because the Ramdisk driver was not handling IOCTL queries that was introduced in Windows 10. If you update the code to properly handle those IOCTL, then everything should work. |
Thank you! At least I know where to start. :) |
@tchaudev, could you open source code of your sample for RAMdisk? It was not found in samples :( |
@chebotarevmichael you'll have to get the code from my fork: https://github.com/tchaudev/Windows-driver-samples |
@cprogrammer1994 |
@wonderkun, I haven't tried it, but check out Jichao comment: #53 (comment) |
@tchaudev Thank you very much. I fix it. |
Have installed the ramdrive on Windows 10 x64. I used the manual installation approach. The device was mounted and I have been able to see the drive R in explorer. When running the cmd console as administrator and trying to switch to the drive R: "incorrect function" message is displayed.
The text was updated successfully, but these errors were encountered: