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

WSL2 rootfs directory disappeared #6221

Closed
gjwatts opened this issue Nov 10, 2020 · 12 comments
Closed

WSL2 rootfs directory disappeared #6221

gjwatts opened this issue Nov 10, 2020 · 12 comments

Comments

@gjwatts
Copy link

gjwatts commented Nov 10, 2020

Environment

Windows build number:  Win32NT             10.0.19042.0 Microsoft Windows NT 10.0.19042.0
Your Distribution version: 16.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 2
Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020

Steps to reproduce

First off, I can get into my Ubuntu shell and run commands just fine. From my Ubuntu shell, I can access my /c/ drive just fine.

I used to be able to access my ubuntu distro using Windows explorer at
C:\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs
However, I just checked and now the rootfs directory is gone. All the directories before that are there and in LocalState I see a temp directory and file named ext4.vhdx, but no rootfs.

If I go into the Windows Explorer and try using \\wsl$, it delays for a few seconds and then comes back with the error:

Windows cannot access \\wsl$
Check the spelling of the name.  
Otherwise, there might be a problem with your network.  
To try to identify and resolve network problems, click Diagnose

If I go into a Ubuntu shell and run explorer.exe . instead of it bringing up an explorer window inside the Ubuntu file system, it opens it in my Document folder in the Windows file system.

I have not used the rootfs directory for several weeks now, but as far as I know, nothing major has happened to my PC other than a few MS updates.

Expected behavior

C:\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs should exist and allow me access into my Ubuntu file system.

Actual behavior

The directory C:\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs has been removed somehow and I can not access my Ubuntu file system from within Windows.

@gjwatts
Copy link
Author

gjwatts commented Nov 10, 2020

Feedback link -> https://aka.ms/AAab32e

@JuiceDrinker
Copy link

Any update on this? Running into the exact same issue

@moonseokho85
Copy link

let me know about the error please~

@Lermamitibla
Copy link

Same thing, and cant open ext4.vhdx anyway

@ChristineChetty11
Copy link

Same problem

@andrasmakoviczki
Copy link

Same for me too.

@Jakejamesreid
Copy link

Having the same issue. Rootfs folder is missing. Any update on this issue?

@ayushm2003
Copy link

facing the same issue. Although i am able to see \\wsl$\Ubuntu-20.04 folder in explorer but not able to access it via shell. Any updates on how can we resolve this?

@talhaanwarch
Copy link

same issue

@ajkessel
Copy link

ditto

@jayasakthivel
Copy link

The issue is with WSL 2. Try setting the default to WSL 1 (wsl --set-default-version 1) and you should be able to see the rootfs directory from there.

Copy link
Contributor

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!

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

No branches or pull requests