2017-07-25 5:57 GMT-03:00 Michael Hamilton
On Mon, 24 Jul 2017, Carlos E. R. wrote:
On 2017-07-23 15:51, Richard Brown wrote:
On 23 July 2017 at 15:45, Carlos E. R.
wrote: As on my computer the Leap partition 42.1 was broken, I want to clone Leap 42.3 from the other disk. On my pc I have installed Leap 42.2, so no hard disk needs to be mounted, both the source and the destination to clone Leap 42.3.
¿Which is the better way?
There is no good way to clone a btrfs root partition. Better install again.
Carlos, please don't be so inaccurate with your statements when someone is legitimately asking for help
To my knowledge, there is no way to clone a btrfs filesystem. You have to format and manually create the volumes and subvolumes, and there is no listing of which they are on each openSUSE release. The question has been asked several times, and none has answered it adequately.
My answer, to my knowledge, is perfectly accurate. It is not the first time I have made the same answer and none has yet proposed a better method during the years.
Juan, you can use btrfs send and receive to clone a system to another disk.
https://www.suse.com/documentation/sles-12/stor_admin/data/sec_filesystems_m...
I tryed this, but is possible I do'nt make a step, and the procces failed.
This does not explain how to clone a btrfs filesystem from scratch. The word "clone" does not even exist in the entire page. It only explains how to copy the files and keep them in sync.
I started down the road to cloning a btrfs root using btrfs utilities, and in the end the journey convinced me not to use btrfs (and I don't give up easily). In case it helps, I have written up notes on the structure of an openSUSE btrfs root volume and a bit about recreating a root volume:
https://forums.opensuse.org/showthread.php/521277-LEAP-42-2-btrfs-root-files...
Very interesting an useful the link. This is a page to save!
As well as the first post, there is a second post further down the thread concerning preserving copy-on-write attributes.
In this case I suspect using a non-btrfs partition cloning utility might be the easiest approach. --
I tryed partclone, and it do'nt generated the FS image file. Tryed later with fsarchiver, it worked fine, but restoring the image of the FS, do'nt created all the subvolumens. Because I replaced the old disk with seven years of use, with a new disk, the next step is with "dd". I know dd can be destructive to the partition table, and I experienced it trying to restore a MBR with dd (emulating the "fdisk /mbr" of DOS), but it destroyed the partition table. Anyway, the hard drive was damaged and it was replaced it in warranty, and is where I installed Leap 42.3, with all the problems which I explained on my first email. At this point, in all the time I lost trying to clone the disk, I could have installed Leap 42.2 and upgraded via the internet with the Leap 42.3 beta DVD damaged, but what I have gained is experience, and to better know what btrfs is and the cloning tools . It would be good if Opensuse included in the yast a cloning and backup tool. Regards, Juan -- USA LINUX OPENSUSE QUE ES SOFTWARE LIBRE, NO NECESITAS PIRATEAR NADA Y NI TE VAS A PREOCUPAR MAS POR LOS VIRUS Y SPYWARES: http://www.opensuse.org/es/ Puedes visitar mi blog en: http://jerbes.blogspot.com.ar/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org