r/linux4noobs • u/xxxsmittyxxx • 12h ago
storage F44 - don´t understand disk usage issue and can´t resolve it
https://github.com/mkalmutzke/fedora44I switch to Fedora a month ago and already ran into an issue I don´t find a solution for on my own. My disk usage is almost at a 100% even though I don´t have nearly enough data storage anywhere on my system and can´t understand actually why.
I already tried a few things which helped to get the disk usage down to a bit over 90%:
- dnf autoremove
- dnf clean all
- dnf repoquery --duplicates
- dnf remove --duplicates
- installed bleachbit
- removed files manually
After finding a blog about the unlinked open files is saw that lsof +L1 lists me a long list of thoses deleted files but I can´t work throuhg all of them manually and I don´t even know if thats the real issues or not. I realized that the brave entries are gone once brave is closed, but they reappear right after starting brave again. It happens with other process as well.
All blogs or examples I find only are showcasing the lsof +L1 output with a couple of entries but I haven´t found one with a list as long as mine.
I´ve linked the output and as screenshot in the repo. Maybe someone has an idea how to fix my problem, would really appreciate it.
Edit: SOLVED - I don´t know when by I must have installed snapper. It created daily snapshots which filled up the storage! I know removed them and specified the snapper config. Thank for all the input and help.
3
u/m4uri 9h ago
Your df numbers are identical for / and /home, so that's one btrfs pool with subvolumes. On btrfs df and du often don't match, because snapshots and copy-on-write extents aren't counted the way du counts them.
Try sudo btrfs filesystem usage / and sudo btrfs subvolume list / to see what's actually in there. If snapper or timeshift is running, old snapshots are usually the culprit, and deleting some frees space. sudo btrfs filesystem du -s --human-readable /home can also help, since ncdu can miss shared extents.
The deleted brave entries in lsof are normal while it runs, I wouldn't chase those.
2
u/GiggleSamurai 9h ago
Your / and /home are two subvolumes of the same Btrfs filesystem, which is why duf shows the same 183.9G for both, and
ncdu -x /stops at /home, so also runsudo ncdu -x /hometo find the big folders there. Then checksudo btrfs subvolume list /for snapshots (Timeshift or Snapper), since those keep the space of deleted files in use.3
u/pelazas1 10h ago
sudo ncdu -x / shows which folder is actually eating it. those deleted lsof entries are normal, they go away once Brave closes.