M
M
mxr2021-06-14 21:57:29
Windows
mxr, 2021-06-14 21:57:29

Does the WSL image take up all available disk space?

WSL expanded its own virtual disk to the size of all the available memory on disk C.
How can I shrink the disk, the files used in WSL due to which the disk grew in size were deleted after working with them (Ubuntu 20.04 WSL).
DF-H:
60c7a65f61452310036770.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mxr, 2022-01-27
@mxr

I decided to answer my own question after half a year. The virtual machine disk needs to be trimmed.
For example, via diskpart, in PowerShell:

diskpart
elect vdisk file="Путь до .vhdx"
compact vdisk

A
Anonymous5454587, 2021-06-16
@Anonymous5454587

This is a dynamic disk and cannot be reduced.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question