Group btrfs subvolume mounts
Author: julian-klodeCreated Dec 10, 2020Updated May 16, 2026
So I have multiple subvolumes mounted of my BTRFS /, to exclude them from snapshots, as you can see below. I think it would be nice to somehow group them together a bit and not print duplicated information, but like just "..." or so, to improve readability. OTOH, I'm not sure, as the list of mount point seems ordered. But maybe it makes sense to group anyway - the /var and /srv mounts below would then be slightly indented below / for example.
$ duf -hide-fs squashfs
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 9 local devices │
├────────────────────────────┬────────┬────────┬────────┬───────────────────────────────┬───────┬──────────────────────┤
│ MOUNTED ON │ SIZE │ USED │ AVAIL │ USE% │ TYPE │ FILESYSTEM │
├────────────────────────────┼────────┼────────┼────────┼───────────────────────────────┼───────┼──────────────────────┤
│ / │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │
│ /boot │ 704.5M │ 229.2M │ 424.0M │ [######..............] 32.5% │ ext4 │ /dev/nvme0n1p2 │
│ /boot/efi │ 511.0M │ 21.1M │ 489.9M │ [....................] 4.1% │ vfat │ /dev/nvme0n1p1 │
│ /home │ 170.0G │ 159.3G │ 10.7G │ [##################..] 93.7% │ xfs │ /dev/ubuntu--vg/home │
│ /mnt │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │
│ /srv/lxd │ 30.0G │ 15.7G │ 13.5G │ [##########..........] 52.3% │ btrfs │ /dev/ubuntu--vg/lxd │
│ /var/cache/apt/archives │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │
│ /var/cache/squid-deb-proxy │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │
│ /var/log │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │maybe like this, but with nicer arrow.
$ duf -hide-fs squashfs
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 9 local devices │
├────────────────────────────┬────────┬────────┬────────┬───────────────────────────────┬───────┬──────────────────────┤
│ MOUNTED ON │ SIZE │ USED │ AVAIL │ USE% │ TYPE │ FILESYSTEM │
├────────────────────────────┼────────┼────────┼────────┼───────────────────────────────┼───────┼──────────────────────┤
│ / │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │
[...]
│ -> /var/cache/apt/archives │ ... │ ... │ ... │ ... │ .... │ ... │
[...]
│ /boot │ 704.5M │ 229.2M │ 424.0M │ [######..............] 32.5% │ ext4 │ /dev/nvme0n1p2 │
│ /boot/efi │ 511.0M │ 21.1M │ 489.9M │ [....................] 4.1% │ vfat │ /dev/nvme0n1p1 │
│ /home │ 170.0G │ 159.3G │ 10.7G │ [##################..] 93.7% │ xfs │ /dev/ubuntu--vg/home │
│ /mnt │ 31.0G │ 28.3G │ 2.2G │ [##################..] 91.3% │ btrfs │ /dev/ubuntu--vg/root │Source: muesli/duf