dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.15k stars 657 forks source link

Dokan not working after installation #897

Closed mardy closed 4 years ago

mardy commented 4 years ago

Environment

Check List

Description

After installing the DokanSetupDbg_redist package and rebooting, Dokan does not appear to have been properly setup:

C:\Program Files\Dokan\Dokan Library-1.3.1>dokanctl.exe /v
Driver path: 'C:\Windows\system32\drivers\dokan1.sys'
dokanctl : Dec 16 2019 15:59:55
Dokan version : 131
Dokan Error: Failed to open \\.\Dokan_1 with code 2
Dokan driver version : 0x0

I tried uninstalling and reinstalling it, but after reboot I'm left in the same state.

Mirror output:

C:\Program Files\Dokan\Dokan Library-1.3.1\sample\mirror>mirror.exe /d /s /r C:\Users /l m
RootDirectory: C:\Users
## Attempting to add SE_SECURITY_NAME privilege to process token ##
  success: privilege already present
Dokan: debug mode on
Dokan: use stderr
AllocationUnitSize: 512 SectorSize: 512
Dokan Error: CreateFile Failed \\.\Dokan_1: 2
Can't install driver
Liryna commented 4 years ago

Hi @mardy ,

Have you tried DokanSetup_redist ? the debug version is supposedly to work by configuring windows: https://github.com/dokan-dev/dokany/wiki/How-to-Debug-Dokan#self-sign-build

mardy commented 4 years ago

Hi Liryna! No, I didn't try that, since I thought that the debug version would help me finding issues with my driver. Indeed, the lines from the Howto do fix the problem!

Maybe I just missed it and it's there already, but if not, it might be a good idea to add a note somewhere in the wiki that says that debug builds are not signed.

Anyway, sorry for the noise and thanks for the quick help! :-)

Liryna commented 4 years ago

Done! I added the line https://github.com/dokan-dev/dokany/wiki/Installation 👍 Thanks for your feedback