Today I payed attention to free disk space and I was surprised by Linux a a bad way. While my windows 7 with a lot of programs installed use only 62,3 GiB from a 223,5 GiB SSD drive. I’ve been using Manjaro from just 2 months in a dedicated SSD with 210,4 GiB and it’s using 160,4 GiB, wow.
The first think I looked was the Timeshift snapshots and I had only 5 once I have manual set up, I just deleted 2 snapshots without much effect in the free space.
So what I should look for in my system to get more free space?
It worth to mention that I have dedicated SSD drive for Games, maybe there are some temp files in main SSD, don’t know but it’s strange I wasn’t expecting such a high space consume from Linux.
160 GB’s for a system that does not contain games is a bit much.
But you can do this to get a good overview of where your space has actually gone.
Open a terminal and install ncdu with sudo pacman -S ncdu.
Run sudo ncdu /.
This will generate an ncurses interface with an overview of the folders sorted in the order of highest space taken. Disregard your WIN-SSD folder here.
I would expect Timeshift to be taking alot of space (first snapshot is always largest) and maybe your pacman cache in /var/cache/pacman/pkg/.
You can also just press the “Explore in Filelight” button, you have in your screenshot and it will generate a visual GUI to see where the folders taking up space.
After deleting some Timeshift snapshots and ponting in the first post I also deleted old update files thought the command below, but it’s not worth doing it because it saves only 1,3 GiB, so not so much and it’s safer to keep some cache in case of downgrade, it’s sad.
$ paccache -r
So I used the suggested tool Filelight and it is very nice feature, So I was able to found the 2 main issues for the big space being used, Torrent Folder not properly redirected to another Hard Disk, so I corrected the link, and TimeShift, it consumes a lot of space, it almost like back-uping the system mirroring all the files. Hoping for BTRFS to became the standard in the near future, they said the the back-up is faster and use less space.
For me, the usual suspects are stuff like PlasmaConfigSaver - which bloats my config directory somewhat to about 8GiB…
Then podcasts (The Infinite Monkey Cage is 3.5GiB) and .cache is pretty big too…
But 250GiB system disk - not an issue. Wouldn’t be clever on a laptop without extra storage options though.
Hmmm one issue I have with ncdu / is that it includes my Timeshift (mounted /run/timeshift - where it’s also mounted by the system as /mnt/T3/timeshift and is a separate drive).