My OS storage is full. I'm a noob so please help.
My games are on a seperate 500Gb drive. I had kept my OS separate on a 64Gb drive. Which now shows less than 1Gb of free space as a result i have dificulty in installing flatpak or updates. During installation i remember that i did not touch the drives section and kept it on default. Chatgpt says to sym link the home folder and move to another drive(is it safe, will i lose my games data?) What should i do, i'm a beginner so I don't know much about linux. Help will be appreciated.
df -h
Filesystem Size Used Avail Use% Mounted on
composefs 32M 32M 0 100% /
/dev/sda3 63G 59G 1.7G 98% /etc
devtmpfs 9.7G 0 9.7G 0% /dev
tmpfs 9.8G 88M 9.7G 1% /dev/shm
efivarfs 56K 17K 34K 34% /sys/firmware/efi/efivars
tmpfs 4.0G 1.7M 4.0G 1% /run
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 9.7G 70M 9.6G 1% /tmp
/dev/sda3 63G 59G 1.7G 98% /var
/dev/sda2 974M 487M 420M 54% /boot
/dev/sda3 63G 59G 1.7G 98% /var/home
/dev/sdb1 500G 316G 184G 64% /var/mnt/games
/dev/sda1 599M 13M 587M 3% /boot/efi
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
tmpfs 1.6G 124K 1.6G 1% /run/user/1000
sudo du -h --max-depth=1 /var/home | sort -h
236M /var/home/linuxbrew
39G /var/home
39G /var/home/bazzite
30 Replies
First easy thing to try would be running
ujust clean-system in the terminal to see if you can free up some space that way==> This operation has freed approximately 39.9MB of disk space.
it's still almost full. Should Linux/bazzite take that much space? And i don't have anything major installed and all my games are on a seperate drive. df -h
Filesystem Size Used Avail Use% Mounted on
composefs 32M 32M 0 100% /
/dev/sda3 63G 56G 5.0G 92% /etc
devtmpfs 9.7G 0 9.7G 0% /dev
tmpfs 9.8G 70M 9.7G 1% /dev/shm
efivarfs 56K 17K 34K 34% /sys/firmware/efi/efivars
tmpfs 4.0G 1.7M 4.0G 1% /run
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 9.6G 70M 9.5G 1% /tmp
/dev/sda3 63G 56G 5.0G 92% /var
/dev/sda2 974M 487M 420M 54% /boot
/dev/sda3 63G 56G 5.0G 92% /var/home
/dev/sdb1 500G 316G 184G 64% /var/mnt/games
/dev/sda1 599M 13M 587M 3% /boot/efi
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
tmpfs 1.6G 136K 1.6G 1% /run/user/1000
bazzite@bazzite:~$
open Warehouse app from your app drawer and see if you can clean any leftover data from flatpak

64 GB is frankly small for the entire OS (not including secondary/media drives), especially if you also use the folders in Home for storage
you can also try to remove unused files in ~/Downloads
i'll do that. i don't use home for storage. there is nothing in downloads.
i have an update. du -h --max-depth=1 ~/.steam/steam/steamapps | sort -h 0 /home/bazzite/.steam/steam/steamapps/downloading 0 /home/bazzite/.steam/steam/steamapps/sourcemods 0 /home/bazzite/.steam/steam/steamapps/temp 1.6M /home/bazzite/.steam/steam/steamapps/workshop 2.1G /home/bazzite/.steam/steam/steamapps/common 11G /home/bazzite/.steam/steam/steamapps/shadercache 13G /home/bazzite/.steam/steam/steamapps/compatdata 25G /home/bazzite/.steam/steam/steamapps
Steam is using almost 25Gb. its shaders and compatdata.
is there a way to make the other drive the default for that and not use my OS drive.
then you might want to remove the unused proton versions if you have them through this menu

done that. from disk analyzer. 30GB is used by steam. How can i move steam to my other 500Gb drive???
to me it seems like you have some games installed in .local, because as you can see above and here, in my case i barely have anything
you can try using steam storage settings to move some of them to your external drive

home/bazzite/.local/share is 34Gb. can i shift/move it without losing my game save data? I don't have any games installed in local. i moved the proton and made the other drive my default just now. I have added a few non-steam games to steam that i run via proton-ge but they are all stored on the other drive. nothing is on local. Also, Thanks for bearing with me.
if you installed those non-steam games using steam (by adding the exe file directly to steam for example) i think that's the culprit
steam is likely creating prefix folders/compatdata in .local/share/steam
what is the output of
du -h ~/.steam/steam/steamapps/compatdata/ --max-depth=1 | sort -h?yes i did.
automod is not letting me paste it, i send a screenshot.
here

not too much but you can definitely get some storage space back
2805730 is a proton thing, you want to keep that
the folders that have more than 7 numbers are likely prefixes of non-steam games you installed
they might have some of your save files, but to know which game save is stored in which folder, you have to manually look them up
ok. and going forward prefix/compadata will be automatically created in the new drive since i made that the default one?? also can i move these folders? or should i just make a backup, recreate/re-add the games and then copy them in the new folders?
you should use lutris to manage non-steam games
from lutris you can export shortcut to steam
use "Add locally installed game" option, choose wine runner, then you make a new folder in your external drive that will become the game's Wine prefix (one per game ideally)



and make sure wine version is GE-Proton (Latest) by default instead of wine-ge

okay. will they still work in the game mode? I'll check lutris out.
yes, just right click the game and select create steam shortcut

does this solve my os space problem or do i still need to optimize other things?
it depends on how you use bazzite, some flatpaks like browsers can grow and take up a lot of space
Thanks a lot amel, you've been a life saver.
my recommendation is to upgrade your storage or do storage cleaning once a month
i only use bazzite as an Htpc. it's a dedicated machine.
Alright. I thought seperate OS 64Gb and Games 500Gb was a good practice. I'll just have a single drive & partition if i ever clean install in the future.
it's good practice, but 64 is too small for OS nowadays 😂 128 is better, in my opinion
i have 1 TB OS & 2 TB games in my PC, and 128 GB OS and 512 GB games in my HTPC myself and everything is fine
also glad i could help a bit, have a great day
That's cool.
Thanks Mate, Have a great day.
If it's prefixes taking up a lot of space, btrfs deduplication might help some too
Does bazzite has a flatpak for that? Let me check what that.
There's a ujust for it. Don't remember for sure what it is, but if you enter
ujust --choose you'll find it in the listAlright, I'll check it out. Thanks