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
Map the samba share as a network drive (this may be optional - I did it to save the proper credentials)
Open WSL and mount the samba share as your home directory (e.g. sudo mount -t drvfs //host/share /home/$USER)
Expected Behavior
Terminal works mostly normal
Actual Behavior
If you try to do this in your fstab, launching WSL via Windows Terminal directly gives an Access Denied error. Launching via cmd/powershell gets you a functional terminal, but it's awfully slow. Taking it out of our fstab and mounting it manually after the fact allows you to get in, but again, things are horribly slow.
Also, the whole WSL file system seems to become read-only (or has some weird permissions issue). This happens both from within the terminal and via the \\wsl$\ share
Interestingly, if I mount it elsewhere, performance in that filesystem itself seems to be quite good. I'm guessing it's a massive permissions clusterf##k?
My goal here is to share my home directory between WSL and the rest of my Linux infrastructure (where it's much easier to do so via nfs!)
Diagnostic Logs
Tried to get logs while it's in this state, but the Feedback Hub "recording" wouldn't start. Running it manually as suggested gives me the following:
Access is denied.
Profile Id: WSL.Verbose.File
Error code: 0x80070005
Access is denied.
The text was updated successfully, but these errors were encountered:
@kaysond just out of curiosity, when you tried mounting it as a network drive via mount -t drvfs did you escape the windows network drive name, either as sudo mount -t drvfs '\\host\share' or sudo mount -t drvfs \\\\host\\share? Just want to clear that out of the way before digging deeper. Lmk if that helps!
@owenschupp I used forward slashes //host/share because the host name starts with 3 and I couldn't figure out how to properly escape \\3 in /etc/fstab (which is how I started trying to do the mount) because it kept turning \3 into some other character.
@owenschupp any ideas how to debug this further? Just set it all up again, and its still a mess! Interestingly, I get slightly different (improved, maybe?) behavior when I map the network drive in Windows, then mount via Z: instead of //host/share.
I also noticed that on occasion, I get a error: Error when renaming history file: No such file or directory message from my shell. This makes me think that for whatever reason, the drvfs mount is intermittently not providing access to the underlying files.
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.
Version
Microsoft Windows [Version 10.0.19043.1526]
WSL Version
Kernel Version
5.10.60.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
sudo mount -t drvfs //host/share /home/$USER
)Expected Behavior
Terminal works mostly normal
Actual Behavior
If you try to do this in your fstab, launching WSL via Windows Terminal directly gives an
Access Denied
error. Launching via cmd/powershell gets you a functional terminal, but it's awfully slow. Taking it out of our fstab and mounting it manually after the fact allows you to get in, but again, things are horribly slow.Also, the whole WSL file system seems to become read-only (or has some weird permissions issue). This happens both from within the terminal and via the
\\wsl$\
shareInterestingly, if I mount it elsewhere, performance in that filesystem itself seems to be quite good. I'm guessing it's a massive permissions clusterf##k?
My goal here is to share my home directory between WSL and the rest of my Linux infrastructure (where it's much easier to do so via nfs!)
Diagnostic Logs
Tried to get logs while it's in this state, but the Feedback Hub "recording" wouldn't start. Running it manually as suggested gives me the following:
The text was updated successfully, but these errors were encountered: