Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where has C:\Users\%USERNAME%\AppData\Local\lxss gone under Windows Fall Creators Update [closed]

A popular development pipeline, and one of the benefits of the Windows Subsystem for linux is to use a Linux based developer toolchain, i.e. gcc etc within WSS and then to access those build artifacts from Windows. In earlier versions of Windows 10 (1703 and earlier), you could access the Windows Subsystem for Linux file system via:

C:\Users\%USERNAME%\AppData\Local\lxss

This allowed you to access 'Linux' files from Windows.

Strictly speaking you were not supposed to modify any files there - but it was useful for read access.

Reference: https://github.com/Microsoft/BashOnWindows/issues/402#issuecomment-220585695

Under the Fall Creators Update of Windows 10 (1709), this seems to have disappeared.

Where has it gone? Clearly a workaround is to, as the last stage of the built pipeline copy out of Linux into Windows using the /mnt mount, but not being access the files from windows seems like it must be a problem for many developers.

like image 446
Donald_W Avatar asked Oct 18 '17 22:10

Donald_W


People also ask

Why my WSL is not working?

This is likely because your machine has not yet taken the backport for WSL 2. The simplest way to resolve this is by going to Windows Settings and clicking 'Check for Updates' to install the latest updates on your system.

How do I enable Windows Subsystem for Linux optional component?

To enable the Windows Subsystem for Linux (Beta), open the Control Panel, click Programs and Features, and click Turn Windows Features On or Off in left side bar under Programs and Features. Enable the Windows Subsystem for Linux (Beta) option in the list here and click OK.

What's new in wsl2?

What's new in WSL 2. WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable new features. The primary goals of this update are to increase file system performance and add full system call compatibility.


1 Answers

It seems that in order to support the capability to install several different installations of the Windows Subsystem for Linux, storing the file system in fixed location no longer made sense.

I created a unique file name in the /home/username directory, and then searched for it from Windows.

In my particular case the file system is stored in:

C:\Users\donal\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\username

It seems likely that the location varies on every installation.

like image 156
Donald_W Avatar answered Oct 12 '22 05:10

Donald_W