You are not logged in.
I have a root btrfs partition with 28.8 GB storage. Running
sudo ncdu --exclude={"/dev/*","/proc/*","/sys/*","/run/*","/mnt/*","/media/*","/lost+found","/home","/.snapshots"} /tells me that I my have about 16.5 GB data usage (home partition is seperate). But dolphin and the btrfs tools tell me I have only 1.5GB free space left.
So, I'm wondering, where are the missing 10GB?
It can't be snapshots, when I delete all of them, I end up with 2GB free space.
Any clues what uses up my space and how to fix it? It really sounds like a noobish question to me, but I can't figure it out.
Btrfs information:
[fabian@arch Scripts]$ sudo btrfs filesystem usage /
Overall:
Device size: 28.83GiB
Device allocated: 28.82GiB
Device unallocated: 1.00MiB
Device missing: 0.00B
Used: 26.97GiB
Free (estimated): 1.15GiB (min: 1.15GiB)
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 288.00MiB (used: 0.00B)
Data,single: Size:27.29GiB, Used:26.14GiB
/dev/sdb4 27.29GiB
Metadata,single: Size:1.50GiB, Used:847.23MiB
/dev/sdb4 1.50GiB
System,single: Size:32.00MiB, Used:16.00KiB
/dev/sdb4 32.00MiB
Unallocated:
/dev/sdb4 1.00MiBOffline
Did you partition with dd or a higher-level tool like fdisk?
root@archlinux: whoami && whyamihere
Offline
What's your partition layout?
Offline
I used highlevel tools, it was a combination of parted and fdisk.
Partition list:
Model: ATA SAMSUNG SSD 830 (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
6 17.4kB 1049kB 1031kB bios_grub
1 1049kB 48.9GB 48.9GB ext4 data
3 49.0GB 51.2GB 2156MB linux-swap(v1) swap
4 51.2GB 82.1GB 31.0GB btrfs root
5 82.1GB 128GB 45.9GB xfs homeI doubt it's an issue with partitioning though.
I tried reinstalling the root btrfs filesystem while using a live-cd, and now it's gotten a lot better. Now I have ~8GB free, like after first install. But it seems like it's somehow loosing space again, and deleting the snapshots doesn't always help.
Any clue what's causing this "decay"?
Offline
After a long time, I think I finally figured it out. Seems like the original btrfs subvolume is still there, just not available for snapper.
Tested it on a clean installation:
1) Create snapshots
2) Use "snapper rollback" to return to this snapshot (only effective after reboot)
3) Create a new file on the volume, then reboot
4) File is now not found in any snapshot, and inaccessible
5) Use "sudo btrfs subvolume set-default 0 /", reboot
6) File can be found again
Seems like an odd design, or maybe my configuration is simply wrong. After all, the files on the top volume can't be accessed, but still take space.
Probably shouldn't be like this, but can someone explain where I went wrong?
Offline