Difference between revisions of "HOW-TO: Backup or Move WSL2 Distro"
Line 1: | Line 1: | ||
Move WSL to another drive | Move WSL to another drive | ||
− | * Install LxRunOffline | + | * Install '''LxRunOffline''' via Choco |
− | + | <syntaxhighlight lang="Shell" line='line'> | |
+ | choco install lxrunoffline | ||
+ | </syntaxhighlight> | ||
+ | * '''lxrunoffline list''' List all the installed distros on your system. I get output like this. | ||
+ | |||
+ | <syntaxhighlight lang="Shell" line='line'> | ||
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. | ||
Line 11: | Line 16: | ||
docker-desktop-data | docker-desktop-data | ||
D:\work> | D:\work> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="Shell" line='line'> | ||
+ | lxrunoffline move -n Ubuntu-18.04 -d G:\wsl\ . | ||
+ | </syntaxhighlight> | ||
− | * | + | * 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. | + | * You can use the same '''move''' command to move your distro from default location to a different location inside C Drive. |
Revision as of 14:47, 18 October 2020
Move WSL to another drive
- Install LxRunOffline via Choco
1 choco install lxrunoffline
- lxrunoffline list List all the installed distros on your system. I get output like this.
1 Microsoft Windows [Version 10.0.19041.207]
2 (c) 2020 Microsoft Corporation. All rights reserved.
3 D:\work>lxrunoffline list
4 Ubuntu-18.04
5 docker-desktop
6 docker-desktop-data
7 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.