# btrfs sub list / ID 257 gen 1703 top level 5 path root ID 258 gen 1662 top level 5 path home ID 259 gen 1681 top level 5 path boot ID 262 gen 1629 top level 257 path var/lib/machines To mount machines, either subvol=root/var/lib/machines OR subvolid=262 Why root/var/lib/machines? Because var/lib/machines is created inside subvol 257, a.k.a. root, therefore the path relative to the top level 5 subvolume is root/var/lib/machines. It might be easier to figure this out for a while to use -a switch. # btrfs sub list -a /mnt/btraid0/ ID 257 gen 1705 top level 5 path <FS_TREE>/root ID 258 gen 1662 top level 5 path <FS_TREE>/home ID 259 gen 1681 top level 5 path <FS_TREE>/boot ID 262 gen 1705 top level 257 path root/var/lib/machines
The use of the IDs worked. I did not know where they came from, or if they would be repeatable across boots. So I assumed ID => UUID. My bad:-( My rot is mounted at /usr11. I tried:
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/srv btrfs subvol=usr11/srv 0 0
but /usr11/srv did not mount. I replaced the number and it did mount. Would like to use string like you suggested since they are more understandable. Do you see what I did wrong? Any thoughts on stability of the IDs across boots?
Thanks, Don -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
