Fedora - Low disk space on root.
-
I have a 54GB partition on my root partition and I am running low on disk space. I am using 128GB disk and 65 GB is allocated for my home directory, so I dont have too much space to spare.
Is there any cleanups I can do to help free up space?
-
Where's all the space going?
-
I am trying to figure it out now.
-
@irj said in Fedora - Low disk space on root.:
I am trying to figure it out now.
Tagging @scottalanmiller
-
@irj said in Fedora - Low disk space on root.:
I am trying to figure it out now.
cd / du -hs
Then go from there.
-
Do
du -xsh /*
. Should show the highest using directories. -
I seem to remember the
/root/.esmtp_queue
filling up on a system one time. But that was the only thing that randomly filled up that I recall. -
dnf autoremove
Freed up about 2GB. Deleting unused kernels freed up about a 1GB. I am still searching for the real disk space hog.
-
Fedora typically does not fill up and need cleaned out like Windows does. Chances are this is something rather unique.
-
That's weird. I'm on Fedora 28 Workstation and upgraded it several times and my
/
is only using 20 GB. I have tons of crap installed.Check the following:
/var/log
/var/cache
I've seen logs go crazy in the past, could also be the cache.
-
@dafyre said in Fedora - Low disk space on root.:
@irj said in Fedora - Low disk space on root.:
I am trying to figure it out now.
cd / du -hs
Then go from there.
0 /bin 193M /boot 0 /dev 40M /etc 12G /home 0 /lib 0 /lib64 16K /lost+found 4.0K /media 4.0K /mnt 91M /opt du: cannot access '/proc/8074/task/8074/fd/3': No such file or directory du: cannot access '/proc/8074/task/8074/fdinfo/3': No such file or directory du: cannot access '/proc/8074/fd/3': No such file or directory du: cannot access '/proc/8074/fdinfo/3': No such file or directory 0 /proc 712K /root 2.2M /run 0 /sbin 4.0K /srv 0 /sys 632K /tmp 8.3G /usr 36G /var
-
@obsolesce said in Fedora - Low disk space on root.:
That's weird. I'm on Fedora 28 Workstation and upgraded it several times and my
/
is only using 20 GB. I have tons of crap installed.Check the following:
/var/log
/var/cache
I've seen logs go crazy in the past, could also be the cache.
It seems like you may be on to something....
-
/var/log
is 954MB. That seems high, but not the culprit. -
/var/cache
is 1.2GB. Again that also seems high, but likely not culprit. -
/var/lib
is 34G. I have found my culprit. -
@stacksofplates said in Fedora - Low disk space on root.:
Do
du -xsh /*
. Should show the highest using directories.I am unable to use this command on
/var/lib
This is the output:
[user@PCName lib]# du -xsh 34G .
-
@irj said in Fedora - Low disk space on root.:
@dafyre said in Fedora - Low disk space on root.:
@irj said in Fedora - Low disk space on root.:
I am trying to figure it out now.
cd / du -hs
Then go from there.
0 /bin 193M /boot 0 /dev 40M /etc 12G /home 0 /lib 0 /lib64 16K /lost+found 4.0K /media 4.0K /mnt 91M /opt du: cannot access '/proc/8074/task/8074/fd/3': No such file or directory du: cannot access '/proc/8074/task/8074/fdinfo/3': No such file or directory du: cannot access '/proc/8074/fd/3': No such file or directory du: cannot access '/proc/8074/fdinfo/3': No such file or directory 0 /proc 712K /root 2.2M /run 0 /sbin 4.0K /srv 0 /sys 632K /tmp 8.3G /usr 36G /var
The /var directory is the culprit, and @Obsolesce is on the right track here I think. If you haven't
cd /var
and run anotherdu -hs
, time to do that. du is the command I use to track down drive space issues.Being that the system has been upgraded, my money would be on a log file growing to ginourmous proportions.
-
So what software in
/var/lib
is taking up all the space?
du -xsh /var/lib*
ls -lash /var/lib
-
@irj said in Fedora - Low disk space on root.:
@stacksofplates said in Fedora - Low disk space on root.:
Do
du -xsh /*
. Should show the highest using directories.I am unable to use this command on
/var/lib
This is the output:
[user@PCName lib]# du -xsh 34G .
switch to root?
su -
-
@irj said in Fedora - Low disk space on root.:
@stacksofplates said in Fedora - Low disk space on root.:
Do
du -xsh /*
. Should show the highest using directories.I am unable to use this command on
/var/lib
This is the output:
[user@PCName lib]# du -xsh 34G .
-s is summary. So you need to do du -xsh * to show each directory inside of there.