13

How much space does the Windows Subsystem for Linux (also called Ubuntu BASH on Windows) take up on my hard drive?

I'm a bit low on space and want to know whether it would even fit.

  • 3
    I don't know who downvoted it, it's a legitimate question, and is interesting to know. – KalEl Jul 29 '17 at 19:40
  • Look at this answer – Jaime Jul 29 '18 at 14:34
12

On a virtual machine running Win10 Insider Edition (Fast Ring) Version 1703 Build 16176.1000 I ran Disk Cleanup then restarted.

I viewed Used Space on my C drive, installed Windows Subsystem for Linux (Beta), restarted, then ran BASH and triggered the Ubuntu on Windows download.

Once the files had downloaded and unpacked and the initial setup was complete I measured disk space again.

Disk usage increased just over 600MB between the two measurements.

  • Doesn't WSL install Ubuntu on first run? Have you tried to actually use it? – gronostaj Apr 20 '17 at 7:03
  • Just enabling "Windows Subsystem for Linux (Beta)" isn't the end of installation. It is actually the start. There is a download after that, which occurs during the first use. – user477799 Apr 20 '17 at 7:08
  • I did open the bash console afterwards. I'm not at that computer now but I believe it got to the prompt. I'll check that again later today. – music2myear Apr 20 '17 at 14:00
  • 4
    Corrected process. Corrected data. – music2myear Apr 21 '17 at 0:05
  • Now there's legacy and ubuntu listed, I'm not certain if there's any way to tell how much each is using. I do see Ubuntu in the uninstall and it lists disk usage by it, but I'm not sure if that includes the WSL Legacy or not "Bash on Ubuntu on Windows" – CTS_AE Oct 11 '19 at 6:42
1

At first I thought you were asking how much current space is being taken up from the WSL install rather than how much it will require for initial install.

How Large My Current Installs Are...

Over time updates will undoubtedly have the default install growing larger over time. Also as you use WSL and mature your environment -- installing dependencies, it will grow over time as well.

Newer Install - WSL2 - Ubuntu

My semi-new install is under 2GB (for now...) I've got brew on it, fresh rvm, zsh, just the basics for now.

Under Windows' Apps & Features it lists Ubuntu "WSL2" as taking up 1.92 GB

ncdu reports 1.7 GiB (~1.82GB) which is pretty close to what Windows reports.

Older Install - WSL - Legacy "Bash on Ubuntu on Windows"

My older install is at 5GB -- this has nvm, rvm, vscode-remote, a bit of tons of project dependencies installed, etc. Most of which my newer install doesn't yet have.

P.S.

Measuring WSL Size

If you're like me and landed here from google trying to "What size WSL is using on your Windows machine" I've asked a separate question and answered it here: How Much Disk Space is WSL Using On Windows?

Smaller Options?

If you're looking for a custom WSL which may be smaller you can look into: https://github.com/RoliSoft/WSL-Distribution-Switcher as found in this question:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.