Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to move wsl storage

Example for moving to D:WSLUbuntu

Step 1. Install Ubuntu in the store. 
Launch it to initialize the default instance.
Create the user used in Ubuntu as prompted.


Step 2. Export the instance and import into the target directory.

cd D:
mkdir WSL
cd WSL
wsl --export Ubuntu ubuntu.tar
wsl --unregister Ubuntu
mkdir Ubuntu
wsl --import Ubuntu Ubuntu ubuntu.tar

Step 3. Set the default user for the moved Ubuntu.
Find the directory in registry 
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLxss 
which DistributionName is “Ubuntu”. Set its DefaultUid to decimal 1000 (or hex 3e8).

Step 4. Try wsl

wsl -d Ubuntu
Comment

PREVIOUS NEXT
Code Example
Shell :: odoo run command line 
Shell :: undo git amend 
Shell :: cmd move overwrite file 
Shell :: copy file to other location linux terminal 
Shell :: docker on linux 
Shell :: start with git and github 
Shell :: powershell add line to text file 
Shell :: linux move everything except 
Shell :: docker desktop ubuntu install 
Shell :: download all bitbucket repositories 
Shell :: convert mp4 to hap 
Shell :: install go on mac brew 
Shell :: mongodb install issues 
Shell :: git get remote branch 
Shell :: pytest debug tests 
Shell :: gsed comand store file 
Shell :: how to take a screenshot linux terminal 
Shell :: How to remove all local branches which are merged or not on remote branches 
Shell :: linux find location of executable 
Shell :: copying a file from a server to a local folder 
Shell :: git rename working branch 
Shell :: download atom for ubuntu 18.04 
Shell :: does Ubuntu MATE have ssh 
Shell :: cert manager version 
Shell :: github pdftron 
Shell :: npm install tough-cookie 
Shell :: docker-proxy port 80 
Shell :: sudo: gem: command not found 
Shell :: find index of string in shell 
Shell :: git rename a local branch 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =