A WSL 2 distribution’s ext4.vhdx can occupy more space on Windows than its current Linux files seem to require. The reason is that Linux filesystem usage and the VHDX file’s Windows footprint are different measurements: deleting files inside Linux frees filesystem blocks, but does not necessarily shrink the host-side file. A reported 59.4 GB is one user’s case, not a typical WSL size.
Why a WSL distro can take up more Windows storage than expected
WSL 2 stores each Linux distribution in an ext4 virtual hard disk file, usually named ext4.vhdx. It grows as the distribution uses storage. Microsoft’s current disk-space guidance gives 1 TB as the default maximum virtual capacity for current WSL versions; that is the virtual disk’s ceiling, not the amount already consumed on the Windows drive. Earlier WSL versions used different defaults. Microsoft’s WSL disk-space guide explains the distinction.
As an Amazon Associate I earn from qualifying purchases.
Think of the VHDX as a container: Linux reports how much of its virtual filesystem is used, while Windows reports how much space the container file occupies on the host. Removing files within Linux can make more filesystem space available without immediately reducing the VHDX’s physical size in Windows.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11How to check Linux usage and the Windows-side VHDX separately
Identify the distribution
-
In PowerShell or Command Prompt, run
wsl --list --verbose(also writtenwsl.exe -l -v) to see the installed distribution names and whether each uses WSL 1 or WSL 2. Thedfchecks below apply to WSL 2 distributions.#1 Best Overall
UGREEN USB-C M.2 NVMe SSD Enclosure, 10Gbps- 10Gbps NVMe Enclosure: With the latest USB 3.2 Gen2, this M.2 enclosure can achieve a data transfer rate of 10Gbps. Backward compatible with USB 3.1 and USB 3.0. Note: 10G speeds need to be matched with a USB C 3.2 GEN2 data cable
- Tool-free SSD Enclosure: Tool-free NVMe SSD enclosure for quick and easy installation. Plug and play, no drivers required. The buckle design of the M.2 SSD enclosure can ensure stable and fast transfer
- Broad Compatibility: The UGREEN M.2 NVMe SSD enclosure is specially designed to support NMVe protocol M/B&M keys and for 2230/ 2242/ 2260/2280 size SSDs up to 8TB. The M.2 NVMe enclosure is applicable for Windows, Mac OS (Mac Mini M4/M5 Pro/M6), Linux, Android, IOS systems.(Does not support SATA NGFF SSD or mSATA SSD)
- Security & Stability: USB C NVMe enclosure adopts advanced RTL9210 chip with short-circuit, over-current and multi-protection to ensure the safety of your SSD and valuable data, and supports UASP/ Trim with high transfer speed
- Compact & Portable: This ultra-slim aluminium external NVMe enclosure with extra silicone case is portable yet durable, and much easier to carry with this M.2 to USB adapter, making it ideal for travelling
Check the Linux filesystem
-
Microsoft documents this command for checking the WSL system distribution’s filesystem:
wsl.exe --system -d <distribution-name> df -h /mnt/wslg/distro. If it does not work in your setup, trywsl df -h /, as Microsoft suggests. Replace<distribution-name>with the distribution name shown by the list command. -
Read the result as Linux filesystem capacity and usage. It is not the Windows file size of the distribution’s VHDX. For background on WSL commands, see Microsoft’s basic commands reference.
Rank #2
SABRENT 2.5in SATA to USB 3.0 Tool-Free SSD/HDD Enclosure (EC-UASP)- Tool free design, easy to install,Transfer Rates Up to 480 Mbps when connected to a USB 2.0 port,Transfer Rates Up to 5 Gbps when connected to a USB 3.0 port.
- Suitable for 2.5” SATA/SSD;Supports Standard Notebook 2.5″ SATA and SATA II Hard drives
- Optimized for SSD, Supports UASP SATA III,Backwards-Compatible with USB 2.0 or 1.1
- Hot-swappable, plug and play, no drivers needed
- Operating System:Supported Operating Systems:Mac,Windows;Supported Windows Versions :Windows 7, Windows 8, Windows Vista, Windows XP; Supported Mac Versions: Mac OS X and Higher
Locate the VHDX for identification
Microsoft documents a PowerShell registry lookup to find a distribution’s VHDX path. Use the path to identify the host file and inspect its reported size, rather than opening or changing the file’s contents. Microsoft warns against modifying, moving, or accessing WSL files in AppData with Windows tools or editors because that can corrupt the distribution. The lookup and warning appear in the disk-space guide.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
What can make the VHDX shrink automatically?
Do not assume every WSL installation automatically reduces a VHDX after Linux files are removed. Microsoft described sparse VHD as an opt-in experimental feature in a September 18, 2023 update. In that context, Microsoft said enabled VHDs would automatically shrink. The WSL configuration reference lists sparseVhd with a default of false; setting it to true makes newly created VHDs sparse. For an existing distribution, the 2023 post describes wsl --manage <distro> --set-sparse <true/false>. Check your installed WSL release and current configuration before relying on the behavior, since the dated feature description does not establish identical behavior for every build today. Microsoft’s September 2023 WSL update and the WSL configuration reference cover the feature.
Rank #3
- ENCLOSURE ONLY, SSD NOT INCLUDED: This is the case you put your own M.2 SSD into, not a drive with storage inside. 100% tool-free, so the SSD installs and comes out in seconds with no screwdriver.
- FITS M.2 NVMe AND SATA: Works with both M.2 PCIe NVMe and M.2 SATA SSDs in 2242, 2260 and 2280 lengths. Bare drives only, no room for a drive with a pre-installed heatsink. It does NOT take 2.5in SATA drives or mSATA.
- 10GBPS USB 3.2 TYPE-C: Up to 10Gbps, and up to 1000MB/s in real transfers. Backward compatible with USB 3.1 and USB 3.0 at their own speed limits. Bus powered, no drivers and no external power supply.
- SLIM ALUMINUM BUILD: Ultra-slim aluminum case with an ABS frame, with a thermal pad to move heat off the drive. Light enough to live in a laptop bag, solid enough to survive it.
- IN THE BOX: Enclosure, 8in Type-C to Type-C cable and user manual. Works with Windows 7 or later, macOS 10.5 or later and Linux. Register on the manufacturer's website for extended warranty service.
Choose the operation that matches the problem
| Goal | Documented approach | Important distinction |
|---|---|---|
| Find out what is using space | Compare Linux df output with the VHDX’s Windows file size. |
They measure different things. |
| Reduce host-side VHDX size over time | Check whether sparse VHD is available and enabled for the installed WSL setup. | Automatic shrinking is not a safe assumption for every installation. |
| Increase a distribution’s virtual disk capacity | Use wsl --manage <distro> --resize <size> on WSL 2.5 or higher, after shutting down WSL. |
This enlarges the disk; it is not a shrink or compaction command. |
| Back up or move a distribution | Use WSL export/import workflows, including import to a chosen installation location. | Do not unregister the original until you have verified the exported backup. |
Microsoft documents the resize requirement and shutdown step in its disk-space guide. Its WSL FAQ documents export/import examples and warns that wsl --unregister permanently removes the distribution’s data. Treat unregistering as destructive, not as a cleanup shortcut.
Moving a distribution is not the same as shrinking it
If the Windows system drive is short on room, export/import can move a distribution to another location. That changes where its data is stored; it does not itself compact an existing VHDX. Keep the export until the imported distribution is confirmed to work and its files are present. Microsoft’s FAQ provides the documented workflow.
Rank #4
- Flip-Open Tool-Free Design: Open the cover, insert your NVMe SSD, lock it in place, and close—no screws or tools required. Fast and simple for upgrades, cloning, troubleshooting, and portable tech work.
- Cooler 10Gbps Performance: The aluminum enclosure presses the thermal pad directly against your SSD for better heat transfer and more stable 10Gbps speeds than slide-in enclosures. Ideal for long transfers and heavy workloads.
- NVMe Only for Maximum Speed: Supports M.2 NVMe SSDs in sizes 2230, 2242, 2260, and 2280 up to at least 8TB. Not compatible with M.2 SATA SSDs.
- USB C Plug-and-Play: Connect with USB C for up to 10Gbps using USB 3.2 Gen 2. No drivers or external power needed. Works with laptops, desktops, gaming handhelds, and USB C devices.
- Portable and Durable Aluminum Build: Reinforced ABS frame with an aluminum alloy top keeps your SSD protected and cool. Slim, lightweight, and perfect for creators, gamers, and anyone needing fast portable storage.
The official guidance cited here documents disk expansion and export/import, but does not establish one universal manual VHDX-compaction procedure for every Windows edition, WSL release, and configuration. Avoid treating an unverified compaction command as universally safe.
Recommended Free Tools
Quick Recap
Best Value
- Feature - BENFEI Type-C/Type-A 2.5 inch Hard Drive Enclosure easily hook up your 2.5 inch SATA I/II/III hard drive to transfer files from one PC to another PC, laptop, PS4 or as a USB external hard drive.
- Speed - Up to 5 Gbps data transfer rate with supports UASP SATA III transmission protocol, which is 70% faster than traditional USB3.0. Backward compatible with USB 2.0 or 1.1 ports.
- Design - With USB Type-C/Type-A plug design, provide a easy connection option to laptop/phone/pad. Tool free installation, Plug & Play, No driver needed for this SATA enclosure. Just push out the cover, plug in the drive, close the cover and go. Hot-Swappable.
- Compatibility - BENFEI Hard Drive Enclosure supports Windows, LINUX, MacOS 8.0, and above. Specifically designed for 7/9.5mm thick, 2.5 inches, 6TB HDD & SSD. Compatible with Western Digital, Seagate, Toshiba, Samsung, Kingston, Crucial, Hitachi, and more.
- Warranty - Exclusive BENFEI Unconditional 18-month Warranty ensures long-time protection of your purchase; Friendly and easy-to-reach customer service to solve your problems timely.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




