You are not logged in.
Pages: 1
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
https://archlinux.org/packages/extra/x86_64/ncdu/ is your friend here.
Or just plain du if you're l33t enough
Jin, Jîyan, Azadî
Online
"du -hs /var/cache" usually does …
Offline
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
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
If you find a package that installs anything in /home, you can file a bug against it.
Offline
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
Jin, Jîyan, Azadî
Online
Pages: 1