0

My /var is taking up the whole disk

sudo du -hx --max-depth=1 /
2.0G    /opt
46G /var
12K /media
4.0K    /srv
196K    /tmp
4.0K    /mnt
36M /root
8.3G    /usr
4.0K    /cdrom
200K    /snap
32K /timeshift
16M /etc
16K /lost+found
57G /

I stared nautilus in admin mode (sudo nautilus), moved old /var/log old version to trash. Then it wouldn't let me open Trash folder

  1. Where did they go?
  2. How do I decrease the size of /var?
muru
  • 207,228

1 Answers1

0

I have also encountered an issue of /var taking up huge amounts of space. For me it seems to be cause by a misbehaving application (gvfsd-trash) which takes up an entire CPU core and uses said core to flood the system log with error messages. This can get big very fast. Try restarting your system and removing /var/log/syslog* with sudo! (could have unkown impact on system!, I didnt have any trouble)

Edit: just looked: Trash folder for root is in /root/.local/share/Trash! you should be able to delete it and remove everything from root's recycle bin!