os icon indicating copy to clipboard operation
os copied to clipboard

Less than 10% Space warning after installing latest Version to 500GB SSD

Open glockmane opened this issue 1 year ago • 3 comments
trafficstars

Fresh install from the Live ISO.. Installed yesterday from the last 2023 ISO without any problem.. Now with the 2024.7 ISO I got this problem..

glockmane avatar Jul 13 '24 17:07 glockmane

Because it's a new feature of gasetup that you would anyway get with an update of the previous iso. I'll have a look at it. Can you send me the output of df -h ?

substring avatar Jul 14 '24 05:07 substring

Hi @substring , in the gasetup gitlab repo, the "core/procedures/interactive" file had a miss evaluation of the space left, df provide the space used, not the space free, then the evaluation must be "-gt" 90

  else
    space_used="$(df --output=pcent / | tail -1 | grep -oE '[0-9]+')"
    if [[ $space_used -gt 90 ]] ; then
      notify "Your main drive has less than 10% free space left"
    fi
  fi
}

Another approach is use awk to get the free space, for example:

df -h | awk 'NR==1{print "Free Space"} NR>1{used=substr($5, 1, length($5)-1); free=100-used; print free"%"}'

I create an issue directly in the gasetup repo https://gitlab.com/groovyarcade/gasetup/-/issues/19

Regards.

dubcl avatar Jul 23 '24 20:07 dubcl

Arigato gozaimasu 🙇🏻

I'll fix that one back from holidays !

substring avatar Jul 23 '24 20:07 substring

Done with https://gitlab.com/groovyarcade/gasetup/-/commit/d24571d88b0b0335c5f8806b313d0de52bad77ad, will be in the coming gasetup release

substring avatar Jun 03 '25 13:06 substring