this post was submitted on 08 Oct 2025
41 points (97.7% liked)
Linux
58903 readers
270 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
btdu
is an excellent tool for finding out what's taking up space in btrfsLegend! It found a second filesystem named "UNREACHABLE":
It looks like an exact duplicate of my main filesystem "/@rootfs", I'm guessing this is why my disk space filled up. Do you know how I'd go about removing the duplicate? (If it's safe to do so)
I'm not a btrfs expert but AFAIK high unreachable space usage is usually a result of fragmentation. You might want to defragment the filesystem and see if that helps.
I will note that btrfs makes estimations of used/available space very difficult by design, and you especially can not trust what standard UNIX tools like
df
anddu
tell you about btrfs volumes. Scripting arounddu
or usingncdu
will not help here in any way. You might want to read this kernel.org wiki article as well as the man pages for the btrfs tools (btrfs(8)
and particularlybtrfs-filesystem(8)
), which among other things provide versions ofdf
anddu
that actually work, or at least they do most of the time instead of never.Looks like some combination of defragging & balancing has done the trick! The space that was previously marked
UNREACHABLE
is nowUNUSED
, and my disk space is back to normal:Thanks for the wiki link, Btrfs is new to me and I've definitely got some learning to do
Strange, I've never seen that. Have you rebooted the system to make sure it has nothing to do with open files?
I did find one thread that seems related:
https://www.reddit.com/r/btrfs/comments/lip3dk/unreachable_data_on_btrfs_according_to_btdu/
There could be btrfs stuff I'm not aware of, but on a file system structure level, do you have a separate drive for booting and then another you added and mounted separately? Or did you install Linux over another install and changed partitions used? The reason I'm asking is you could have a whole drive of data under a folder and then later mount another partition or drive to that same folder. Linux will show you the mounted folder contents, but the original is not visible until you unmount your Mount point. The data is still there. So drive can be full, even though contents look smaller.
I can't say its that for sure, but it has tripped people up before.
But could be btrfs cleanup needs looking at.
Just one drive, it was a clean Linux install with no funky stuff going on. I'll have to look into Btrfs cleanup more, last time I did it the disk just filled up even more
I sometimes use btrf assistant, it's a gui helper for btrfs, shows some helpful hints, there's balancing, scrubbing, snapshot cleanup. I should learn more about it all, but it helped a ton with figuring out what's going on with all my space.
Yeah, I haven't dealt with that much since OpenSUSE has all the cleanup and maintenance scheduled.
Is your whole drive BTRFS even your /Home on same partition? The BTRFS subvolumes share a pool if setup as one, and filling up home subvolume also fills up your system subvolume, since its shared.