Migrating File System
WSL file system is located in the C drive, install the software as more and more for a long time, will take up a lot of the C disk space. This is for students to use SSD or C disk space itself is small students is very inconvenient, so there are a lot of people will migrate to the needs of other paths of system WSL rootfs. The issue of official working on a stable viable option, see concrete progress https://github.com/Microsoft/WSL/issues/449 . At present a better solution is to use DDoSolitary developed LxRunOffline . Their solutions are as follows :
- LxRunOffline software download link is: https://github.com/DDoSolitary/LxRunOffline/releases
- Unzip and open command prompt in the directory, enter the following code
12345LegacyThe above command to move the entire WSL is rootfs
D:\wsl\legacy
folder. - check whether the normal use, to be used in accordance with an operation prompt.
to raise efficiency
wsl-terminal is a terminal used to quickly open WSL is in the current directory, using the steps detailed official description.