Skip to content

Instantly share code, notes, and snippets.

@crazy-max
Last active October 4, 2020 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazy-max/7d8eee9e35a6706cda77a179bd2f69ad to your computer and use it in GitHub Desktop.
Save crazy-max/7d8eee9e35a6706cda77a179bd2f69ad to your computer and use it in GitHub Desktop.
Move WSL2 distro

If you have a small drive on C and would like to move your WSL distro you can do it using the LxRunOffline tool.

  • Install LxRunOffline (msvc)
  • List your installed distros with LxRunOffline list command:
PS C:\> LxRunOffline list
docker-desktop-data
Ubuntu
docker-desktop
  • To move the Ubuntu distro use LxRunOffline move -n Ubuntu -d X:\wsl\Ubuntu\. On C it is located in C:\Users\<username>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\ext4.vhdx

I have also moved the docker-dekstop and docker-dekstop-data without any issue so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment