Git Product home page Git Product logo

wsldiskshrinker's Introduction

WSL Disk Shrinker

Facing smaller and smaller C disk space ? Growing WSL disk usage?

This is the right tool you are searching for!

This small tool can help you reduce the disk usage of WSL distros.

Install

This application requires .net 6.0 or .net framework 4.7.2.

Download the latest version from Release page.

You can also install the app using Chocolatey:

choco install wsldiskshrinker

Usage

Open the application, you can see all your wsl distros.

App

For each distro , there are two buttons.

  • The first button will let you shrink it's disk.
  • The second button will reveal the .vhdx file in the explorer.

You can shrink all distros in the list using the Shrink All button.

And you can select custom .vhdx file and shrink them using the Shrink Custom... button.

Before the actual work begins, you need to confirm the four points.

Dialog

If you click the Proceed button, we will shrink the disk for you.

Processing

That's all. It's quite simple!

wsldiskshrinker's People

Contributors

iterma avatar kxxt avatar mend-bolt-for-github[bot] avatar mittnav avatar xav83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mittnav iterma

wsldiskshrinker's Issues

File sizes don't display correct values.

Not essential, but some file sizes don't display correct values, f.ex.:

value shows instead of
1ย 023 1 KiB 1023 B ๐Ÿ™
1ย 048ย 571 1024 KiB 1 MiB ๐Ÿ™๐Ÿ™
16ย 887ย 317 16,1 MiB 16,11 MiB ๐Ÿ˜‰
16ย 960ย 717 16,17 MiB 16,18 MiB ๐Ÿ˜‰
16ย 981ย 689 16,19 MiB 16,2 MiB ๐Ÿ˜‰
1ย 073ย 736ย 582 1023,99 MiB 1 GiB ๐Ÿ™

Starts but doesn't run.

WSL Disk Shrinker starts normally but ends without any message during the initial search for disc images.

Add support for alert notifications if WSLDiskShrinker is being blocked by Controlled Folder Access

I installed WSLDiskShrinker through winget, and on the first run, it was blocked by the Controlled Folder Access feature of Windows Security, despite the fact I was running C:\Program Files (x86)\WSLDiskShrinker\WSLDiskShrinker.exe as an administrator.

Now, this is not abnormal; I have had to manually add quite a few applications to the allowlist for them to function as designed.

2021-08-31_LI

However, I did not receive any indication from WSLDiskShrinker itself that it had been blocked nor any feedback on whether the situation had affected the app's ability to effectively shrink the .vhdx that was being processed at the time of the incident.

And since I had Focus Assist turned on, I had no clue until hours later that something had potentially gone wrong during the operation. It was an easy fix; I manually added C:\Program Files (x86)\WSLDiskShrinker\WSLDiskShrinker.exe to the allowlist on the Controlled Folder Access management screen and then reran the program.

But still, it would be nice if the app generated at least a notification to let the user know that it was blocked so the correction could be made right away. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.