Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

Finding the 'tools' filesystem mounted on /init in WSL2

$
0
0

I have been using linux for a couple of years now, and thought I'd give WSL2 a try.Something that surprised me was how I could run Windows PE binaries (*.exe files) 'just so'. A bit of research led me to find that this is due to the binfmt_misc feature in Linux. I find that the interpreter for windows executables is /tools/init.

However, I cannot find the /tools directory (All I can find is an executable /init file). In WSL2, running mount | grep tools gives me this:

tools on /init type 9p (ro,relatime,dirsync,aname=tools;fmask=022,loose,access=client,trans=fd,rfd=6,wfd=6)

However, I cannot even find /init/ (The best I could find was C:\Windows\System32\lxss\tools in Windows). How does this work in WSL2? Is / mounted 'over' these mount points? If so, how can I view the contents of /tools or /init in WSL2?


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>