Re: howto create subvolume at top level?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <calvin.walton@xxxxxxxxxx>
--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux