Difference between revisions of "HOW-TO: Backup or Move WSL2 Distro"
Line 2: | Line 2: | ||
* Install '''LxRunOffline''' via Choco | * Install '''LxRunOffline''' via Choco | ||
− | <syntaxhighlight lang="Shell" | + | <syntaxhighlight lang="Shell"> |
choco install lxrunoffline | choco install lxrunoffline | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 8: | Line 8: | ||
* '''lxrunoffline list''' List all the installed distros on your system. I get output like this. | * '''lxrunoffline list''' List all the installed distros on your system. I get output like this. | ||
− | <syntaxhighlight lang="Shell" | + | <syntaxhighlight lang="Shell"> |
Microsoft Windows [Version 10.0.19041.207] | Microsoft Windows [Version 10.0.19041.207] | ||
(c) 2020 Microsoft Corporation. All rights reserved. | (c) 2020 Microsoft Corporation. All rights reserved. |
Revision as of 14:47, 18 October 2020
Move WSL to another drive
- Install LxRunOffline via Choco
choco install lxrunoffline
- lxrunoffline list List all the installed distros on your system. I get output like this.
Microsoft Windows [Version 10.0.19041.207]
(c) 2020 Microsoft Corporation. All rights reserved.
D:\work>lxrunoffline list
Ubuntu-18.04
docker-desktop
docker-desktop-data
D:\work>
1 lxrunoffline move -n Ubuntu-18.04 -d G:\wsl\ .
- Move your distro to another drive. My distro name here is Ubuntu. I am moving it to M: drive and /Shared/WSL2 folder inside it. It would take some time to finish moving.
- You can use the same move command to move your distro from default location to a different location inside C Drive.