
On Fri, 20 Oct 2023 23:15:49 +0200, "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2023-10-20 22:45, Robert Webb via openSUSE Users wrote:
On Fri, 20 Oct 2023 12:51:42 +0200, "jdd@dodin.org" <jdd@dodin.org> wrote:
Le 20/10/2023 à 10:57, Carlos E. R. a écrit :
If the destination is the same disk size, dd is straight forward, just copy all. It will not change uuids, that's for some later postprocess.
be warned that similar disks may not have exact same number of sectors/size (specially hdd versus ssd), if the target is even a little smaller than the source, the result may be bad (or not, the worst is not always mandatory :-)
That's why you should always leave a little empty space after the last partition on the disk.
That doesn't help in case of different (logical) sector size.
I think it doesn't matter, as long as the partition sizes, and offsets, are multiples of the sector size, whatever it is. I have written ISO images to USB thumb drives, optical disks (2K sector size), and harddisks without worrying about the sector size. That is cloning of bit images. -- Robert Webb