Mount Btrfs snapshot or overlay lowerdir on different partition map
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to use the root directory as the base of a couple of containers which I wanted to keep in my /home
.
But the problem is, I chose Guided Partitioning with the Separate /home
partition option on the Debian installer, then formatted both of the partitions to Btrfs.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 28G 0 part /
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 11G 0 part [SWAP]
└─sda6 8:6 0 892.6G 0 part /home
My root and /home
aren't subvol
s in the same partition, but separate Btrfs partitions.
Now, I tried to snapshot root into my /home
and of course it didn't work as I Googled around and figured out why.
$ sudo btrfs subvolume snapshot / Downloads/test
Create a snapshot of '/' in 'Downloads/test'
ERROR: cannot snapshot '/': Invalid cross-device link
I also tried to use overlay
to get a virtual copy of the root, but that didn't work out so well, either:
$ sudo mount -t overlay -o lowerdir=/ overlay Downloads/test
mount: /home/ontoki/Downloads/test: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
How do I mount btrfs
volumes across different partitions, and is it possible to make merged directory like overlay
allows?
partition btrfs overlayfs
add a comment |
up vote
0
down vote
favorite
I want to use the root directory as the base of a couple of containers which I wanted to keep in my /home
.
But the problem is, I chose Guided Partitioning with the Separate /home
partition option on the Debian installer, then formatted both of the partitions to Btrfs.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 28G 0 part /
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 11G 0 part [SWAP]
└─sda6 8:6 0 892.6G 0 part /home
My root and /home
aren't subvol
s in the same partition, but separate Btrfs partitions.
Now, I tried to snapshot root into my /home
and of course it didn't work as I Googled around and figured out why.
$ sudo btrfs subvolume snapshot / Downloads/test
Create a snapshot of '/' in 'Downloads/test'
ERROR: cannot snapshot '/': Invalid cross-device link
I also tried to use overlay
to get a virtual copy of the root, but that didn't work out so well, either:
$ sudo mount -t overlay -o lowerdir=/ overlay Downloads/test
mount: /home/ontoki/Downloads/test: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
How do I mount btrfs
volumes across different partitions, and is it possible to make merged directory like overlay
allows?
partition btrfs overlayfs
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
@Ipor, the last line. I want anoverlayfs
-like upperdir on top of RO root, in my/home
if possible.
– Oxwivi
yesterday
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to use the root directory as the base of a couple of containers which I wanted to keep in my /home
.
But the problem is, I chose Guided Partitioning with the Separate /home
partition option on the Debian installer, then formatted both of the partitions to Btrfs.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 28G 0 part /
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 11G 0 part [SWAP]
└─sda6 8:6 0 892.6G 0 part /home
My root and /home
aren't subvol
s in the same partition, but separate Btrfs partitions.
Now, I tried to snapshot root into my /home
and of course it didn't work as I Googled around and figured out why.
$ sudo btrfs subvolume snapshot / Downloads/test
Create a snapshot of '/' in 'Downloads/test'
ERROR: cannot snapshot '/': Invalid cross-device link
I also tried to use overlay
to get a virtual copy of the root, but that didn't work out so well, either:
$ sudo mount -t overlay -o lowerdir=/ overlay Downloads/test
mount: /home/ontoki/Downloads/test: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
How do I mount btrfs
volumes across different partitions, and is it possible to make merged directory like overlay
allows?
partition btrfs overlayfs
I want to use the root directory as the base of a couple of containers which I wanted to keep in my /home
.
But the problem is, I chose Guided Partitioning with the Separate /home
partition option on the Debian installer, then formatted both of the partitions to Btrfs.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 28G 0 part /
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 11G 0 part [SWAP]
└─sda6 8:6 0 892.6G 0 part /home
My root and /home
aren't subvol
s in the same partition, but separate Btrfs partitions.
Now, I tried to snapshot root into my /home
and of course it didn't work as I Googled around and figured out why.
$ sudo btrfs subvolume snapshot / Downloads/test
Create a snapshot of '/' in 'Downloads/test'
ERROR: cannot snapshot '/': Invalid cross-device link
I also tried to use overlay
to get a virtual copy of the root, but that didn't work out so well, either:
$ sudo mount -t overlay -o lowerdir=/ overlay Downloads/test
mount: /home/ontoki/Downloads/test: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
How do I mount btrfs
volumes across different partitions, and is it possible to make merged directory like overlay
allows?
partition btrfs overlayfs
partition btrfs overlayfs
edited yesterday
asked yesterday
Oxwivi
64821123
64821123
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
@Ipor, the last line. I want anoverlayfs
-like upperdir on top of RO root, in my/home
if possible.
– Oxwivi
yesterday
add a comment |
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
@Ipor, the last line. I want anoverlayfs
-like upperdir on top of RO root, in my/home
if possible.
– Oxwivi
yesterday
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
@Ipor, the last line. I want an
overlayfs
-like upperdir on top of RO root, in my /home
if possible.– Oxwivi
yesterday
@Ipor, the last line. I want an
overlayfs
-like upperdir on top of RO root, in my /home
if possible.– Oxwivi
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481748%2fmount-btrfs-snapshot-or-overlay-lowerdir-on-different-partition-map%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It seems to be an xyproblem. What's your goal?
– Ipor Sircer
yesterday
@Ipor, the last line. I want an
overlayfs
-like upperdir on top of RO root, in my/home
if possible.– Oxwivi
yesterday