-
Notifications
You must be signed in to change notification settings - Fork 852
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
Unable to see mounted files via explorer.exe #7834
Comments
If anything else is required, please let me know. |
Thanks for reporting this @Ryan-ZHENG. The issue here is probably that the sshfs mountpoint is created in a different mount namespace than the one the explorer uses. More details here Does mounting this folder from a non-elevated context help ? |
Thanks @OneBlue , I succeeded to view the contents after mounting the sshfs under /mnt/wsl, which, as per the information you posted, available for both two namespaces! But still, I am wondering why it is a sudden failure, as the way I mount/view is exactly the same as I did last week. So, would you please guide me on how to determine whether the context is elevated or not? |
Update: I just found the root cause, our IT admin recently pushed a global policy on each Windows startup to disable the UAC, causing all the consoles opened in elevated mode... This issue can be now closed. Thanks for your support! @OneBlue |
Please tell me how to solve the UAC restriction, which has puzzled me for a long time. thank you |
Please tell me how to solve the UAC restriction, which has puzzled me for a long time. thank you |
Sorry to see your question that late... hope this can help: My solution is as below, hope it can help you a little:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
|
thank you !!! |
Hello, good afternoon After windows11 updates the system, the method is no longer available. Do you know what happened |
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f That's it. I don't know why |
thx. this solve my problem. i can see the file in wsl mount point dir in windows file explorer. |
Version
Microsoft Windows [Version 10.0.19044.1387]
WSL Version
Kernel Version
5.10.60.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
In Windows Terminal (wsl env), I used sshfs to mount the home directory of my dev server into wsl:
sshfs -d -o allow_other ryan@10.x.x.x:/home/ryan
/ryan_server/ -o nonempty,reconnect,identityfile=/.ssh/id_rsaAfter cmd succeeded, I was able to see the content via bash cmd, like
ls -al
But still, I cannot find anything via explorer.exe in Windows;
Expected Behavior
It was okay until this week.
The explorer should show the correct content, instead of the empty directory created before mounting;
Actual Behavior
Nothing shown.
Here is another try that might help to locate the root cause:
Hence, I suspect that my Windows cannot correctly recognize mount point, but treat them as ordinary directory.
Diagnostic Logs
I used
-d
option while executingsshfs
so that any error can be detected during I enter the directory in explorer.exe.But unfortunatly, there is nothing output when I double-click the directly and enter...
The text was updated successfully, but these errors were encountered: