I’m running Tumbleweed, which was installed with the filesystem defaults, so I have a 40GB BTRFS root partition. That partition has now only 1GB of free space, so I can’t do a system update
In the past when I’ve had space problems on the root partition, it’s been because of accumulated snapshots, so I ran snapper:
laura:/home/laura # snapper list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+------+------+---------+-------------+---------
0 | single | | | root | | current |
However, listing /.snapshots directly gives:
laura:/home/laura # ls -la /.snapshots
total 20
drwxr-x--- 1 root root 52 Dec 29 13:57 **.**
drwxr-xr-x 1 root root 512 Oct 5 2018 **..**
drwxr-xr-x 1 root root 16 Nov 19 11:08 **2**
drwxr-xr-x 1 root root 38 Mar 4 2016 **55**
drwxr-xr-x 1 root root 38 Mar 4 2016 **56**
drwxr-xr-x 1 root root 52 Jun 14 2017 **70**
drwxr-xr-x 1 root root 52 Jun 14 2017 **73**
-rw-r----- 1 root root 184 Dec 29 13:57 grub-snapshot.cfg
And looking at the disk usage gives:
laura:/home/laura # btrfs filesystem du -s /.snapshots/*
Total Exclusive Set shared Filename
28.30GiB 5.92GiB 22.38GiB /.snapshots/2
0.00B 0.00B 0.00B /.snapshots/55
0.00B 0.00B 0.00B /.snapshots/56
4.83MiB 4.83MiB 0.00B /.snapshots/70
0.00B 0.00B 0.00B /.snapshots/73
0.00B 0.00B 0.00B /.snapshots/grub-snapshot.cfg
which leads me to believe that the phantom snapshot 2 might be the cause of my problems
I can’t use snapper to delete any of the listed snapshots, e.g.
laura:/home/laura # snapper delete 2
Snapshot '2' not found.
But when new snapshots are created, the first is numbered ‘1’ and the second is numbered ‘3’, so it recognises that ‘2’ is there
How do I get rid of the hidden snapshots? Can I just manually delete the subdirectories from /.snapshots? Can I check that the 28.3GB isn’t live data? How do I avoid getting in this situation again?
Any help greatly appreciated
TIA
Laura