I noticed the root drive of my home server (Debian) is at 99% capacity, which was odd to be because I don’t store anything on the root ssd. sudo df -h confirms that 99% of my 256gb drive is full. But sudo du -sh * all added up, only comes to about 30gb.

This is a pc that only runs docker containers and one virtual machine for home assistant. And yes I have restarted, Any ideas as to how to find the missing 200+ gigabytes?

EDIT: sudo ncdu allowed me to find a 72gb [long string of characterless]-json.log file in /var/lib/docker/containers and many 1gb+ files in /var/lib/docker/overlay2. I’m not sure what to do with this information (or what’s safe to delete) but I’m getting somewhere.

  • lucas@startrek.website
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days ago

    Where are you running du -sh *? (I.e. what directory, are you definitely scanning the whole file system?) I’m sure it’s obvious, but can never hurt to check!

    What does du -sh / show? (Generally, the * glob pattern in the shell will not match hidden dot-files, so is it possible they are being excluded?)

  • cmnybo@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days ago

    Did du give any permission errors? It can’t count the size of directories that it doesn’t have permission to access.

    • Jediwan@lemy.lolOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      Actually running sudo ncdu allowed me to find a 72gb [long string of characterless]-json.log file in /var/lib/docker/containers and many 1gb+ files in /var/lib/docker/overlay2. I’m not sure what to do with this information (or what’s safe to delete) but I’m getting somewhere.

      • wildbus8979@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        13 days ago

        Isn’t that tool freaking nifty? I love ncdu. BTW the -x flag is useful to make sure you stay on the same file system (useful if you have network shares, extra disks, and to avoid digging stuff like /proc and /sys)

  • drhoopoe@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    Docker containers can eat a lot of space over time. When’s the last time you did a docker system prune? Be sure to read up on what it does before you try it.

    • Jediwan@lemy.lolOP
      link
      fedilink
      arrow-up
      1
      ·
      13 days ago

      Thanks that allowed me to clear up about 20GB! Also sudo ncdu allowed me to find a 72gb [long string of characterless]-json.log file and many 1gb+ files in /var/lib/docker/overlay2. I’m not sure what to do with this information or if it’s safe to delete but at least I’m getting somewhere.