why would var have such a restraint? reminds me of overly complex tutorials tricking people into elaborate partitioning schemes
post
du -hsc /var
Check the sheets to see which directories are taking up your space.
du -hsc /var
sudo du -hsc /var returns: 10G /var, 10G total
du -hsc /var returns: du: cannot read directory '/var/lost+found': Permission denied, du: cannot read directory '/var/spool/cron/crontabs': Permission denied...
25 more lines like this
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.
Usually var gets full of old log files. So maybe delete some of those. Apt-cache is also a suspect
You can use baobab or ncdu to try to figure out what's filling it up.
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
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.
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.
dd if=/dev/zero of=/var
But really, remove what you don't use and/or stop using flatpak.
FYI Don’t use this command. I think it was intended as a joke, but I just want to clarify.
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.
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.
Wouldn't that just make a file full of zeros?
I think the proper (joke) command here would be
rm -rf /var/*
all 21 comments