Skip to content

Add btdu somewhere in hello, to ease maintenance for people running btrfs, given that it is the only decent way to find out which file(s) in which snapshot are hogging space #138

@Wabuo

Description

@Wabuo

I think we should add btdu https://github.com/CyberShadow/btdu to hello probably in the tweaks section.
Given that, it is by far the best if not only option to conveniently analyze what is hogging space on the disk.

Obviously that would also mean we include btdu in the CachyOS repos.

It would also mean we need a little script that mounts and unmounts the btrfs root in the background for the user
something like:

# where could we get the right mount options? parce fstap?? as in what happens if the user changed away from CachyOS defaults.
# subvolid=5 will alway be the btrfs root no matter of how it was named
sudo mount --mkdir -o subvolid=5,defaults,noatime,compress=zstd,space_cache=v2,commit=120,ro  /dev/nvme0n1p2 /var/cache/btrfs_root_for_btdu

sudo btdu /var/cache/btrfs_root_for_btdu

sudo umount /var/cache/btrfs_root_for_btdu

Related to: https://discuss.cachyos.org/t/storage-space-does-not-become-empty/15529/15
And: https://gitlab.com/btrfs-assistant/btrfs-assistant/-/issues/128

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions