On Thu, Mar 19, 2015 at 12:16 PM, don fisher <hdf3@comcast.net> wrote:
First step, I got the subvolumes of the second file system mounted. Not as easy as I though it would be. I had to do it mounting the UUID of each subvolume, rather than the path. Single line from /etc/fstab looks like:
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/opt btrfs subvolid=UUID=3c46ec67-442b-a546-8396-0e34ce2cd493 0 0
Mount says it can only use paths relative to the root volume:-(
"root volume" in this context means the volume's top level subvolume: In this case it means the btrfs top level subvolume. So you specify it as an absolute path. Any starting / is ignored. For example from /etc/fstab UUID=<uuid> /boot/grub2/x86_64-efi btrfs subvol=boot/grub2/x86_64-efi 0 0 The actual subvolume is x86_64-efi, but when using the subvol= mount option you have to specify its full path, which is boot/grub2/x86_64-efi. If I were to relocate this in either a subvolume or directory called "backup" then subvol=backup/boot/grub2/x86_64-efi so note that in this case there's no distinction of directory and subvolume except the last item in the path must be a subvolume. Another way around this is to use subvolid= You can get the subvolid with # btrfs sub list <mountpoint> mountpoint is where the Btrfs volume in question is mounted. -- Chris Murphy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org