Moving-WSL-Distribution-to-Another-Drive icon indicating copy to clipboard operation
Moving-WSL-Distribution-to-Another-Drive copied to clipboard

Step 5: Important step to mount back to the /home/<username>/ of the current existing wsl after moving

Open KhoaLee opened this issue 1 year ago • 5 comments

I have followed through your steps and figured out that the step 5 is extremely important to mount back the vhdx of wsl2 to what has been installed and configured in the /home/ for people who have has the setup for their linux distro, such as: oh-my-zsh, nvm, p10k, .etc

I think you should mark the step 5 is important for people who has had the current wsl2 on default C: drive and want to move to another drive, the step is necessary to bring back all set up. Thanks

KhoaLee avatar Feb 12 '24 08:02 KhoaLee

Totally agree, step 5 is not really optional...

Defkon1 avatar Feb 20 '24 11:02 Defkon1

indeed.

jairmedeiros avatar Apr 12 '24 00:04 jairmedeiros

I tried to execute this step but it fails image

asadjamal2022skipq avatar Apr 15 '24 09:04 asadjamal2022skipq

I tried to execute this step but it fails image

I think you have to use your WSL username...

abhasdudeja avatar Apr 28 '24 21:04 abhasdudeja

I tried to execute this step but it fails image

use this in PowerShell and change me into your former name in the wsl

zjuadurey avatar May 09 '24 06:05 zjuadurey

Hiya. How can I check if I successfully moved the wsl Linux distro into my desired windows drive?

codedrian avatar May 24 '24 06:05 codedrian

Hiya. How can I check if I successfully moved the wsl Linux distro into my desired windows drive?

Go to Powershell and run:

Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss" -Recurse

It will list all the distributions you have installed, and you can check the BasePath property to verify the installation drive

image

Defkon1 avatar May 24 '24 11:05 Defkon1

Done ..

LpCodes avatar Jun 09 '24 04:06 LpCodes