Skip to content
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

Open
marinkobabic opened this issue Jan 20, 2016 · 15 comments
Open

RAMDisk Storage Driver Sample #44

marinkobabic opened this issue Jan 20, 2016 · 15 comments

Comments

@marinkobabic
Copy link

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.

@tchaudev
Copy link

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.

@marinkobabic
Copy link
Author

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.

@tchaudev
Copy link

Thanks for the info.

@tchaudev
Copy link

tchaudev commented Mar 4, 2016

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.

@wzydhek
Copy link

wzydhek commented May 22, 2016

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).

@szabolcsdombi
Copy link

I have a virtual machine with Windows x64. the driver installs properly with the devcon.exe. The R: drive appears. When I try to open it I get an "Access Denied" error. Running a cmd as administrator and running R: I get "Incorrect function."

What is the solution for this?

@tchaudev
Copy link

See pull request #53

@szabolcsdombi
Copy link

@tchaudev I forked your repo. I had some build errors in the inx file. I fixed them. It is not working either :(
I always test using a snapshot of a clean Windows install.

Did you test on Windows 10 x64?

@tchaudev
Copy link

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.

@szabolcsdombi
Copy link

Thank you! At least I know where to start. :)

@chebotarevmichael
Copy link

@tchaudev, could you open source code of your sample for RAMdisk? It was not found in samples :(

@tchaudev
Copy link

@chebotarevmichael you'll have to get the code from my fork: https://github.com/tchaudev/Windows-driver-samples

@wonderkun
Copy link

@cprogrammer1994
I run ramdisk on windows10 x64 without any errors. But no one can access it except the administrator. I can only read and write it with Command Prompt window as Administrator. How to fix it ? please help me ,thank you very much.

@tchaudev
Copy link

@wonderkun, I haven't tried it, but check out Jichao comment: #53 (comment)

@wonderkun
Copy link

@tchaudev Thank you very much. I fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants