Running out of memory already

Now, try ncdu to see what uses your disk.

that replies ‘command not found’

but i installed it

After installing:
sudo apt install ncdu,
it should work.

I did install it. but it is not ver informative. not really suited for such a small screen.

It works well enough in horizontal mode for me. You can also try the Usage app (Storage tab)

An alternative to the Usage app is GNOME System Monitor, which can show a lot more detail: My demo here.

P.S. I just freed up half a gig by moving my pictures to the µSD card.

ncdu gives only partial info
usage hangs on ‘scanning directories’

Also maybe don’t worry about it since you have 9GB remaining. I would start worrying about it if say 1GB is remaining.

1 Like

Try this:

flatpak uninstall --unused

Which will remove any flatpak files not currently in use. I also found this in a Linux Mint forum:

sudo rm -rf /var/tmp/flatpak-cache-*
sudo rm -rf /var/lib/flatpak/.removed/

Which also freed up a bunch of space on my L5.

3 Likes

true. still some space left. and not a lot of stuff to install.

Ah! Good one. I’ll give it a try.

Clearing Firefox’s cache netted me 111 MB. (Not much, I know.)

Does this also uninstall installed flatpaks if you simply haven’t used them in a while? Or just remnants of already uninstalled flatpaks?

Also doing this once and a while will prune the size of the journal:

sudo journalctl --vacuum-time=7d

If you haven’t done this yet I bet you’ll get a bunch more space back as well but that isn’t automatic. I also went and configured my journal file to not exceed 500 meg and 30 days.

1 Like

Those tmp flatpak files are huge.

1 Like

Should just write a script that does all this stuff and make it a cron job…lol.

2 Likes

I despise flatpaks for their size.

5 Likes

Wow!
I haven’t checked whether something got broken while executing these commands. But I did all of them, and now df -h / returns
14Gb free. Disks reports 15 G free.
Result!
Thanks!

3 Likes

I’ve regained 25% 33% of my drive space today. :+1:

1 Like

just a recap. I did:

flatpak uninstall --unused

sudo rm -rf /var/tmp/flatpak-cache-*
sudo rm -rf /var/lib/flatpak/.removed/

sudo journalctl --vacuum-time=7d

3 Likes