mwilck / btrfs-clone

A tool for copying a btrfs file system with all its subvolumes to another btrfs file system
GNU General Public License v2.0
117 stars 17 forks source link

How to use btrfs-clone when root system is not btrfs? #3

Closed casper closed 6 years ago

casper commented 6 years ago

I'm on an ext4 system with a btrfs image mounted through loopback. How do I clone the image to another device? It seems btrfs-clone expects the root file system to be btrfs also(?)

I .e:

mount -o loop btrfs.img /mnt
mkfs.btrfs /dev/sdc
mount /dev/sdc /target
btrfs-clone /mnt /target  <- FAIL

Is this even possible? Seems like a basic thing, but new to btrfs and can't seem to figure it out.