-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
error: Mounting 'C:\Program Files\usbipd-win\WSL' within WSL failed. #856
Comments
Since 4.1.0, there will always be a new mount point created (the one you list does not always exist, or as a different path, or non-executable). After failure, what is the output of (in WSL):
What is the output of the following commands (as root, so possibly prepend
NOTE: please include all the quotes, these are the exact commands that |
I tried messing with the mount options, but no matter what I do, it either mounts it but ignores |
i have the same issue to my kali-linux WSL2 on windows pc |
Note how the error included "rw," and separates with a comma, where the other options are separated with a semicolon. Also, it turns out that we do not need uid/gid, and mounting with "ro" is actually better. Could you try:
This also works on Ubuntu (which appears to accept both semicolon and comma). Hopefully we'll find a syntax that works everywhere... |
This works, and while the umask option doesn't show up under
Setting a different Weirdly, the automatic mounts of the Windows drives use
|
That's a bug of the mount command; it truncates the output after the whitespace in the path. Try
Yeah, that's how I came up with the original syntax. Thanks for testing, I will change the mount command to use comma's instead. |
@kaeltis @Hammerflame |
With the dev installer everything is working again and the mount is there, thanks a bunch!
|
4.1.1 worked for me too (same issue). thanks |
Can confirm:
|
You planning to cut a 4.1.1 release soon? I'm running into this too |
@jrozner |
I installed the lastest master:
And performed the steps instructed here. However, I still cannot attach an USB device; here's the relevant output:
|
I already used |
--force sometimes requires a reboot |
I see. |
--force is permanent and survives reboot. |
FYI i had the same error When i ran But your recommendation of running the following from within WSL
worked fine. I tried downloaded the latest master and installing it
but that didn't seem to work, it still threw the same error In the end i just added the two commands to create and mount the directory to my nixos configuration.nix as follows:
|
@quispiam |
@dorssel yeah, I had exactly the same error as the OP:
Then i found this github issue. I check the directory and it wasn't being created, so i created it manually from within my Nixos WSL2 instance and then it worked fine. There may be something weird about Nixos - i'm very new to it but people say it does do some things different to more standard linux distros like ubuntu. My default shell is:
|
Hi, since updating to 4.1.0 I can no longer attach devices to my Arch WSL2 instance.
When trying
usbipd attach -w -b 5-3
I get the message:However, I can access the folder from within WSL without problems:
Since
WSL
is uppercase in the message, I tried renaming the folder, but that didn't solve the issue.The text was updated successfully, but these errors were encountered: