Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How can I manage my disk size in WSL2 #6848

Closed
RayoBoi opened this issue Apr 23, 2021 · 1 comment
Closed

How can I manage my disk size in WSL2 #6848

RayoBoi opened this issue Apr 23, 2021 · 1 comment
Labels

Comments

@RayoBoi
Copy link

RayoBoi commented Apr 23, 2021

Is your feature request related to a problem? Please describe.
I am new to wsl2 and programming in general, and I am in the basics. I'm just getting everything ready to start using wsl2 and the first thing I want to do is lower the amount of ram and disk it uses

Describe the solution you'd like
I would like to be able to have the ram and the disk well configured to start programming

Describe alternatives you've considered
I already managed to lower the ram from 12gb to 4gb, which is what I need for now, but I don't know how to lower the amount of disk that it will occupy

Additional context
If you have any idea or know how to do to put a specific amount of disk please tell me.

@0xbadfca11
Copy link

See this first.
https://docs.microsoft.com/en-us/windows/wsl/compare-versions#expanding-the-size-of-your-wsl-2-virtual-hard-disk
Shrink filesystem with resize2fs first.
Then shrink the VHDX file with diskpart's shrink command.

@microsoft microsoft locked and limited conversation to collaborators Apr 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants