How to move WSL from one drive to another drive

 Hi, let's see how to move the WSL from C Drive to D Drive.


Run the below command to check the WSL list


Create a new folder inside D Drive



Run command wsl --export Ubuntu D:\wsl\ubuntu.tar to export ubuntu as tar file to D drive




Un register ubuntu, using command wsl --unregister Ubuntu


Move the ubuntu from the tar file to D Drive



Run the below command to set ubuntu as default distro


Run the below command to view the list of wsl distro.




Now, we can see the ext4 file is moved to the D Drive.



Thank you!.

Comments

Popular posts from this blog

How to build MCP Server and use MCP Inspector in Node

How to install ngrok in wsl for activepieces