[SOLVED] Ubuntu disk space usage after upgrade from 20.04 to 22.04
Hello, everyone. Recently I finally decided to update my system, and right after the update ran into a problem: before update baobab showed ~22 GB avaliable space, and after the update it went down to around 8.
a lot of other stackoverflow posts, all having similar answers, that didn't help me
I tried some methods to locate what consumes all the space, but couldn't figure it out.
Also, the problem seems to be getting worse (right now baobab shows only ~5GB avaliable space).
Can you help me find the source of the problem (and ideally also help me solve it :) )?
I was finally able to find the issue. Thanks to @slappy@lemmy.blahaj.zone 's question regarding my filesystem type, I decided to look into it.
I use btrfs, and this command showed me, that I have a lot of snapshots made by apt.
$ sudo btrfs subvolume list -s /
...
ID 318 gen 2617038 cgen 2566262 top level 5 otime 2024-02-13 06:59:10 path @apt-snapshot-release-upgrade-jammy-2024-02-13_06:59:10
It was probably possible to determine how much space each of them was occupying, but I decided to simply delete them all and be done with the issue. So I installed apt-btrfs-snapshot and run delete-older-than 0d.
As a result, I now have 29 Gb and no backups, which is fine with me.