Skip to content
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

WSL : Explorer failed on folder mounted by WSL sshfs #9291

Closed
1 of 2 tasks
fredmo opened this issue Dec 9, 2022 · 3 comments
Closed
1 of 2 tasks

WSL : Explorer failed on folder mounted by WSL sshfs #9291

fredmo opened this issue Dec 9, 2022 · 3 comments

Comments

@fredmo
Copy link

fredmo commented Dec 9, 2022

Version

Microsoft Windows [version 10.0.22621.900]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux XXXX 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Distro Version

Release: 22.04

Other Software

No response

Repro Steps

In WSL2 , I mount a folder :
sshfs 192.168.1.2:distant_folder /home/myname/local_folder
=> it s working

Now, in Windows Explorer, I navigate to \wsl.localhost\Ubuntu\home\myname ,
I try to open "local_folder" ,
I have :
image

Expected Behavior

navigation inside the local folder sshfs mounted by WSL should be accessible from the Windows Explorer

Actual Behavior

right error :
https://user-images.githubusercontent.com/3090107/206705165-2b3db042-b68f-4aba-8802-5f14f1b8bfb1.png

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 13, 2022

Thanks for reporting this @fredmo.

This is probably due to the namespacing difference between elevated and non-elevated WSL. Can you try to mount the folder inside /mnt/wsl ? This folder is shared between all namespaces.

@ghost ghost closed this as completed Dec 20, 2022
@ghost
Copy link

ghost commented Dec 20, 2022

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@fredmo
Copy link
Author

fredmo commented Dec 28, 2022

Thanks for reporting this @fredmo.

This is probably due to the namespacing difference between elevated and non-elevated WSL. Can you try to mount the folder inside /mnt/wsl ? This folder is shared between all namespaces.

I confirm if the mount is done on /mnt/XXX , it s working correctly. Explorer sees the content of the sshfs mount.
The issue is present when the mount is on : /mnt/user/XXX

In fact, I reproduced
if the sshfs mount is done in root , Explorer works.
if the sshfs mount is no root, Explorer fails : chown user /mnt/test , sshfs XXX /mnt/test , Explorer has the same popup.

Regards,
Frédéric

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants