Horje
how to move wsl storage Code Example
how to move wsl storage
Example for moving to D:\WSL\Ubuntu

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_USER\Software\Microsoft\Windows\CurrentVersion\Lxss 
which DistributionName is “Ubuntu”. Set its DefaultUid to decimal 1000 (or hex 3e8).

Step 4. Try wsl

wsl -d Ubuntu
Source: blog.iany.me




Shell

Related
Git in Bash Code Example Git in Bash Code Example
replace hashes space vi Code Example replace hashes space vi Code Example
force slack to close mac Code Example force slack to close mac Code Example
execute result of query bash Code Example execute result of query bash Code Example
where is /snap directory manjaro Code Example where is /snap directory manjaro Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8