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

      /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
                • IRJI
                  IRJ @Obsolesce
                  last edited by

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

                  ls -lash /var/lib

                  [user@PC lib]# du -xsh /var/lib*
                  34G	/var/lib
                  [user@PC lib]# ls -lash /var/lib
                  total 240K
                  4.0K drwxr-xr-x. 60 root    root    4.0K Jul 27 09:18 .
                  4.0K drwxr-xr-x. 23 root    root    4.0K Jun  5 09:25 ..
                  4.0K drwxr-xr-x.  2 root    root    4.0K May 31 05:44 abrt
                  4.0K drwxr-xr-x.  4 root    root    4.0K May 10 16:19 AccountsService
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:00 alsa
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:20 alternatives
                  4.0K drwxr-xr-x.  3 root    root    4.0K Jun 10 13:17 bluetooth
                  4.0K drwxr-xr-x.  2 root    root    4.0K May 28 11:16 boltd
                  4.0K drwxr-xr-x.  2 chrony  chrony  4.0K Jul 27 13:03 chrony
                  4.0K drwxr-xr-x.  3 root    root    4.0K Apr 25 02:34 color
                  4.0K drwxr-xr-x.  4 colord  colord  4.0K Jun  1 11:46 colord
                  4.0K drwx------.  2 apache  apache  4.0K Jul 20 06:30 dav
                  4.0K drwxr-xr-x.  2 root    root    4.0K Apr 30 14:01 dbus
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 14 14:30 dhclient
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun 17 12:27 dkms
                  4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 09:20 dnf
                  4.0K drwxr-xr-x.  2 root    dnsmasq 4.0K Jul  2 14:24 dnsmasq
                  4.0K drwxr-xr-x.  6 root    root    4.0K Jul 27 09:09 dpkg
                  4.0K drwxr-xr-x.  3 root    root    4.0K Jul 10 15:34 flatpak
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun 15 12:28 fprint
                  4.0K drwxr-xr-x.  5 root    root    4.0K Jun  7 09:04 fwupd
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun 26 13:31 fwupdate
                  4.0K drwxr-xr-x.  2 root    root    4.0K Feb  7 04:41 games
                  4.0K drwxrwx--T.  6 gdm     gdm     4.0K Jul 27 08:39 gdm
                  4.0K drwxr-xr-x.  3 geoclue geoclue 4.0K Jun  7 16:39 geoclue
                  4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 08:39 gssproxy
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun 12 01:53 hp
                  4.0K drwx------.  2 apache  apache  4.0K Jul 20 06:30 httpd
                  4.0K drwxr-xr-x.  2 root    root    4.0K Apr 25 08:06 hyperv
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 18 07:28 initramfs
                  4.0K drwxr-xr-x.  8 root    root    4.0K Apr 25 02:34 iscsi
                  4.0K drwxr-xr-x. 12 root    root    4.0K Jul 17 10:39 libvirt
                  4.0K drwxr-xr-x.  2 root    root    4.0K Feb  8 05:01 lldpad
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:37 logrotate
                  4.0K drwx------.  2 root    root    4.0K Jun  1 11:46 machines
                  4.0K drwxr-xr-x.  2 root    root    4.0K Feb  7 04:41 misc
                  4.0K drwxr-x---.  2 root    slocate 4.0K Jul 27 08:25 mlocate
                  4.0K drwxr-xr-x.  4 root    root    4.0K May 21 08:35 net-snmp
                  4.0K drwx------.  2 root    root    4.0K Jul 27 08:40 NetworkManager
                  4.0K drwxr-xr-x.  5 root    root    4.0K Jul 18 13:05 nfs
                  4.0K drwxrwx---.  2 openvpn openvpn 4.0K Apr 26 11:08 openvpn
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun  1 11:44 os-prober
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:44 PackageKit
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun  7 14:20 plymouth
                  4.0K drwxr-x---.  3 root    polkitd 4.0K Apr 25 02:34 polkit-1
                  4.0K drwxr-xr-x.  3 root    root    4.0K Apr 25 02:34 private
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 08:39 rpm
                  4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 09:20 rpm-state
                  4.0K drwxr-xr-x.  5 root    root    4.0K Jul 24 04:10 samba
                  4.0K drwxr-xr-x.  5 root    root    4.0K Jun 26 16:22 selinux
                  4.0K drwxr-xr-x.  2 root    root    4.0K Feb  9 17:50 sheepdog
                  4.0K drwxr-xr-x. 10 root    root    4.0K Jun 25 04:02 sss
                  4.0K drwxr-xr-x.  4 root    root    4.0K May 25 07:04 stateless
                  4.0K drwxr-xr-x.  7 root    root    4.0K Jul 18 07:39 systemd
                  4.0K drwx------.  2 tss     tss     4.0K Feb  9 20:49 tpm
                  4.0K drwx------.  2 root    root    4.0K Feb  8 09:54 udisks2
                  4.0K drwxr-xr-x.  2 unbound unbound 4.0K Jul 27 08:25 unbound
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 10:20 upower
                  4.0K drwxr-xr-x.  2 root    root    4.0K Jun  1 13:46 xkb
                  4.0K drwxr-xr-x.  5 root    root    4.0K Jul 27 09:12 yum
                  [user@PC lib]#
                  ObsolesceO 1 Reply Last reply Reply Quote 0
                  • IRJI
                    IRJ @stacksofplates
                    last edited by

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

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

                    [user@PC lib]# du -xsh *
                    16K	abrt
                    24K	AccountsService
                    20K	alsa
                    108K	alternatives
                    36K	bluetooth
                    4.0K	boltd
                    8.0K	chrony
                    8.0K	color
                    56K	colord
                    4.0K	dav
                    4.0K	dbus
                    4.0K	dhclient
                    8.0K	dkms
                    26M	dnf
                    4.0K	dnsmasq
                    20K	dpkg
                    48K	flatpak
                    4.0K	fprint
                    100K	fwupd
                    4.0K	fwupdate
                    4.0K	games
                    540K	gdm
                    8.0K	geoclue
                    12K	gssproxy
                    4.0K	hp
                    4.0K	httpd
                    4.0K	hyperv
                    4.0K	initramfs
                    28K	iscsi
                    33G	libvirt
                    4.0K	lldpad
                    8.0K	logrotate
                    4.0K	machines
                    4.0K	misc
                    13M	mlocate
                    12K	net-snmp
                    100K	NetworkManager
                    20K	nfs
                    4.0K	openvpn
                    4.0K	os-prober
                    368K	PackageKit
                    8.0K	plymouth
                    28K	polkit-1
                    8.0K	private
                    158M	rpm
                    12K	rpm-state
                    16K	samba
                    28M	selinux
                    4.0K	sheepdog
                    44K	sss
                    12K	stateless
                    198M	systemd
                    4.0K	tpm
                    4.0K	udisks2
                    8.0K	unbound
                    188K	upower
                    8.0K	xkb
                    204K	yum
                    1 Reply Last reply Reply Quote 0
                    • IRJI
                      IRJ
                      last edited by

                      Maybe it is my Windows virtual machine!

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

                        [user@PC lib]# cd libvirt/
                        [user@PC libvirt]# ls
                        boot  dnsmasq  filesystems  images  libxl  lxc  network  qemu  uml  xen
                        [user@PC libvirt]# du -xsh *
                        4.0K	boot
                        16K	dnsmasq
                        4.0K	filesystems
                        33G	images
                        4.0K	libxl
                        4.0K	lxc
                        4.0K	network
                        52K	qemu
                        4.0K	uml
                        4.0K	xen
                        [user@PC]# cd images
                        [user@PC images]# ls
                        Lubuntu.qcow2  win10.qcow2
                        [root@AL105478 images]# du -xsh *
                        5.0G	Lubuntu.qcow2
                        28G	win10.qcow2
                        [user@PC images]#
                        1 Reply Last reply Reply Quote 0
                        • IRJI
                          IRJ @scottalanmiller
                          last edited by

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

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

                          In the end, it's always windows

                          https://memegenerator.net/img/images/600x600/17327667/dying-laughing.jpg

                          1 Reply Last reply Reply Quote 1
                          • ObsolesceO
                            Obsolesce @IRJ
                            last edited by

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

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

                            ls -lash /var/lib

                            [user@PC lib]# du -xsh /var/lib*
                            34G	/var/lib
                            [user@PC lib]# ls -lash /var/lib
                            total 240K
                            4.0K drwxr-xr-x. 60 root    root    4.0K Jul 27 09:18 .
                            4.0K drwxr-xr-x. 23 root    root    4.0K Jun  5 09:25 ..
                            4.0K drwxr-xr-x.  2 root    root    4.0K May 31 05:44 abrt
                            4.0K drwxr-xr-x.  4 root    root    4.0K May 10 16:19 AccountsService
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:00 alsa
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:20 alternatives
                            4.0K drwxr-xr-x.  3 root    root    4.0K Jun 10 13:17 bluetooth
                            4.0K drwxr-xr-x.  2 root    root    4.0K May 28 11:16 boltd
                            4.0K drwxr-xr-x.  2 chrony  chrony  4.0K Jul 27 13:03 chrony
                            4.0K drwxr-xr-x.  3 root    root    4.0K Apr 25 02:34 color
                            4.0K drwxr-xr-x.  4 colord  colord  4.0K Jun  1 11:46 colord
                            4.0K drwx------.  2 apache  apache  4.0K Jul 20 06:30 dav
                            4.0K drwxr-xr-x.  2 root    root    4.0K Apr 30 14:01 dbus
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 14 14:30 dhclient
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun 17 12:27 dkms
                            4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 09:20 dnf
                            4.0K drwxr-xr-x.  2 root    dnsmasq 4.0K Jul  2 14:24 dnsmasq
                            4.0K drwxr-xr-x.  6 root    root    4.0K Jul 27 09:09 dpkg
                            4.0K drwxr-xr-x.  3 root    root    4.0K Jul 10 15:34 flatpak
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun 15 12:28 fprint
                            4.0K drwxr-xr-x.  5 root    root    4.0K Jun  7 09:04 fwupd
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun 26 13:31 fwupdate
                            4.0K drwxr-xr-x.  2 root    root    4.0K Feb  7 04:41 games
                            4.0K drwxrwx--T.  6 gdm     gdm     4.0K Jul 27 08:39 gdm
                            4.0K drwxr-xr-x.  3 geoclue geoclue 4.0K Jun  7 16:39 geoclue
                            4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 08:39 gssproxy
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun 12 01:53 hp
                            4.0K drwx------.  2 apache  apache  4.0K Jul 20 06:30 httpd
                            4.0K drwxr-xr-x.  2 root    root    4.0K Apr 25 08:06 hyperv
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 18 07:28 initramfs
                            4.0K drwxr-xr-x.  8 root    root    4.0K Apr 25 02:34 iscsi
                            4.0K drwxr-xr-x. 12 root    root    4.0K Jul 17 10:39 libvirt
                            4.0K drwxr-xr-x.  2 root    root    4.0K Feb  8 05:01 lldpad
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:37 logrotate
                            4.0K drwx------.  2 root    root    4.0K Jun  1 11:46 machines
                            4.0K drwxr-xr-x.  2 root    root    4.0K Feb  7 04:41 misc
                            4.0K drwxr-x---.  2 root    slocate 4.0K Jul 27 08:25 mlocate
                            4.0K drwxr-xr-x.  4 root    root    4.0K May 21 08:35 net-snmp
                            4.0K drwx------.  2 root    root    4.0K Jul 27 08:40 NetworkManager
                            4.0K drwxr-xr-x.  5 root    root    4.0K Jul 18 13:05 nfs
                            4.0K drwxrwx---.  2 openvpn openvpn 4.0K Apr 26 11:08 openvpn
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun  1 11:44 os-prober
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 09:44 PackageKit
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun  7 14:20 plymouth
                            4.0K drwxr-x---.  3 root    polkitd 4.0K Apr 25 02:34 polkit-1
                            4.0K drwxr-xr-x.  3 root    root    4.0K Apr 25 02:34 private
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 08:39 rpm
                            4.0K drwxr-xr-x.  4 root    root    4.0K Jul 27 09:20 rpm-state
                            4.0K drwxr-xr-x.  5 root    root    4.0K Jul 24 04:10 samba
                            4.0K drwxr-xr-x.  5 root    root    4.0K Jun 26 16:22 selinux
                            4.0K drwxr-xr-x.  2 root    root    4.0K Feb  9 17:50 sheepdog
                            4.0K drwxr-xr-x. 10 root    root    4.0K Jun 25 04:02 sss
                            4.0K drwxr-xr-x.  4 root    root    4.0K May 25 07:04 stateless
                            4.0K drwxr-xr-x.  7 root    root    4.0K Jul 18 07:39 systemd
                            4.0K drwx------.  2 tss     tss     4.0K Feb  9 20:49 tpm
                            4.0K drwx------.  2 root    root    4.0K Feb  8 09:54 udisks2
                            4.0K drwxr-xr-x.  2 unbound unbound 4.0K Jul 27 08:25 unbound
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jul 27 10:20 upower
                            4.0K drwxr-xr-x.  2 root    root    4.0K Jun  1 13:46 xkb
                            4.0K drwxr-xr-x.  5 root    root    4.0K Jul 27 09:12 yum
                            [user@PC lib]#
                            

                            Forgot the trailing / in du -xsh /var/lib/*.

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

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

                              Maybe it is my Windows virtual machine!

                              I always fix my KVM to use /home/virtualmachines for the VMs. 🙂

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

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

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

                                Maybe it is my Windows virtual machine!

                                I always fix my KVM to use /home/virtualmachines for the VMs. 🙂

                                I decided to delete it. I am able to RDP into Windows if I need it anyway. My total disk size is only 128GB. So I dont really have room for a 30GB VM anyway.

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