Arch Linux keeps on consuming space.

I have used Manjaro in the past then I distro hopped from it to many other distros including vanilla arch. I have noticed that every time I am on arch. It just keeps on consuming space.

I have a laptop with i5 4210U. I removed the CD drive and added a 120GB SSD about 2 Years ago. I always use the whole 120GB as my root/home until now.

Anyways, whenever I am on arch I notice that it takes around 12GB with xfce/i3wm installed and couple of drivers with all the basic packages like media player, samba, whatnot and maybe 3-4 packages from AUR. But within 2-3 days the space on my disk reduced and Arch was suddenly taking about 18GB. This happened when I was on Manjaro as well. Within a week of using Arch as my daily distro the space it was occupying was 45GB out of 120GB. What is with this? Does anyone has this issue? I checked all the files and cleared as much cache and old packages as possible and ended up with 41GB finally. I have another drive where I store all my files and downloads. I even used a disk analyzer to check and couldn’t find anything at all. I never had this issue on OpenSUSE Tumbleweed, Void or even Debian sid

@ajz
link
61Y

You can use ncdu (cli) or baobab (gui) to find out which directories take up a lot. Likely /var/ and /usr/ take up most. Then on the command-line e.g. find / -size +100M will find all files larger than 100 Megabytes. Are you using Flatpak ? I do, and it eats quite some space. Also Docker eats a lot of space. My Arch based Linux currently has : /usr 10 Gb /var 12 Gb

@Czernobog
creator
link
31Y

When i mentioned I even used a disk analyzer, I meant baobab. No I don’t use Flatpaks. I don’t use docker either. I use my laptop for entertainment, note taking and maybe some coding like writing config files for window manager, display manager, bluetooth or samba thats it. :/

@Atemu
link
1
edit-2
1Y

Could you run sudo du -sh /* and post the result?

@Czernobog
creator
link
11Y

Sorry, I am not on Arch anymore.

@ajz
link
1
edit-2
1Y

In case of using “du” I suggest this :

  • cd / (image) Installing “ncdu” is maybe easier.
@ajz
link
11Y

You could install a fresh OS install on another computer (or VPS), and compare. Then install all the apps on that, and again compare. Maybe it is a disk and file system issue.

@AlexMV12
link
41Y

This is strange. Have you tried with Filelight? I mean, if the space is occupied, there must be some huge files somewhere.

@Czernobog
creator
link
2
edit-2
1Y

I didn’t try flielight because it is kde based and since I usually use xfce I didn’t want it to install extra tons of dependencies… I did try Baobab though. The most consumed space it showed me was from icons and GTK3 theme. I had installed Bibata, Papirus and Adwaita-Cyan-Dark. I have kept a copy of these files so that whenever I distro hop I can just copy and paste them in their respective directory. All the icons and theme size is around 170MB

@YouWalkOffCliffSoDoI
link
1
edit-2
1Y

du -xchad1 / | grep '^[0-9.]*G' - then walk down directories (changing /) until you find the problem. Your numbers sounds like something you are doing is taking up way now space than you are expecting / is normal.

@joonazan
link
11Y

There is (was?) some big system log file that has no size limit by default. Don’t remember what exactly anymore.

@ajz
link
11Y

vendion
link
21Y

You can set SystemD’s journal to use a smaller size if that helps, as by default is can grow to be fairly large. https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit

Also may be worth manually cleaning old logs from the journal, seeing as your journal is already almost 400 MiB in size https://wiki.archlinux.org/index.php/Systemd/Journal#Clean_journal_files_manually

If you have not already I also recommend adding a hook to pacman to automatically run paccache to clear out old packages from /var/cache/pacman/pkg/ an example of such a hook can be found here https://bbs.archlinux.org/viewtopic.php?pid=1694743#p1694743 I usually keep the last 2 packages around incase something is broken with a newer version and need to rollback.

@Wronnay
link
31Y

pacman-contrib ships with a tool for cleaning old packages:

pacman -S pacman-contrib

And then for automatic cleans:

systemctl enable paccache.timer
systemctl start paccache.timer

Or manually:

paccache -r
@ajz
link
21Y

cool. thanks !

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 0 users online
  • 41 users / day
  • 67 users / week
  • 130 users / month
  • 428 users / 6 months
  • 3988 subscribers
  • 1299 Posts
  • 3856 Comments
  • Modlog