4

I have a dual boot set up with two separate hard drives: one for Windows and one for Linux. I also use WSL for light development work. I want to know if it is possible for me to access the WSL files from the Linux hard drive. Ordinarily, I could mount the C drive to navigate the Windows file system, but I don't know how to also (?) mount the WSL image.

geoffrey
  • 103

2 Answers2

1

Take a look at this blog. I think it will tell you how to do.

TL;DR

  1. (PWSH) wmic diskdrive list brief to get disk info
  2. (PWSH admin) wsl --mount <hard device> --partition <part id> to mount your ext4(default) FS
  3. you can access it in your WSL
0

You can find WSL file in this path: C:\Users\YourAccount\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs so maybe if you mount this path then you should have access to the WSL files.