[SOLVED] Drive space disappearing with BTRFS...
What I've figured out after further testing:
1 . If I add new files to the drive, the filesystem size increases and free space decreases proportionately. If I remove these same files, the inverse happens.
2 . If I delete any existing files from the file system, the file system shrinks but no space is freed up. So, everytime I delete any existing files, that space is simply lost. Because of this I am now down by 100s of GBs of drive space and I've no idea what's happening to it all.
Solution: In '/run.BtrfsAssistant' there were 3 folders labelled 'root_backup_' plus a bunch of numbers on the ends of the names which looks to represent time & date. Deleting all 3 of them freed up the space I was expecting. There was also another folder in this directory, simply called 'root'; Yeh, don't delete that one like me
(viewtopic.php?p=151830#p151830)
Original post:
I'm using Nobara (Fedora, basically) on a 1TB SSD with the BTRFS file system. Recently I decided to uninstall some games and found that afterwards there was no space freed up. I then deleted all of the BTRFS snapshots on the drive and while it did free up some space, it wasn't as much as it should've been - about half actually. So it seemed that more than 100GB of space just went missing somewhere (& likely more at other times) ![]()
I've stopped using BTRFS snapshots and am instead just using Rsync backups of the system files onto an external drive and this first full backup is about 27GB. So now there should be no BTRFS snapshots taking up room on the system drive & I've also used Bleachbit (including in root mode) to clean unneeded files.
Now when I use 'Disk Usage Analyser' to look this 1TB SSD (which it recognises as 998.5GB), it shows that the whole Nobara install (including user files) is taking up 650GB with the largest folder being the Home folder at 628GB. The contents & size of the home folder seem to make sense to me and if you add to it the 27GB for the system files, it comes to about 655GB which seems about right. So, free space should be somewhere close to 350GB. However, the reported free space is only 75GB! So what the hell has happened to the other 275GB? There's a FAT & an EXT4 partition on the drive also but they come to less than 2GB combined so it's not them. There's no unused space on the drive either as the Nobara partition is 999GB according to the GNOME Disks software.
I don't get it.. Any ideas!?
Edit: I have also tried scrub & balance, multiple times just to see if they'd help but they didn't.