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.

  • @[email protected]
    link
    fedilink
    English
    62 years ago

    Not sure about arch but one thing I’ve found takes up a fair amount of space is older kernel versions that remain installed

  • @[email protected]
    link
    fedilink
    English
    52 years ago

    One quick suggestion is running sudo pacman -Sc. Also switch to flatpak on some apps since these are stored in /home. If these don’t work/are not suitable to your situation, give more information like mentioned on the other comments.

  • Bruno Finger
    link
    fedilink
    22 years ago

    Not sure if arch is too different, but Linux is Linux. I suggest you get any live distro you can such as Ubuntu or fedora on a live usb stick and boot into it, once in it run gparted (or first install it if not available) and simply resize your partitions around as in to allocate some space from your home partition to your root partition. Should be a fairly simple operation especially with an easy and intuitive GUI such as gparted.

    • @[email protected]OP
      link
      fedilink
      22 years ago

      To be clear, I have a home partition with over 300GB of free space left. Is there maybe a way to specify packages to be installed in my home partition instead of my root?

      • @[email protected]
        link
        fedilink
        22 years ago

        As people have mentioned there are alternate package managers that can provide this if you are concerned about resizing ur root partition and expect it to fill up again soon. Check out Guix, nix, or flatpaks (definitely the easiest to quickly setup )

    • @[email protected]
      link
      fedilink
      12 years ago

      Because you don’t need to dd your entire /home partition to a drive, wipe your system drive, then dd your /home back.

  • @[email protected]
    link
    fedilink
    22 years ago

    Just in case you use Docker, you should clean images and containers on disk. They usually live on the root partition and take huge amounts of space.

  • lemmyvore
    link
    fedilink
    English
    62 years 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.
  • @[email protected]
    link
    fedilink
    42 years ago

    If the other answers don’t help, you could increase your root partition’s size, with gparted. (do a backup of your important data before doing it)

  • Entropy
    link
    fedilink
    English
    32 years ago

    I had this issue so many times, I ended up re installing and having everything on 1 partition instead of separating root and home