okibcn / wslcompact

Compacts the size of the ever-growing WSL vhdx images.
https://github.com/okibcn/wslcompact
GNU General Public License v3.0
800 stars 19 forks source link

Have 194GB available, yet I need to change TEMP to drive with at least 0 MB free space #35

Open MissYeh opened 6 months ago

MissYeh commented 6 months ago

How much space does wslcompact need to work its magic? 0MB required but I have 194GB free space available.

Current size: 317966 MB Estimated size: 270379 +/- 6595 MB The estimated process time using an SSD is about 66 minutes. WARNING: there isn't enough free space in temp drive C to process Ubuntu-22.04. There are only 198738 MB available.

Please, change the TEMP folder to a drive with at least 0 MB of free space. You cand do it by typing $env:TEMP="Z:/your/new/temp/folder" before using wslcompact.

2024-05-15

I've used this successfully last year. Today I updated it and now this. Don't know if it's because of the update.

MissYeh commented 6 months ago

I found the answer to how much space is needed,

$sf = 1.05
...
if (($estimated * $sf) 

So in my case I need 283898. I already uninstalled most big things and can't remove more. So,. an external drive it is.

https://github.com/okibcn/wslcompact/blob/b9eee55425820f18d6d48c367f9d1d9e5826efa7/WslCompact/WslCompact.psm1#L86

tlevyaleia commented 5 months ago

Hello @MissYeh I have the same issue than you with: "Please, change the TEMP folder to a drive with at least 0 MB of free space"!

image

How do you manage to know the real free space needed? Else any advice from the others?

Thanks

MissYeh commented 5 months ago

@tlevyaleia I found how much space is needed in this file: ($estimated * $sf) https://github.com/okibcn/wslcompact/blob/b9eee55425820f18d6d48c367f9d1d9e5826efa7/WslCompact/WslCompact.psm1#L85