[SOLVED] too many unsuccessful flatpak updates lingered in this directory. It sorted itself out after rebooting the system.

var capacity 11.1 GiB, var usage 10.6 GiB

all 19 comments

sorted by: hot top controversial new old
[–] 13 points 1 year ago (1 child)

why would var have such a restraint? reminds me of overly complex tutorials tricking people into elaborate partitioning schemes

  • source
  • hideshow 1 child comment
  • [–] 5 points 1 year ago* (last edited 1 year ago)

    /var is often where processes dump a lot of data (logs, databases, etc), and subpartitioning of /var sets a cap so that when too much data is dumped there, the application crashes instead of the whole system. /var/log is often recommended to be subpartitioned separately as well, so that logging can still go on if the application data fills up and crashes.

    These kinds of overruns can be intentional DOS attacks, also, so the subpartitioning is often a security recommendation. NIST 800-171 requires separate partitions for /var, /var/log, /var/log/audit, and /var/tmp

  • source
  • parent
  • [–] 10 points 1 year ago* (2 children)

    du -hsc /var

    Check the sheets to see which directories are taking up your space.

  • source
  • hideshow 2 child comments
  • [–] 10 points 1 year ago* (last edited 1 year ago) (1 child)

    Uninstall all the flatpak packages that are installed as system wide packages and install them as user packages, that way flatpak will use your /home partition. I had the same problem.

  • source
  • hideshow 1 child comment
  • [–] 3 points 1 year ago (2 children)

    You can use baobab or ncdu to try to figure out what's filling it up.

  • source
  • hideshow 2 child comments
  • [–] [S] 1 point 1 year ago (1 child)

    I installed baobab 48.0.2 with sudo apt.

    should I install ncdu 2.9.1 with uniget install ncdu? the apt version is older than that

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    You do you, but I think it's rarely worth it having the absolutely newest version of something. The Debian version of a package may be older, but often has the advantage of being well-tested. And the Debian version of ncdu is all I've ever used and it has worked well.

    uniget, huh? That's not a package manager I've ever heard of before.

  • source
  • parent
  • [–] 2 points 1 year ago

    apt-get clean will clear the apt cache and should give you enough temporary storage headroom on /var to do things, but if you're bumping up on this limit often, you'll need to reconfigure your storage.

  • source
  • [+] -15 points 1 year ago (7 children)

    dd if=/dev/zero of=/var

    But really, remove what you don't use and/or stop using flatpak.

  • source
  • hideshow 7 child comments
  • [–] 16 points 1 year ago (4 children)

    FYI Don’t use this command. I think it was intended as a joke, but I just want to clarify.

  • source
  • parent
  • hideshow 4 child comments
  • [+] -6 points 1 year ago (3 children)

    That's why I didn't include any privilege escalation, even if someone ran it as is it would fail. But a warning is also appropriate, thanks.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 7 points 1 year ago (2 children)

    That doesn't make it better.

    The first thing a novice user learns is to slap sudo in the front if they don't have access to do something.

  • source
  • parent
  • hideshow 2 child comments