![](https://seccdn.libravatar.org/avatar/5c0fccd8620c98620fee578c45f5ef70.jpg?s=120&d=mm&r=g)
On 25/07/17 08:45 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2017-07-25 13:30, Juan Erbes wrote:
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.
Notice that you do not need to touch the partition table at all for your needs. You are to copy a single partition, not the entire disk. Say the the source is /dev/sda5 and the destination is /dev/sdc13. So you do:
dd if=/dev/sda5 of=/dev/sdc13 bs=16M
There is no danger at all of harming the partition table.
If you want to replace the MBR of a disk, you do:
dd if=mbr_backup of=/dev/sdX bs=440 count=1
and that will not touch the partition table.
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 .
:-D
It would be good if Opensuse included in the yast a cloning and backup tool.
You can use clonezilla... but still, btrfs is a problem.
- -- Cheers / Saludos,
Carlos E. R.
(from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iF4EAREIAAYFAll35jAACgkQja8UbcUWM1y3ugD9EFP8/ZDrqWpRRbvVv8uti15a O+ev4aR/qfGfDofjs/kA/RD/wErojRV6bkaLwX88HtRq/ozP+q17oU+W8pGLugtR =XeW7 -----END PGP SIGNATURE-----
There is partclone - File System Clone Utilities Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org