-
Notifications
You must be signed in to change notification settings - Fork 859
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
Can't access WSL2 directory. Have VHDX instead of folder after moving #6123
Comments
rootfs is for WSL1 only, so it's expected that there is no rootfs in your folder. |
@licanhua -- that's the problem. |
If I recall, on my previous laptop (with wsl2), I used |
Is there a way I can start over and use the .vhdx to create a new wsl instance that will be sure to allow me to access the files via |
Please check the 9p service on linux |
Thank you for the suggestion. That does not seem to be the problem.
|
What's the error when you access
|
I am running wsl2, and I have the May 2020 update.
Here is the error I get: I get the same error with both of my distros using I have tried turning it off and turning it on again. |
@SvenGroot Any idea? I can't think of a reason why it doesn't work |
I understand your problem perfectly : - (( https://mobaxterm.mobatek.net/download.html https://mobaxterm.mobatek.net/features.html PS: just a fantastic program Please write how you understand my advice - I will wait :-) |
I believe that u wanted to do this because you wanted to share files or dev resources between Os. Well for WSL 2, the workflow is better and make sense. Instead of accessing the drive from Windows, you could access the drive from Linux with 'mnt' command. e.g. /mnt/d Besides you have better option to open your VSCode from linux command line. So much options in WSL 2 and do not need to use '\wsl$' to access linux folder which I think not a proper integration flow. Search google: Scott Hanselman, WSL 2 Development |
the problem is you need I used |
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! |
Environment
Steps to reproduce
In fresh W10 install:
wsl.exe --export Ubuntu-20.04 ubuntu.tar
wsl.exe --import Ubuntu <my home directory> ubuntu.tar
WSL logs:
Expected behavior
A folder called
C:\\Users\me\Ubuntu
is created that has a subfolder calledrootfs
with the WSL filesActual behavior
A file called
C:\\Users\me\Ext3.vhdx
is created. This is not accessableOn my previous laptop I could access my WSL2 distribution from Windows 10 by
AppData/Local/Packages....
or\\swl$
on initial install. Ithen moved the distro to C:\Ubuntu, and could access files there directly.The text was updated successfully, but these errors were encountered: