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
Windows terminal and explorer getting stuck trying to open \\wsl$ #6216
Comments
I appear to have solved the problem by running chkdsk in windows. |
I have this problem also , Windows Explorer is getting slow and stuck. When I run (in bash) :
It dosent open Explorer on Win10 side at all (as it used to open). Ctrl+C dosent work, Terminal window freeze too. Did also CHKDSK (read only mode), but it didnt solve the problem. Any hints what is causing the slowdown and how to solve it? |
I think my problem was that a part of the WSL filesystem was somehow corrupted, which was solved by running CHKDSK. I'm afraid I don't know what else you could do to solve this, but i suggest you open a new issue as this one has been closed. The microsoft WSL team seems to be pretty responsive on GitHub. Best of luck! |
Same thing happened to me. File system corruption was the culprit. But default chkdsk didn't do anything. Had to use it with the /offlinescanandfix and after that it was fixed. |
Running
Thanks @ViktorVerstraelen |
The problem does persist every couple of days though, what's the way to go for figuring out the root cause for vhdx corruption? |
this fixed it for me, I had the problem when I installed |
My problem was that I created a windows shortcut of a folder of one of the folders of wsl. |
Environment
Steps to reproduce
Set "startingDirectory" in windows terminal settings to "\\\\wsl$\\Ubuntu\\home\\"
Open Ubuntu tab in windows terminal
Or
Open windows explorer and go to \\wsl$\Ubuntu
Note: this was working fine a few days ago. I have no idea what has changed in the mean time.
WSL logs:
Expected behavior
The Ubuntu shell opens in windows terminal
The wsl file system opens in explorer
Actual behavior
Windows Terminal hangs (not responding)
Windows explorer is stuck loading the directory infinitely
Some additional notes:
I can open/use Ubuntu without issue if I omit the startingDirectory option ad use cd /home instead. The issue seems to be when referencing a path belonging to the wsl filesystem from windows.
Similarly, when I try to open a remote session in Visual Studio Code using "Open Folder in WSL" (which should let me choose a starting directory for the remote session) nothing happens. But when I open a WSL session without specifying a directory it works fine, and from there I am able to navigate VScode to any WSL directory I want.
All these things were working fine 2 days ago and have stopped working at the same time.
The text was updated successfully, but these errors were encountered: