wslcompact
wslcompact copied to clipboard
Have 194GB available, yet I need to change TEMP to drive with at least 0 MB free space
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.
I've used this successfully last year. Today I updated it and now this. Don't know if it's because of the update.
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
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"!
How do you manage to know the real free space needed? Else any advice from the others?
Thanks
@tlevyaleia I found how much space is needed in this file:
($estimated * $sf)
https://github.com/okibcn/wslcompact/blob/b9eee55425820f18d6d48c367f9d1d9e5826efa7/WslCompact/WslCompact.psm1#L85