简体   繁体   中英

The Lxss folder in windows for Bash on Ubuntu on Windows is missing

Problem and Hypothesis

It's a pretty simple problem, I just can't find the Lxss folder in LocalAppData which is suppose to store files from the Bash on Ubuntu on Windows.

I only see one of two possibilities for why this is. Either Windows moved the Lxss folder in an update for Bash on Ubuntu on Windows, or it is an error specific to my system that has caused Windows not to create the Lxss folder. I don't think this is the possibility though because it is a fresh install of windows.


Steps I have tried:

  1. Unhiding files and folders in windows
  2. Shutting down Bash on Ubuntu on Windows and refreshing my LocalAppData
  3. Restarting Windows and checking my LocalAppData

Screenshots of LocalAppData:

截图 1

截图 2

I can add more information if needed.

It was actually moved in the latest release to :

C:\\Users\\%USERNAME%\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState\\rootfs\\

See this blog post from WLS git repo

您必须在文件夹选项窗口中取消选中“隐藏受保护的操作系统文件(推荐)”。

The selected solution is old and valid for Ubuntu only.

For Opensuse leap-15.1 users this is different:

  • C:\\Users\\"yourusername"\\AppData\\Local\\Packages\\46932SUSE.openSUSE-Leap-15-1_022rs5jcyhyac\\LocalState\\rootfs

The numbers will differ from version to version and may change in the future.

The trick is to look for something related to Linux in C:\\Users\\"yourusername">\\AppData\\Local\\Packages\\"xxxxx"\\LocalState\\root\\fs

where

  • "yourusername" is your Windows 10 user login
  • "xxxxx" is a custom name related to the Linux distribution installed

在最新版的 Windows Fall Creator Update 中,我在C:\\Users\\%USERNAME%\\AppData\\Local\\lxss\\

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM