-
Notifications
You must be signed in to change notification settings - Fork 855
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
How to mount the new BoxDrive which is some kind of fake volumn. #4310
Comments
Not familiar with BoxDrive, but from your symptoms this is basically same #1954 #2163 #2999 #2896 #1962, others. De facto by design, because WSL does not (and practically speaking cannot) support all third-party installable filesystems. You can try WSL2 and see if that fares any better, as it uses a different mechanism in the WSL->Windows direction.
BoxDrive wouldn't be supporting 'Linux' in your specific scenario, which is WSL1. WSL1 is really Windows. The problem (if that's the word) is WSL1 is expecting more from their Windows implementation of their filesystem (contrast a Real Linux user asking for Real Linux support). But, a practical matter, yeah, they aren't likely to look into their Windows driver either unless they are seeing a mad rush of WSL1 users asking. And they aren't, so moot. There is also fading hope WSL1 will get improved support for third-party IFS on WSL1 because efforts have shifted to WSL2. But don't lose all hope on this one. Give WSL2 on Insiders a try when you can (or wait until 20H1). It might work. If it doesn't work, posting the update will keep your submission alive. |
Hi @therealkenc -- I'm pretty sure I am using WSL2. I'm not 100% sure because some things like easy file access between windows, auto-launching VS Code, and file system speed don't seem to match up. However, I do get:
So I might be in some sort fo grey area if that's possible. |
That's one way to put it. :) You are on 10.0.18362.239. WSL2 didn't become available until 18917. So, you're on WSL1. That said, you're not wrong about that n.b. I don't know that BoxDrive will work on WSL2 because I haven't tried. And looking at your And, on WSL2 you have the option of using Real Linux |
The two things that clued me in are
I thought WSL2 was available after the May 1903 update, but I guess not. When will it be available for me? |
Incidentally:
|
20H1 (first half of 2020). Some time around Spring of 2020. But you can try WSL2 out now on Insiders. |
Yup. I think I'll do that. But need to get to a stopping point with work first in case it explodes! Thanks! |
Hi, I'm still experiencing the same issue. Did something change in the meantime? |
At least with WSL2, I was able to mount the Box Drive by specifying the DOS path as the source for the drvfs mount (
|
@darkrain42 You are an absolute genius, thank you! I noticed that when my computer restarted, it un-mounted the drive. But it was as simple as re-running |
It used to work for me, but for some reason now I'm getting the following error:
does anyone have an idea of what that means to point me in the right direction? :( UPDATE: If I change the |
To work around this you can add: You will be prompted for your linux password each time you log in though. |
Mostly untested, but put something like this in your if ! findmnt -M /mnt/box &>/dev/null; then
sudo mount -t drvfs 'C:\users\username\box' /mnt/box
fi And put this in /etc/sudoers.d/box (
The local user must be in the sudoers group. And the sudoers file escaping is a bit, erm, non-obvious. |
@darkrain42 I messed this up (produced a no valid sudoers sources found) error but fortunately was able to remove the problematic box file by typing |
If you can already run "sudo ...", you're probably already in the "sudo" (sudoers) group. You can run On Debian/Ubuntu, otherwise, to add a user to a group,
Yeah, that's a hazard of editing the sudo files (and why I suggested editing it via visudo, which attempts to prevent the user from locking themself out). It happens, though! |
I had this problem, and was able to fix it using Once that is done, the folders are mounted Once I added So to future people here like I was, give that a try:
NOTE: bashrc isn't processed in time if you use the context menu to "Open Linux shell here". You can get around this by having WSL run as soon as you log in, and keep running. See https://medium.com/swlh/how-to-run-ubuntu-in-wsl2-at-startup-on-windows-10-c4567d6c48f1 |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Please use the following bug reporting template to help produce issues which are actionable and reproducible, including all command-line steps necessary to induce the failure condition. Please fill out all the fields! Issues with missing or incomplete issue templates will be closed.
If you have a feature request, please post to the UserVoice.
If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.
Important: Do not open GitHub issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to secure@microsoft.com. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
Please fill out the below information:
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18362.239]
Trying to copy files to the new BoxDrive.
I get a permission error if I try to access the folder. A different error if I try to mount.
The Box folder is actually located in
...\AppData\Local\Box\Box
, but there aren't files there. It's a sort of database. I have no idea what method they are using to create the volume that appears in my C drive.You could kick me back to Box on this one, but they have steadfastly refused to support linux of any kind. So perhaps if Windows folks know what kind of drive protocol they are using, there might be a way to map it from WSL.
Strace of the failing command, if applicable: (If
some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here).For WSL launch issues, please collect detailed logs.
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: