Ubuntu – How to change the root location for Bash in Windows 10

bashwindows-subsystem-for-linux

I have just installed Bash for Windows 10 and it works good.

It keeps its files in C:\Users\{my user name}\AppData\Local\Lxss. The main problem is that it is located in the C:\ directory which has very few space. I want to move it to D:\, which has 1 TB of space.

Is it possible to change root folder for Bash in Windows 10?

Best Answer

Now it possible with https://github.com/DDoSolitary/LxRunOffline

choco install lxrunoffline
  • No Internet access required when installing.
  • Install any Linux distros to any location on your disk.
  • Moving existing installations to other locations.
  • Duplicating existing installations. (To create backups.)
  • Register existing installation directories. (For portable usage.)
Related Question