After installing pacman packages (last one was ‘ungoogled-chromium’) my root partition of 20GB is completly full. Now I can’t update new packages.
My partition structure is: root (20GB) /home (470GB) swap (10GB)
How can I delete the garbage that is piling up in my root, and how to prevent it from happening again.
In addition to everything else, if you’re not using hibernate you could reclaim some of the swap partition, 10 GB is completely wasted.
I would delete and merge the swap space into root if they’re neighbors. You can create swap files instead of any size you want, and place them anywhere you want, like /home.
I would recommend starting with 1 GB of swap and see how much is actually being used.
To create and use a swap file:
dd if=/dev/zero of=/swapfile bs=1M count=1024
to create a file.mkswap
to format the swap file.swapon /swapfile
to activate it./swapfile none swap sw 0 0
in/etc/fstab
to activate on every reboot.