On Sun, Nov 30, 2014 at 03:57:06PM +0530, Shriramana Sharma wrote:
> On Sun, Nov 30, 2014 at 9:51 AM, Marc MERLIN <marc@xxxxxxxxxxx> wrote:
> >
> >> So the Ubuntu Wiki BtrFS entry advises against using subvol
> >> set-default because it boots its kernel using root=subvol=@ and home
> >> as subvol=@home, and these two subvols are only present under the
> >> subvol with ID 5. But isn't it just possible to move i.e. reparent a
> >> subvol so I can move these two under another subvol and have that as
> >> default?
> >
> > Make a new subvolume called /root and just mount subvol=root
>
> Sorry if my question wasn't clear: I wanted to know how to move a
> subvol to appear under another subvol other than its original parent.
> Turns out that sudo mv @ @home target/ is quite sufficient. If so why
> would the Ubuntu wiki require that set-default not be used? Just @
> @home need to be moved to the new place, no?
I've never done that. If I had to move them, I'd just change the
mountpoint.
> > Note that you can't mount subvols recursively in one mount AFAIK.
>
> I'm not sure what you mean. I have a few subvols in my external HDD
> which is entirely formatted as BtrFS and if I just mount the external
> HDD /dev/sdc1 I am able to access all the subvols' contents as well.
Yes, if you mount the root, it works of course.
If you mount a subvol, you cannot have it automatically have it mount
other subvols.
Subvols don't really know or care where they are mounted compared to one
another, and who is under whom. It's just mount setup.
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
--
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