On Mon, 2015-06-01 at 13:25 -0400, Neal Becker wrote:
> [ nbecker@nbecker2~]$ sudo btrfs subvolume create /home2
> Create subvolume '//home2'
> [ nbecker@nbecker2~]$ sudo btrfs subvolume list /
> ID 257 gen 66376 top level 5 path root
> ID 316 gen 66376 top level 257 path home2
> 
> This created home2 under root.  How do I create home2 with top level 
> as top 
> level 5, at the same level as root?
> 
> IOW:
> 
> ID 257 gen 66376 top level 5 path root
> ID 316 gen 66376 top level 5 path home2

To do this, you have to mount the top level of the btrfs filesystem 
somewhere. For example:

mount -o subvolid=5 /dev/sda2 /mnt/btrfs

Then you can create your home directory under the top level by doing

btrfs subvolume create /mnt/btrfs/home2


-- 
Calvin Walton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to