39
submitted 2 days ago* (last edited 2 days ago) by flork@lemy.lol to c/linux@lemmy.ml

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.

you are viewing a single comment's thread
view the rest of the comments
[-] Cyber@feddit.uk 6 points 2 days ago

du -hs * won't find "hidden" (.) files and folders, you'll need a slightly sifferent regx (which I will leave as an exercise for you / I don't have that info here)

And also both du and df show different results depending on the underlying filesystem, ie btrfs (and maybe ZFS?) won't show how much deduplication is happening.

Also, you might be looking at sparse files too, and from memory, you'll need another option for du or df to report those correctly.

[-] flork@lemy.lol 3 points 2 days ago

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 what's safe to delete but I'm getting somewhere.

[-] Cyber@feddit.uk 3 points 2 days ago

Nice. Glad you're on to something.

I can't help you with docker files as I don't use it, but, there's usually a way to find out who / what owns a file, so I hope docker utils can tell you if it's safe to delete

this post was submitted on 30 Sep 2025
39 points (100.0% liked)

Linux

58677 readers
297 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS