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.

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    8 months ago

    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:

    • Use dd if=/dev/zero of=/swapfile bs=1M count=1024 to create a file.
    • Use mkswap to format the swap file.
    • Use swapon /swapfile to activate it.
    • Add /swapfile none swap sw 0 0 in /etc/fstab to activate on every reboot.