You are not logged in.

#1 2024-01-05 20:59:21

not_a_kangaroo
Member
Registered: 2024-01-05
Posts: 22

[SOLVED] Low disk space on filesystem root

Hi,

I'm getting a notification warning me of low disk space on "Filesystem root". Here's the output of df:

```
Filesystem                     Size  Used Avail Use% Mounted on
dev                            7.7G     0  7.7G   0% /dev
run                            7.7G  2.3M  7.7G   1% /run
/dev/mapper/volgroup0-lv_root   30G   28G  451M  99% /
tmpfs                          7.7G  1.1M  7.7G   1% /dev/shm
tmpfs                          7.7G   12K  7.7G   1% /tmp
/dev/loop6                      41M   41M     0 100% /var/lib/snapd/snap/snapd/20290
/dev/loop2                      64M   64M     0 100% /var/lib/snapd/snap/core20/2105
/dev/loop1                      56M   56M     0 100% /var/lib/snapd/snap/core18/2812
/dev/loop8                      91M   91M     0 100% /var/lib/snapd/snap/whatsapp-for-linux/58
/dev/loop7                      92M   92M     0 100% /var/lib/snapd/snap/gtk-common-themes/1535
/dev/loop0                     128K  128K     0 100% /var/lib/snapd/snap/bare/5
/dev/loop5                     118M  118M     0 100% /var/lib/snapd/snap/slack/118
/dev/loop3                     219M  219M     0 100% /var/lib/snapd/snap/gnome-3-34-1804/93
/dev/loop4                     350M  350M     0 100% /var/lib/snapd/snap/gnome-3-38-2004/143
/dev/mapper/volgroup0-lv_home  439G   26G  391G   7% /home
tmpfs                          1.6G   56K  1.6G   1% /run/user/1000
```
It's pretty obvious what's happening - I have a full root drive - but my question is how does this end up happening? What installations are taking up this space and is there a way to overcome the problem without needing to wipe the comp and increasing the root drive space before going through the LONG process of getting it configured the way I like it?

Being a newbie I followed some instructions when setting up arch and went with the recommended (by the instructions) 30GB of space into a root drive, maybe this was too low?

Many thanks in advance for any help, and do let me know if I can share anything else to make it easier to answer.

Last edited by not_a_kangaroo (2024-01-05 22:17:13)

Offline

#2 2024-01-05 21:18:26

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,892
Website

Re: [SOLVED] Low disk space on filesystem root

https://archlinux.org/packages/extra/x86_64/ncdu/ is your friend here.

Or just plain du if you're l33t enough tongue


Jin, Jîyan, Azadî

Online

#3 2024-01-05 21:27:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 67,445

Re: [SOLVED] Low disk space on filesystem root

"du -hs /var/cache" usually does …

Offline

#4 2024-01-05 21:48:19

not_a_kangaroo
Member
Registered: 2024-01-05
Posts: 22

Re: [SOLVED] Low disk space on filesystem root

Thanks both for your replies. Spotting the cache was pretty full (with ncdu) I've managed to clear some space and get down to 88% utilisation of lv_root. So better than before but not amazing.

This has brought up a few questions for me that I'm hoping you may be able to advise on - in my naive view, I assumed that everything I have installed to date would have been going into the lv_home dir, as I have been logged as the home user. Is there a way I should know where something is going and/ or a way to direct it elsewhere? I.e. so that rather than filling the limited space in my lv_root partition, it is installed in lv_home (which has ~ 400GB of free space). Or is this to do with when installing something as superuser, it will end up in the lv_root space by default? I.e. sudo pacman -S or when entering my root password when using yay?

Going forwards, how do you suggest I fix this? From what I can see online, because I followed an installation using logical volumes, there seems to be a way in which I could steal some space from the lv_home dir to increase the size of lv_root. Is this recommended, or am I on the wrong path?

Thanks again!

Offline

#5 2024-01-05 22:16:08

not_a_kangaroo
Member
Registered: 2024-01-05
Posts: 22

Re: [SOLVED] Low disk space on filesystem root

Think I have found everything I need here:

https://www.linuxquestions.org/question … 175592426/

Will hopefully be useful for anyone finding their way here in the future.

Thanks for your help all!

Offline

#6 2024-01-05 22:17:14

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 67,445

Re: [SOLVED] Low disk space on filesystem root

If you find a package that installs anything in /home, you can file a bug against it.

https://wiki.archlinux.org/title/LVM#Re … _in_one_go

Offline

#7 2024-01-05 22:29:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,892
Website

Re: [SOLVED] Low disk space on filesystem root

In respect of the pacman cache see https://wiki.archlinux.org/title/Pacman … kage_cache. I've just now remembered to enable paccache.timer on my new system thanks to this thread smile


Jin, Jîyan, Azadî

Online

Board footer

Powered by FluxBB