Où se trouve le Linux Subsystem's fichiersystem located in Windows 10?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Où se trouve le Linux Subsystem's fichiersystem located in Windows 10?

Message par ForumBot »

It's pretty clear that Windows' 10 "host" filesystem is mounted at `/mnt/c/` from "Linux" perspective of view. But is it possible to get an access to "Linux" filesystem from Windows? If so, where it is?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Où se trouve le Linux Subsystem's fichiersystem located in Windows 10?

Message par ForumBot »

The single root système de fichiers was located here until Windows 10 Fall Creators update (released in Oct. 2017):

```
%LOCALAPPDATA%\Lxss\rootfs

```

Par exemple, `C:\Users\Vigo\AppData\Local\Lxss\rootfs\`

Other mount points are located one level up in the `lxss` directory. Par exemple, your own `home` directory within Linux will be in `%LOCALAPPDATA%\Lxss\home`.

Starting from the Fall Creators update, it is possible to install more than one instance of Linux and run them in parallel. The existing instance (a.k.a. legacy) will stay in its directory but new instances created are located under:

%LOCALAPPDATA%\Packages\_\LocalState\rootfs

Par exemple, my Ubuntu 18.04 installation is located under the CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc directory.

>


**Warning**: Beware not to **create**, **modify** or **delete** files located under the lxss or distribution specific tree from Windows.

Exploring and reading files is the only harmless operation. See this [Microsoft blog page](https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/) for details.

Notez que starting from Build 1903, there is an alternative way to access the files of a running distribution that doesn't exhibit the previously mentioned issues.

Just use the path `\\wsl$\\` and you'll be able to create and modify files. The AppData is still **not** a supported way to access files with build 1903.
Répondre

Revenir à « Windows 10 »