On Tue, Apr 7, 2015 at 4:58 AM, arnaud gaboury <arnaud.gaboury@xxxxxxxxx> wrote: > On Tue, Apr 7, 2015 at 11:57 AM, arnaud gaboury > <arnaud.gaboury@xxxxxxxxx> wrote: >> >> I plan to install my OS on a btrfs partition, with some subvolumes. >> Once the partition has been btrfs formated, I mounted it somewhere, cd >> and then run <btrfs subvolume create>. >> >> I did these two subvolumes for now: >> # btrfs subvolume list . >> ID 256 gen 6 top level 5 path var >> ID 257 gen 7 top level 5 path home >> >> Now I am wondering if I need to create the root filesystem partition >> (/)? If yes, is this correct: >> # btrfs subvolume create root > > > After more reading, it seems to me creating a top root subvolume is > the right thing to do: > # btrfs subvolume create root > # btrfs subvolume create root/var > # btrfs subvolume create root/home > > Am I right? It will work. It's not a matter of right or wrong though. If you intend to snapshot or rollback, I think it's easier to put all subvolumes at the top level, and then use fstab with the subvol= or subvolid= mount option to assemble them in the locations you want. That way it's easier to keep all the snapshots in the top level, and selectively do rollbacks. If you nest the subvolumes, it gets tricky. But if you don't plan to do much snapshotting or rollbacks, it's fine to nest. -- Chris Murphy -- 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
