Useful instructions for WSL/WSL2.
Installing, maintaining, and moving. Many links go to russian-language pages:
WSL в Windows: How to move to another disk/computer.
A chain of important commands:
wsl –shutdown
mkdir e:\backup
wsl –export Ubuntu-20.04 e:\backup\ubuntu.tar
wsl –unregister Ubuntu-20.04
mkdir E:\WSL
wsl –import Ubuntu-20.04 E:\WSL\ E:\backup\ubuntu.tar
By default, the root account is used in WSL Ubuntu. To change the user, for example sysops:
cd $env:USERPROFILE\AppData\Local\Microsoft\WindowsApps
.\ubuntu2004.exe config –default-user sysops
And then
wsl -d Ubuntu-20.04