Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to config wsl's folder path #1452

Closed
xiangqunXiao opened this issue Feb 10, 2022 · 3 comments
Closed

Is there a way to config wsl's folder path #1452

xiangqunXiao opened this issue Feb 10, 2022 · 3 comments

Comments

@xiangqunXiao
Copy link

xiangqunXiao commented Feb 10, 2022

[Enter feedback here]

in this part, it is recomend to store file in linux system for better performance when using wsl2.

While the default wsl folder is located at C disk. And I've installed 2 windows 10 system on my laptop. So if I clone a repo in system A and store it insidel wsl folder(such as /mnt/wsl), it's hard to access and using the repo I've cloned in system A when I am using system B.

Maybe it's a good idea to support config my wsl path on other disk like D disk, so that I just need to clone once and be able to use the same repo file in different win10 system.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Biswa96
Copy link
Contributor

Biswa96 commented Feb 10, 2022

You can install/register a GNU/Linux distribution for WSL in another drive/partition using wsl --import command. Alternatively, it is also possible to mount the VHDX file from another drive/partition in a running WSL2 instance.

@xiangqunXiao
Copy link
Author

You can install/register a GNU/Linux distribution for WSL in another drive/partition using wsl --import command. Alternatively, it is also possible to mount the VHDX file from another drive/partition in a running WSL2 instance.

Thanks and I'll try it after reading docs.

@craigloewen-msft
Copy link
Collaborator

This would be a feature request, could you please file this as a feature request on the WSL github repo? https://github.com/microsoft/wsl

I'll close this issue out as this repo is just for tracking docs related issues and this is product related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants