You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to access Cryptomator-Container from Windows10/WSL #1033
[Summarize your problem.]
I am unable to access cryptomator container from Windows 10/WSL.
System Setup
Operating system and version:
Windows 10 (64bit)
WSL with
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Cryptomator version:
Windows Version of Cryptomator: 1.4.11
inside Windows10/WSL: cryptomator-1.4.15-x86_64.AppImage
Steps to Reproduce
Create a Cryptomator-Container in Windows (file based).
Open Cryptomator-Container inside Windows, i.e. drive letter z:
try to access drive z: from WSL. It is not possible.
alternative
Create a Cryptomator-Container in Windows (file based).
try to install or run Cryptomator inside WSL for opening cryptomator-container there: It is not possible.
Expected Behavior
Have access to files inside the cryptomator container via Windows10/WSL
Actual Behavior
No access is possible:
Reproducibility
always
Additional Information
Message from ./cryptomator-1.4.15-x86_64.AppImage
inside Windows10/WSL
fuse: device not found, try 'modprobe fuse' first
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
sudo mount -t drvfs Z: /mnt/z
[sudo] password for ich:
mount: /mnt/z: wrong fs type, bad option, bad superblock on Z:, missing codepage or helper program, or other error.
<3>init: (40) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0x2000
No error information
Should I use an other mount command to mount the windows cryptomator drive z?
mount: /mnt/z: wrong fs type, bad option, bad superblock on Z:, missing codepage or helper program, or other error.
<3>init: (40) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0x2000
No error information
Well that seems to me like yet another WSL problem, if you can only mount certain file system types. Anyhow, to me this seems to be the more reasonable approach than to launch a GUI tool from within WSL (didn't know this was even possible).
Seems like WSL doesn't access files systems through the Windows kernel but rather uses its own drivers included in the Linux kernel. At least I suspect this, otherwise it wouldn't distinguish between Dokany and plain old NTFS file systems. In that case, neither Dokany not FUSE are working.
I guess, in that case you need different workarounds. Maybe you can run duck.sh from within the Linux shell?
Seems like only a few NTFS variations are currently supported. See also microsoft/WSL#2999 or microsoft/WSL#2896. In the latter issue they mention a workaround using SMB shares.
Another workaround may be to switch from Dokany/FUSE to WebDAV as the vault provider/mount method. If you can access windows localhost servers from WSL this should work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Further testing seems to reveal that between v1.5.6 and v1.5.7 a regression occurred: on v1.5.6 volumes mount fine and work once you fix the above Dokan issue; however v1.5.7 will not mount the same volume:
This appears to be caused because the v1.5.6 installer shipped with a different version dokan1.dll than the newer versions. Oddly enough, copying the old version of dokan1.dll (1.3.0.1000) over the new version (1.4.0.1000) seems to make it work fine, even up to the lastest version v1.5.8.
I've verified that this does not occur on at least two other Dokan filesystems which use the 1.4.0.1000 version of the library, so this makes me think that something inside cryptomator/dokany-nio-adapter is going wrong somewhere.
Here are two event traces of the WSL Plan 9 server being asked to mount a Cryptomator filesystem. Both traces use v1.5.8, but the "old" trace is using the version of dokan1.dll shipped with v1.5.6 and earlier. The old succeeds, and the new fails.
AFACT, this is caused because Plan 9 allocates 34 bytes for the utf-16 filesystem name, so the name can only be 17 characters long. (There's no null terminator.) The Dokan lib was updated in 1.4.0.1000 to return the proper STATUS_BUFFER_OVERFLOW code when there's not enough space to return the full filesystem name.
The underlying issue is that Cryptomator is trying to return "Cryptomator File System", which is too long. "CryptomatorFS" would work though. Should be fixed in #1371.
Activity
overheadhunter commentedon Dec 28, 2019
As long as FUSE can't be used under WSL, it won't be possible to run an AppImage (or mount a Vault using FUSE).
It doesn't seem like FUSE is on the roadmap for WSL, though: microsoft/WSL#1962 (comment)
overheadhunter commentedon Dec 28, 2019
Workaround: Use Cryptomator for Windows, if you use Windows. 😉
ifrh commentedon Dec 28, 2019
@overheadhunter : could please explain your workaround?
My try didn't work.
try to mount Driveletter Z inside WSL like any other windows Driveletter explained here:
https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/
using
Should I use an other

mountcommand to mount the windows cryptomator drive z?ifrh commentedon Dec 28, 2019
Oh yes, there a two workarounds:
use Windows tools if you want to use Windows.
use a real Linux if you want to use Linux tools.
:-)
overheadhunter commentedon Dec 28, 2019
Well that seems to me like yet another WSL problem, if you can only mount certain file system types. Anyhow, to me this seems to be the more reasonable approach than to launch a GUI tool from within WSL (didn't know this was even possible).
Seems like WSL doesn't access files systems through the Windows kernel but rather uses its own drivers included in the Linux kernel. At least I suspect this, otherwise it wouldn't distinguish between Dokany and plain old NTFS file systems. In that case, neither Dokany not FUSE are working.
I guess, in that case you need different workarounds. Maybe you can run duck.sh from within the Linux shell?
overheadhunter commentedon Dec 28, 2019
Seems like only a few NTFS variations are currently supported. See also microsoft/WSL#2999 or microsoft/WSL#2896. In the latter issue they mention a workaround using SMB shares.
infeo commentedon Jan 13, 2020
Another workaround may be to switch from Dokany/FUSE to WebDAV as the vault provider/mount method. If you can access windows localhost servers from WSL this should work.
stale commentedon Jul 12, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
mrnerdhair commentedon Oct 8, 2020
This appears to be caused by dokan-dev/dokany#932, and should be fixed by dokan-dev/dokany#933.
mrnerdhair commentedon Oct 11, 2020
Further testing seems to reveal that between v1.5.6 and v1.5.7 a regression occurred: on v1.5.6 volumes mount fine and work once you fix the above Dokan issue; however v1.5.7 will not mount the same volume:
This appears to be caused because the v1.5.6 installer shipped with a different version
dokan1.dllthan the newer versions. Oddly enough, copying the old version ofdokan1.dll(1.3.0.1000) over the new version (1.4.0.1000) seems to make it work fine, even up to the lastest version v1.5.8.I've verified that this does not occur on at least two other Dokan filesystems which use the 1.4.0.1000 version of the library, so this makes me think that something inside cryptomator/dokany-nio-adapter is going wrong somewhere.
mrnerdhair commentedon Oct 11, 2020
Here are two event traces of the WSL Plan 9 server being asked to mount a Cryptomator filesystem. Both traces use v1.5.8, but the "old" trace is using the version of
dokan1.dllshipped with v1.5.6 and earlier. The old succeeds, and the new fails.p9trace-cryptomator.zip
Screenshots for those who hate the Windows Performance Analyzer (like me):
Old:

New:

Note the Rlerror reply; 75 is EOVERFLOW. This is Plan 9's translation of STATUS_BUFFER_OVERFLOW.
shorten FS_TYPE_NAME to "CryptomatorFS"
mrnerdhair commentedon Oct 11, 2020
AFACT, this is caused because Plan 9 allocates 34 bytes for the utf-16 filesystem name, so the name can only be 17 characters long. (There's no null terminator.) The Dokan lib was updated in 1.4.0.1000 to return the proper STATUS_BUFFER_OVERFLOW code when there's not enough space to return the full filesystem name.
The underlying issue is that Cryptomator is trying to return "Cryptomator File System", which is too long. "CryptomatorFS" would work though. Should be fixed in #1371.
shorten FS_TYPE_NAME to "CryptomatorFS" (#1371)
tobihagemann commentedon Nov 11, 2020
Fixed in #1371