ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora - Low disk space on root.

    IT Discussion
    fedora disk space low diskspace
    8
    28
    3.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre
        last edited by

        Where's all the space going?

        1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ
          last edited by

          I am trying to figure it out now.

          gjacobseG dafyreD 2 Replies Last reply Reply Quote 0
          • gjacobseG
            gjacobse @IRJ
            last edited by

            @irj said in Fedora - Low disk space on root.:

            I am trying to figure it out now.

            Tagging @scottalanmiller

            1 Reply Last reply Reply Quote 0
            • dafyreD
              dafyre @IRJ
              last edited by

              @irj said in Fedora - Low disk space on root.:

              I am trying to figure it out now.

              cd /
              du -hs
              

              Then go from there.

              IRJI 1 Reply Last reply Reply Quote 2
              • stacksofplatesS
                stacksofplates
                last edited by stacksofplates

                Do du -xsh /*. Should show the highest using directories.

                IRJI 1 Reply Last reply Reply Quote 2
                • stacksofplatesS
                  stacksofplates
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 1
                  • IRJI
                    IRJ
                    last edited by

                    dnf autoremove

                    Freed up about 2GB. Deleting unused kernels freed up about a 1GB. I am still searching for the real disk space hog.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Fedora typically does not fill up and need cleaned out like Windows does. Chances are this is something rather unique.

                      IRJI 1 Reply Last reply Reply Quote 1
                      • ObsolesceO
                        Obsolesce
                        last edited by

                        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.

                        IRJI 1 Reply Last reply Reply Quote 2
                        • IRJI
                          IRJ @dafyre
                          last edited by

                          @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
                          
                          travisdh1T 1 Reply Last reply Reply Quote 0
                          • IRJI
                            IRJ @Obsolesce
                            last edited by

                            @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....

                            1 Reply Last reply Reply Quote 1
                            • IRJI
                              IRJ
                              last edited by

                              /var/log is 954MB. That seems high, but not the culprit.

                              1 Reply Last reply Reply Quote 0
                              • IRJI
                                IRJ
                                last edited by

                                /var/cache is 1.2GB. Again that also seems high, but likely not culprit.

                                1 Reply Last reply Reply Quote 0
                                • IRJI
                                  IRJ
                                  last edited by

                                  /var/lib is 34G. I have found my culprit.

                                  1 Reply Last reply Reply Quote 1
                                  • IRJI
                                    IRJ @stacksofplates
                                    last edited by

                                    @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	.
                                    JaredBuschJ stacksofplatesS 2 Replies Last reply Reply Quote 0
                                    • travisdh1T
                                      travisdh1 @IRJ
                                      last edited by travisdh1

                                      @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 another du -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.

                                      1 Reply Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce
                                        last edited by

                                        So what software in /var/lib is taking up all the space?
                                        du -xsh /var/lib*
                                        ls -lash /var/lib

                                        IRJI 1 Reply Last reply Reply Quote 0
                                        • JaredBuschJ
                                          JaredBusch @IRJ
                                          last edited by JaredBusch

                                          @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 -

                                          1 Reply Last reply Reply Quote 0
                                          • stacksofplatesS
                                            stacksofplates @IRJ
                                            last edited by stacksofplates

                                            @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.

                                            IRJI 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post