Live data from Hacker News

How to free up and automatically manage disk space for WSL

freecodecamp.org

1–10 of 55 posts

Re: How to free up and automatically manage disk space for WSL

#2
I think Optimize-VHD will do the same thing as messing with diskpart.

It's a shame you can't just turn on live TRIM support.

This kind of disk image is a bunch of multi-megabyte blocks of data, plus a list of where each block goes on the virtual disk. Implementations can support TRIM by deleting the block that's zeroed and moving the block at the end of the file into that spot. VirtualBox can do this, shrinking the file when the guest OS TRIMs, but Hyper-V can't.

Re: How to free up and automatically manage disk space for WSL

#3
I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other.

I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

Re: How to free up and automatically manage disk space for WSL

#4
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

Wish there was a good option in corporate environments where I can’t just install Linux.

Re: How to free up and automatically manage disk space for WSL

#5
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

Wish there was a good option in corporate environments where I can’t just install Linux.

At work I asked for a remote server and my pc is just a terminal to use ssh & xwindows.

Re: How to free up and automatically manage disk space for WSL

#6
post #5

Earlier quoted context omitted.

Wish there was a good option in corporate environments where I can’t just install Linux.

At work I asked for a remote server and my pc is just a terminal to use ssh & xwindows.

I have something like that at work for testing Windows things, since my work machine is a Mac.

It's pretty miserable in terms of latency and window management. If you can get this to work well with NX or X forwarding, that's cool, but it's a second class offering when that's your only option.

Re: How to free up and automatically manage disk space for WSL

#7

I think Optimize-VHD will do the same thing as messing with diskpart. It's a shame you can't just turn on live TRIM support. This kind of disk image is a bunch of multi-megabyte blocks of data, plus a list of where each block goes on the virtual disk. Implementations can support TRIM by deleting the block that's zeroed and moving the block at the end of the file into that spot. VirtualBox can do this, shrinking the f…

It seems like just using a sparse file would make things simpler. I guess there would be potential inefficiency when you try to move the VM to another drive, but for just storing and using the VM in place it doesn't seem like this has to be hard: a TRIM inside the VM gets translated into a hole punch in the disk image file, which gets translated into a TRIM sent to the underlying storage.

Re: How to free up and automatically manage disk space for WSL

#8
post #6
post #5

Earlier quoted context omitted.

At work I asked for a remote server and my pc is just a terminal to use ssh & xwindows.

I have something like that at work for testing Windows things, since my work machine is a Mac. It's pretty miserable in terms of latency and window management. If you can get this to work well with NX or X forwarding, that's cool, but it's a second class offering when that's your only option.

Hm, are you using native Windows RDP? That one has pretty low latency even in the default configuration (assuming a capable client).

Re: How to free up and automatically manage disk space for WSL

#9
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

what distro did you go with
Post reply on HN