<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Viktor Starodubtsev</title>
    <description>The latest articles on DEV Community by Viktor Starodubtsev (@maestroviktorin).</description>
    <link>https://dev.to/maestroviktorin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1858677%2Fa5155e8a-19b8-478e-93f9-8117afe31ee1.png</url>
      <title>DEV Community: Viktor Starodubtsev</title>
      <link>https://dev.to/maestroviktorin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maestroviktorin"/>
    <language>en</language>
    <item>
      <title>wslcompact - Optimize Huge Virtual Hard Disk without diskpart/Hyper-V</title>
      <dc:creator>Viktor Starodubtsev</dc:creator>
      <pubDate>Mon, 14 Oct 2024 17:56:34 +0000</pubDate>
      <link>https://dev.to/maestroviktorin/wslcompact-optimize-huge-virtual-hard-disk-without-diskparthyper-v-2neb</link>
      <guid>https://dev.to/maestroviktorin/wslcompact-optimize-huge-virtual-hard-disk-without-diskparthyper-v-2neb</guid>
      <description>&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;When trying to optimize disk space the same way as described in &lt;a href="https://dev.to/box_protection/optimize-huge-virtual-hard-disk-2ji"&gt;this&lt;/a&gt; post, I discovered that neither of both solutions can be applied on Windows 11 Home Edition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://github.com/okibcn/wslcompact" rel="noopener noreferrer"&gt;&lt;code&gt;wslcompact&lt;/code&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;It turned out that &lt;code&gt;wslcompact&lt;/code&gt; doesn't force you to work with &lt;code&gt;diskpart&lt;/code&gt; nor &lt;code&gt;HyperV&lt;/code&gt; and encounter problems of their &lt;br&gt;
unavailability on Windows Home.&lt;/p&gt;

&lt;p&gt;You can find the up-to-date and verbose installation guide in the tool's &lt;a href="https://github.com/okibcn/wslcompact/blob/main/README.md" rel="noopener noreferrer"&gt;README&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Experience
&lt;/h2&gt;

&lt;p&gt;Now, I would like to demonstrate how it works on my machine.&lt;/p&gt;

&lt;p&gt;How it was before&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7r7gygw9vashsgkebvl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7r7gygw9vashsgkebvl.png" alt="before-1" width="800" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrjeu90s32dbt7bsxp64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrjeu90s32dbt7bsxp64.png" alt="before-2" width="344" height="108"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's delete a huge directory on Ubuntu&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw1gipp8jn3jxdzqwxha9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw1gipp8jn3jxdzqwxha9.png" alt="delete-huge-directory" width="551" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And now the estimated weight of our distro is much less&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwyhfbgcdvg36g1jdvjwe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwyhfbgcdvg36g1jdvjwe.png" alt="estimated-size" width="800" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's compact now!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxs1e2kogapdvj8vneadi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxs1e2kogapdvj8vneadi.png" alt="after-1" width="800" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9us8w135b3jn6owim867.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9us8w135b3jn6owim867.png" alt="after-2" width="344" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, we claimed our unused disk space back with only couple of prompts.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>docker</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
