[启动“wsl.exe -d Ubuntu-20.04”时出现错误 0x8007010b]
无法访问启动目录“//wsl$/Ubuntu-20.04/home/glc”
This problem can be solved by entering the Windows terminal settings, entering the ubuntu configuration file and checking the "Use parent process directory" box. I don't know why this happens. It is also worth noting that this happened after I restarted.
Win10 operation steps:
Open Windows Terminal, drop down menu and click Settings;
Find in the pop-up operation window: configuration file-Ubuntu;
Check the enable directory to use the parent process directory;
In addition, this section can be solved by modifying the startup directory to the following form:
\\wsl$\Ubuntu-20.04\home\glc
//wsl$/Ubuntu-20.04/home/glc
Win10 Ubuntu subsystem WSL file location
Take my system as an example, the root directory of WSL corresponds to windows:
C:\Users\Lemon\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs
The AppData folder is hidden by default, but you can enter AppData in the path. But in fact, Microsoft provides us with a default variable that can directly point to the WSL directory, wsl$ you can directly enter \\wsl$ in the path of running (win+R) or explorer to enter the Ubuntu directory
After knowing the network path of WSL, you can directly add it to the network location of the resource manager
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。