this post was submitted on 08 Oct 2025
40 points (97.6% liked)
Linux
58885 readers
468 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I had the exact same problem on one of my virtual boxes. The problem baffled me for two years and I just added more space to the box a few times to fight it as I couldn't solve the issue. It wasn't the inodes, deleted but open files or anything common like that.
The problem was my mounts. I had occasionally failing mounts combined with crontabs that accessed and wrote data to those mounts. Do you know what happens when you accidentally wrote let's say 200gb data to /mnt/a and then later mount a drive over that mount point? It magically 'disappears' as you'd exclude that mount from the calculations.
Might be you don't have anything mounted and none of the above is useful to you. But this solved my issue and it's quite curious and silly. Just set up mount points to not be writeable and problem went away.
Interesting, this could be it? I haven't configured any mounts on this device yet, but when I tried one of the other suggestions from this thread and use
btdu
, I get this error:I'm fairly new to the workings of Btrfs so this is jibberish to me right now, but I'll look into it more
EDIT: Nevermind! I was just using the tool wrong. I needed to mount my btrfs "sub-volume" then do the scan against that:
sudo mkdir -p /mnt/btdu
sudo mount -o subvolid=5 /dev/sda1 /mnt/btdu
sudo ./btdu /mnt/btdu