Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glockmane opened this issue Jul 13, 2024 · 3 comments

Comments

@glockmane
Copy link

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..

@substring
Copy link
Owner

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 ?

@dubcl
Copy link

dubcl commented Jul 23, 2024

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.

@substring
Copy link
Owner

Arigato gozaimasu 🙇🏻

I'll fix that one back from holidays !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants