miscellaneous_tips:02_linux:mount_external_btrfs_file_system_with_all_subvolumes

Mounting an External BTRFS File System With All Subvolumes

If you have e.g. an external device formatted with a BTRFS file system with multible subvolumes, this command can be used to mount an the external file system and all its subvolumes under a specific mount point:

mount -o rw,relatime,space_cache,subvol=/ /dev/sdXY /mnt/tmp

where Y is the partition number of the BTRFS partition on device /dev/sdX, and /mnt/tmp is the directory below which the file system is mounted.


Once the file system has been mounted, the individual subvolumes can be found in the subdirectories below /mnt/tmp/@/.


Martin Burnicki martin.burnicki@burnicki.net, last updated 2024-04-13

  • miscellaneous_tips/02_linux/mount_external_btrfs_file_system_with_all_subvolumes.txt
  • Zuletzt geändert: 2024-04-13 08:45
  • von martin