-
Notifications
You must be signed in to change notification settings - Fork 821
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
Mount network drives in wsl #5302
Comments
I have two network drives that behaves the same way.
Linux version
If I use the IP address of the servers I get this:
|
Aren't you missing a backslash? Seems like the command should be: sudo mount -t drvfs '\192.168.64.1\TimeCapsule' /mnt/TimeCapsule -o "metadata,rw,noatime,uid=1000,gid=1000,umask=22,fmask=11"; With 2 slashes? |
Unfortunately not. I think this editor eats the backslash. If I write it in another way, I get the same result:
-- Eigil |
It's not your syntax. If you are seeing
It is possible there was a regress. If there was we can expect some me2s to roll in. What was the previous working Win10 build? One data point that is useful: Did you have to install any third-party software in Windows in order to access the Time Capsule? [Or put another way: is it possible to access the Time Capsule without installing third-party software.] On WSL2, one option may be to use a Linux cifs mount. |
Now I "Recovered" to the previous Windows version, 1909, from version 2004, and mounting of my network drives works again! I dont't know the build no. of the windows I had installed and that didn't work. I downloaded it from https://www.microsoft.com/en-us/software-download/windows10. The file name is "Windows10Upgrade9252.exe" No I did not install any third-party software in Windows in order to access the Time Capsule. Time Capsule "speaks" smb and afp. I did try cifs mount |
The OS build of the windows with the problem is OS build 19041.264 |
Now Windows 10 2004 is installed via Settings -> Update & Security and I still get the problem. I have attached extra information in "Windows_10_2004_WSL_Network_Problems.zip" |
Found out that mounting works when using this form |
What does |
It was adding I have attached my fstab and a script (eksmount) that mounts all drives Now my problem is that the shares are Not mounted automatically though fstab is configured (and Can I do something to solve that new problem ? -- Eigil |
So after upgrading to 20150 I lost all my shares:
I got 2 new devices:
How can I recover my shares? |
Thanks for the Your
That is not related to your OP and near certainly #5456.
Free country, but mostly 'no'. |
It all operated properly with the former Windows version in WSL2 environment. I never said I used it in WSL1. Besides I never had to manually configure the shares. They were automatically configured with the installation of the WSL2 and the Ubuntu/Debian bistros. I am not sure what has changed here apart from the virtio PCI card being passed through. |
@startergo Delete that kernel you copied in c:\windows\system32\lxss\tools. In build 20150 you only need to check for Windows Updates to get the latest kernel. Make sure you have "Receive updates for other Microsoft products when you update Windows" enabled in the advanced options. |
That fixed it. Thanks.
|
[ using I was having issues with cifs mount calls in my wsl2 setup that were not repro'ng on my vm based ubuntu install running on the same host. I saw in this thread folks using question - Is the
|
OK PS: same docker container running under physical ubuntu 20.04 box has no issues mounting with the same command. Any suggestions? have been trying so many tricks with no success. |
I also have this issue since updating Windows a week ago.
:( Very frustrating. I rely on WSL for work and I don't know of any workaround. |
@Clonkex not sure what is going on with your above command. I just tested the following and they both work on my windows 10 enterprise 2004 / build 19041.508 wsl2 setup.
|
I too had this problem. cos when I tried this, it worked for me. This is win 10 version 2004 build 19041.508 |
@calcium When I tried doing that it just said something like "unknown file system cifs". I'm not on 2004 though, just whatever the latest update that Windows gave me is. |
BTW, I am on wsl 2, in case that changes anything. PS > wsl -l -v
I am running the latest. As in updated it this morning. |
@Clonkex post the output of these |
|
@Clonkex For the "unknown file system cifs" problem try to install cifs with |
Hello to everyone. I'm running Windows 10 vers. Build 21354.co_release.210402-1630 and WSL with this kernel version :
As soon as I run WSL I see these error messages :
so,when I try to access into the drive h (that's formatted with the ext4 fs),I get this error message :
|
@Marietto2008 First of all I would update that kernel with |
ok... zio@DESKTOP-N9UN2H3:/mnt/c/Program Files/cmder$ uname -a |
I'm running the WSL2 environment on top of Windows 10 Build 21364co_release. Windows 10 is not the only OS that I use every day. In different disks formatted with ext4 I have installed Ubuntu and derivates. What I would like to know is if I can access those disks from within WSL2. Actually I can do it from Windows 10 using the Paragon ext4 file system driver. But it seems that it is not recognized by WSL2. Infact,when I try to cd into those drives,WSL2 gives the following error : ls: reading directory '.': Function not implemented |
If it's a different disk you can try using |
this is my .wslconfig file : [wsl2] |
This solution by @calcium worked for me: Per @onomatopellan make sure you install cifs-utils: What I'm trying to do now is get this to work for me by putting this command in /etc/fstab, and a reboot isn't doing an auto-mount. |
Anybody knows how to access the "\tsclient" when staring WSL in a remote desktop session? |
Thanks. That's right. I checked my NAS SMB folder in Windows folder and found that I need to input my Synology since several months. |
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! |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.19041.264]
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Mounting network shares in wsl(2)
E.g. Mapped windows network drives (e.g. Z:) or network locations (e.g. //TIMECAPSEKS/TimeCapsule)
I do that either from bash like
or in /etc/fstab
Except windows internal drives, c: and d: the mounted drives are not accessible. When I try to list the content I get something like
or
The problem is there both in wsl 1 and wsl 2.
In the previous version of windows I didn't have the problem.
Am I doing something wrong ?
--
Eigil
The text was updated successfully, but these errors were encountered: