Show mounted btrfs subvolumes

btrfs

Is there a command to show which btrfs subvolumes are mounted on each mountpoint?

Alternatively, is there somewhere (e.g. in the /proc or /sys trees) where the information can be read?

The output from the df command simply shows the filesystem's root device and /etc/mtab (aka /proc/mounts) doesn't contain the subvol=... option.

Best Answer

findmnt -nt btrfs, the source subvolume is in [...], the mountpoint is the first column. Alternatively, you could look into the file /proc/self/mountinfo yourself.

Related Question