Storage not Freeing After Deleting From Certain Sources?

Ok, this has been an issue with the pre-installed version of Steam on Bazzite from what I can tell, I tried finding a solution online, but so far I've come up dry might have missed something, but this issue is exclusive to the Bazzite Distro regardless this has just recently become a problem that I cannot ignore, so let me start. I had 191.4gb of storage free storage space on my 2tb SSD, and I decided to delete Marvel Rivals, which Steam said took up 61GB, and Filelight was saying it took up 59gb, so maybe shader compilation made up the mismatch IDK, regardless after deleting Marvel Rivals which was instant, consisted of clicking the uninstall button, and DONE, and through me off, I then went to check the storage location in
/run/user/1000/doc/1dc60405/ProtoPropski/.local/share/Steam/steamapps/common/
/run/user/1000/doc/1dc60405/ProtoPropski/.local/share/Steam/steamapps/common/
based on Filelight it wasn't there, Marvel Rivals from all intents, and purposes seemed deleted with no storage return to speak of like a magicians trick, I closed, and re-opened steam as I heard it could reserve that space, and only got 4gb back, but not the 59gb I expected. and I don't know where that space went to, the either I guess? IDK, but it's incredibly frustrating, and is the only thing making Bazzite a headache since I started using it Jan 7th, this has happened with every Steam install, and makes me terrified of what's happening here, and how long before I no longer have Space to work with.
26 Replies
termdisc
termdisc4w ago
just a heads up that any time you see /run/user/1000/doc/... that is a flatpak accessing an otherwise impermissible folder. you can't effect changes that way you'd need to grant folder permissions or manually go in through Dolphin/Files to delete it yourself
ProtoPropski
ProtoPropskiOP4w ago
So was Filelight reading from the wrong source then? to be upfront I DID NOT delete from Filelight, I know how many issues that would cause as appose to using Steam, so I deleted it from Steam's Storage Panal as would be standard practice on any OS/Distro, also it seems my Steam installs games to
/var/home/ProtoPropski/.local/share/Steam/steamapps/
/var/home/ProtoPropski/.local/share/Steam/steamapps/
based on using Steams Browse Folder option in the Storage Panel. Although Marvel Rivals wasn't there either? I just ran
lsof +L1 | grep deleted
lsof +L1 | grep deleted
, if this helps I'm sending the output of anything with Steam but I'll be real this is my first immutable Distro, so I'm kinda learning as I go along it's been great, but this is a hoop I've yet to handle.
HikariKnight
HikariKnight4w ago
give rpm-ostree status please
termdisc
termdisc4w ago
so what exactly are you using to determine free space? Steam? Dolphin? Filelight?
ProtoPropski
ProtoPropskiOP4w ago
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
Digest: sha256:3f6a0528cdf788834228e7b0e28a91d7b33041ff1a55169a03f761f7ba459674
Version: 41.20250131 (2025-01-31T05:19:51Z)
LayeredPackages: containerd.io coolercontrol dnf-plugins-core docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin gnome-terminal gparted grub-customizer hidapi kernel-devel libcurl-devel liquidctl openrazer-meta
python3-tkinter python3.10 python3.11 razergenie WoeUSB
LocalPackages: docker-desktop-4.37.1-178610.x86_64 unetbootin-702-1.fc34.x86_64

ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
Digest: sha256:3f6a0528cdf788834228e7b0e28a91d7b33041ff1a55169a03f761f7ba459674
Version: 41.20250131 (2025-01-31T05:19:51Z)
LayeredPackages: containerd.io coolercontrol dnf-plugins-core docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin gnome-terminal gparted grub-customizer hidapi kernel-devel libcurl-devel liquidctl openrazer-meta
python3-tkinter python3.10 python3.11 razergenie WoeUSB
LocalPackages: docker-desktop-4.37.1-178610.x86_64 unetbootin-702-1.fc34.x86_64
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
Digest: sha256:3f6a0528cdf788834228e7b0e28a91d7b33041ff1a55169a03f761f7ba459674
Version: 41.20250131 (2025-01-31T05:19:51Z)
LayeredPackages: containerd.io coolercontrol dnf-plugins-core docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin gnome-terminal gparted grub-customizer hidapi kernel-devel libcurl-devel liquidctl openrazer-meta
python3-tkinter python3.10 python3.11 razergenie WoeUSB
LocalPackages: docker-desktop-4.37.1-178610.x86_64 unetbootin-702-1.fc34.x86_64

ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
Digest: sha256:3f6a0528cdf788834228e7b0e28a91d7b33041ff1a55169a03f761f7ba459674
Version: 41.20250131 (2025-01-31T05:19:51Z)
LayeredPackages: containerd.io coolercontrol dnf-plugins-core docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin gnome-terminal gparted grub-customizer hidapi kernel-devel libcurl-devel liquidctl openrazer-meta
python3-tkinter python3.10 python3.11 razergenie WoeUSB
LocalPackages: docker-desktop-4.37.1-178610.x86_64 unetbootin-702-1.fc34.x86_64
termdisc
termdisc4w ago
because out of those 3, Steam calculates space in a somewhat speedy manner by looking at the metadata files rather than used space on disk holy hell, that's a lot of layered packages
ProtoPropski
ProtoPropskiOP4w ago
All 3 to be sure
HikariKnight
HikariKnight4w ago
well i can tell its not related to what i would suspect it was which was the good old "snapper enabled itself" before we fixed it (in which case they would just need to update to fix it and clean up the space)
ProtoPropski
ProtoPropskiOP4w ago
Oof, well that's not good to hear from a maintainer, if you need any other info I'd be glad to comply if it helps either of us out. I've had a month with this thing, so I dunno what could have happened, but again I installed it Jan 7th if the timeline helps?
HikariKnight
HikariKnight4w ago
you can run sudo snapper list and double check though
ProtoPropski
ProtoPropskiOP4w ago
The config 'root' does not exist. Likely snapper is not configured.
See 'man snapper' for further instructions.
The config 'root' does not exist. Likely snapper is not configured.
See 'man snapper' for further instructions.
HikariKnight
HikariKnight4w ago
thats correct so not that people have to explicitly make a config to enable it now since it randomly silently enabled itself in the past and i cant replicate your issue as i just cleaned up about 250gb of games of my htpc yesterday same image sudo btrfs subvolume list /
ProtoPropski
ProtoPropskiOP4w ago
ID 256 gen 12770 top level 5 path var
ID 257 gen 12770 top level 5 path home
ID 258 gen 12770 top level 5 path root
ID 259 gen 10336 top level 257 path home/.snapshots
ID 261 gen 7373 top level 259 path home/.snapshots/2/snapshot
ID 256 gen 12770 top level 5 path var
ID 257 gen 12770 top level 5 path home
ID 258 gen 12770 top level 5 path root
ID 259 gen 10336 top level 257 path home/.snapshots
ID 261 gen 7373 top level 259 path home/.snapshots/2/snapshot
I'm checking if deleting snapshot 2 from Btrfs Assistant helps somehow...
HikariKnight
HikariKnight4w ago
oh
ProtoPropski
ProtoPropskiOP4w ago
Well after a
sudo systemctl reboot
sudo systemctl reboot
that seemed to clear almost 700 gb, but now I don't know if that's just cause it deleted the backup data, or if it removed any reserved storage related to the backup somehow
HikariKnight
HikariKnight4w ago
there is 1 snapshot
ProtoPropski
ProtoPropskiOP4w ago
Mhm I guess I forgot about it, but I'm a bit paranoid with Linux I made that snapshot could have been it tbh
HikariKnight
HikariKnight4w ago
think all you need to do without snapper configured is sudo btrfs subvolume delete /home/.snapshots/2/snapshot should say something like Delete subvolume 277 (no-commit): '/var/home/.test' then you do sudo rm -r /home/.snapshots/2 to cleanup the metadata
ProtoPropski
ProtoPropskiOP4w ago
Oh, is it ok if I did that all in Btrfs Assistant?
ProtoPropski
ProtoPropskiOP4w ago
No description
ProtoPropski
ProtoPropskiOP4w ago
I say that cause your cli commands seemed to not be able to find the folder anymore seeing as Btrfs assistant looks to have taken care of that
ProtoPropski@bazzite:~$ sudo btrfs subvolume delete /home/.snapshots/2/snapshot
[sudo] password for ProtoPropski:
ERROR: Could not statfs: No such file or directory
ProtoPropski@bazzite:~$ sudo rm -r /home/.snapshots/2
rm: cannot remove '/home/.snapshots/2': No such file or directory
ProtoPropski@bazzite:~$
ProtoPropski@bazzite:~$ sudo btrfs subvolume delete /home/.snapshots/2/snapshot
[sudo] password for ProtoPropski:
ERROR: Could not statfs: No such file or directory
ProtoPropski@bazzite:~$ sudo rm -r /home/.snapshots/2
rm: cannot remove '/home/.snapshots/2': No such file or directory
ProtoPropski@bazzite:~$
might be done then, if so thanks tbh I would have kept ignoring the snapshot if I hadn't talked with you
HikariKnight
HikariKnight4w ago
oh yeah then you already have it sorted you might have made a snapshot ages ago and forgot about it
ProtoPropski
ProtoPropskiOP4w ago
Yeah, tbh I have a tendency to do that out of paranoia playing with rolling release distro's like Arch is kinda stressful without timeshift/alternatives, I took that same mentality to a immutable distro, but does it really prevent you from fully deleting games? (confirmed it most certainly does) that's kinda insane... I'll have to look into a seperate SSD then for backups.
HikariKnight
HikariKnight4w ago
the problem is that the steamapps folder is not a subvolume so it gets included in the snapshot and we cant make a subvolume there until you login the first time, at which time steam has already made folders there
ProtoPropski
ProtoPropskiOP4w ago
What about a post install script that installs steam after making a steamapps subvolume, but tbh that's obvious enough I'm sure it came up, and there was an issue with Steam in regards to that. Either way, I'm fine as is the system seems stable enough in the month I've used it to trust the immutable nature as it's advertised I have my eyes on a 8tbh HDD for a persistent backup with another software solution, and as of today I've moved all my games to a new SSD not my OS SSD So tbh this has been a good kick in the pants for cleansing things up, and getting a more long term setup
HikariKnight
HikariKnight4w ago
Steam has to run on login for gamemode In 99% of cases you will not need snapper

Did you find this page helpful?