DEV Community

Cover image for wslcompact - Optimize Huge Virtual Hard Disk without diskpart/Hyper-V
Viktor Starodubtsev
Viktor Starodubtsev

Posted on

wslcompact - Optimize Huge Virtual Hard Disk without diskpart/Hyper-V

Problem

When trying to optimize disk space the same way as described in this post, I discovered that neither of both solutions can be applied on Windows 11 Home Edition.

Solution

wslcompact

It turned out that wslcompact doesn't force you to work with diskpart nor HyperV and encounter problems of their
unavailability on Windows Home.

You can find the up-to-date and verbose installation guide in the tool's README.

Experience

Now, I would like to demonstrate how it works on my machine.

How it was before

before-1

before-2

Now let's delete a huge directory on Ubuntu

delete-huge-directory

And now the estimated weight of our distro is much less

estimated-size

Let's compact now!

after-1

after-2

As you can see, we claimed our unused disk space back with only couple of prompts.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay