Low Disk Space on Filesystem Root

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
MassiveMUg
Level 1
Level 1
Posts: 8
Joined: Fri May 08, 2020 8:21 am

Low Disk Space on Filesystem Root

Post by MassiveMUg »

Hello,

I have been using linux mint for a while and I have started to the notification in the title. In disk analyser it shows that the majority of the space is being taken up from /var. I'm not really sure where to go from there. I have another 800MB that is unallocated that I could use to add to it but I am not really sure how to use it. I've left some details below. Many thanks.

Code: Select all

Filesystem     1K-blocks     Used Available Use% Mounted on
udev             3812484        0   3812484   0% /dev
tmpfs             770016     1624    768392   1% /run
/dev/nvme0n1p5  15314280 12873664   1642972  89% /
tmpfs            3850072   110584   3739488   3% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            3850072        0   3850072   0% /sys/fs/cgroup
/dev/nvme0n1p1    262144    35292    226852  14% /boot/efi
/dev/nvme0n1p7  60294012 22592408  34609076  40% /home
tmpfs             770012       32    769980   1% /run/user/1000
User avatar
LanceM
Level 10
Level 10
Posts: 3487
Joined: Sun Jul 08, 2018 11:50 pm

Re: Low Disk Space on Filesystem Root

Post by LanceM »

Let's look at the output of this command:

Code: Select all

sudo du /var/log -h
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
senjoz
Level 4
Level 4
Posts: 273
Joined: Tue Jun 09, 2020 3:55 am
Location: Kamnik

Re: Low Disk Space on Filesystem Root

Post by senjoz »

With Disk Usage Analyzer go further in /var directory and find out what takes disk space. Journal files can be quite big. Your root partition looks small.

Regards,
Jože
MassiveMUg
Level 1
Level 1
Posts: 8
Joined: Fri May 08, 2020 8:21 am

Re: Low Disk Space on Filesystem Root

Post by MassiveMUg »

Code: Select all

4.0K	/var/log/hp/tmp
8.0K	/var/log/hp
1.6M	/var/log/timeshift
4.0K	/var/log/dist-upgrade
1.7M	/var/log/installer
68K	/var/log/cups
465M	/var/log/journal/aaa642a1efb049fba8d6ca0c8d22ff0a
465M	/var/log/journal
4.0K	/var/log/samba
180K	/var/log/lightdm
268K	/var/log/apt
4.0K	/var/log/openvpn
4.0K	/var/log/speech-dispatcher
482M	/var/log
User avatar
LanceM
Level 10
Level 10
Posts: 3487
Joined: Sun Jul 08, 2018 11:50 pm

Re: Low Disk Space on Filesystem Root

Post by LanceM »

Well your log file isn't bloated, but you can run pjotr's cleanup. It will gain some space. It's a very good cleanup. Also we can look at all of /var used with:

Code: Select all

sudo du -a -m /var | sort -n -r | head -n 10
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
MassiveMUg
Level 1
Level 1
Posts: 8
Joined: Fri May 08, 2020 8:21 am

Re: Low Disk Space on Filesystem Root

Post by MassiveMUg »

Code: Select all

6095	/var
3674	/var/lib
3286	/var/lib/flatpak
3039	/var/lib/flatpak/repo
3032	/var/lib/flatpak/repo/objects
1760	/var/tmp
1412	/var/tmp/flatpak-cache-6O3GP0/repo-CbAVJe
1412	/var/tmp/flatpak-cache-6O3GP0
1340	/var/tmp/flatpak-cache-6O3GP0/repo-CbAVJe/objects
498	/var/log
senjoz
Level 4
Level 4
Posts: 273
Joined: Tue Jun 09, 2020 3:55 am
Location: Kamnik

Re: Low Disk Space on Filesystem Root

Post by senjoz »

It looks like flatpaks use a lot of disk space. I am not very familiar with flatpaks. Maybe others, more knowledgeable about that, will suggest you how to clean up.

Regards,
Jože
linux-rox
Level 5
Level 5
Posts: 837
Joined: Sun Jul 19, 2020 9:17 pm

Re: Low Disk Space on Filesystem Root

Post by linux-rox »

senjoz wrote:
Sun Aug 09, 2020 2:53 pm
Your root partition looks small.
This. By my calculation, only 15 GB.

By the way, MassiveMUg, where are you saving Timeshift snapshots?
Last edited by linux-rox on Mon Aug 10, 2020 12:19 pm, edited 1 time in total.
User avatar
LanceM
Level 10
Level 10
Posts: 3487
Joined: Sun Jul 08, 2018 11:50 pm

Re: Low Disk Space on Filesystem Root

Post by LanceM »

You can run this command to remove no longer needed flatpak files:

Code: Select all

flatpak uninstall --unused
Then run the command again to see:

Code: Select all

sudo du -a -m /var | sort -n -r | head -n 10
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
cliffcoggin
Level 6
Level 6
Posts: 1298
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Low Disk Space on Filesystem Root

Post by cliffcoggin »

I had a similar problem with var/tmp growing to fill all available space that turned out to be a Flatpak application adding a new file every day. Deleting hundreds of files was a short term solution; removing Flatpaks entirely was the long term solution for me.
Cliff Coggin
MassiveMUg
Level 1
Level 1
Posts: 8
Joined: Fri May 08, 2020 8:21 am

Re: Low Disk Space on Filesystem Root

Post by MassiveMUg »

My root partition is only 15GB. I think I allocated way too little space for the linux distro as I wasn't sure how I much space I was going to need for the windows one as well.

My timeshift snapshots are saved in the /home directory.

I followed the instructions and here is the result.

Code: Select all

5713	/var
3264	/var/lib
2861	/var/lib/flatpak
2372	/var/lib/flatpak/repo
2365	/var/lib/flatpak/repo/objects
1760	/var/tmp
1412	/var/tmp/flatpak-cache-6O3GP0/repo-CbAVJe
1412	/var/tmp/flatpak-cache-6O3GP0
1340	/var/tmp/flatpak-cache-6O3GP0/repo-CbAVJe/objects
531	/var/log
Also, I'd like to say thanks for any help. You don't have to do this but I really appreciate it.
User avatar
LanceM
Level 10
Level 10
Posts: 3487
Joined: Sun Jul 08, 2018 11:50 pm

Re: Low Disk Space on Filesystem Root

Post by LanceM »

You need to expand your root partition or do a different install to a bigger disk. Flatpak are huge downloads and take lat lot of space. uninstalling unneeded gained some space. Enough you might not get a warning for a short while.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
User avatar
deck_luck
Level 6
Level 6
Posts: 1063
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: Low Disk Space on Filesystem Root

Post by deck_luck »

I had a very unusual experience with flatpak. I never recall installing any software using flatpak. One day I was checking space, and I found the /var/lib/flatpak directory had consumed 4GiB (scratched my head). I ran the flatpak list command, and it did not reveal any packages. I ran the flatpak repair, and it cleaned up the space in /var/lib/flatpak directory. I was thinking maybe an previous package actually pulled in a flatpak without my knowledge. Even if it did that, it does not explain why the flatpak list command did not reveal any packages or why the repair cleaned it all up.
🐧Linux Mint 19 XFCE 💡Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️ Proverbs 4:7 Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding.
User avatar
LanceM
Level 10
Level 10
Posts: 3487
Joined: Sun Jul 08, 2018 11:50 pm

Re: Low Disk Space on Filesystem Root

Post by LanceM »

Your running out of space on / is why I don't suggest to inexperienced users, that they create a separate Home partition. Had you done a default install, you would still be okay. However, overall, that's a small drive, especially if you are using Flatpak and keeping Timeshift snapshots on the same drive. They would be much better in your case, especially, to be stored on a portable drive. Fixing it as it is, requires a convoluted process. A clean install would be easier. You could consider Btrfs for / which includes Home if you don't create a separate directory. You can create a 2GB Swap partition right after the EFI partition, then the rest as / with Btrfs. Snapshots take up almost no space and are instant. It's what I use in machines with small drive capacity. Plus, I use it on my own system and have for years.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
User avatar
BG405
Level 8
Level 8
Posts: 2415
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: Low Disk Space on Filesystem Root

Post by BG405 »

Code: Select all

cd /var/cache/apt/archives/ && pwd | sudo du -h
Post the output. Maybe your APT cache is getting full.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Two ROMS don't make a WRITE ...
asinoro
Level 6
Level 6
Posts: 1163
Joined: Mon Feb 12, 2018 11:43 am

Re: Low Disk Space on Filesystem Root

Post by asinoro »

Run these commands and check again:

Code: Select all

sudo apt clean
sudo apt autoclean
User avatar
deck_luck
Level 6
Level 6
Posts: 1063
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: Low Disk Space on Filesystem Root

Post by deck_luck »

:roll:
I think the mug is full.
🐧Linux Mint 19 XFCE 💡Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️ Proverbs 4:7 Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding.
Post Reply

Return to “Newbie Questions”