On 26. 12. 21 04:20, Sam Varshavchik wrote:
cen writes:
> On 25. 12. 21 01:16, Sam Varshavchik wrote:
>> cen writes:
>>
>>> # copy partition map from good disk to new disk
>>> sfdisk -d /dev/sde | sfdisk /dev/sdd
>>
>> This only works if the new disk is identical to the old one,
>> geometry-wise.
>>
>> Otherwise you can simply create partitions of the same size using
>> parted, on the new drive.
>
> By geometry you mean block size or something more?
Both block size and the actual size of the disk.
I did this from 300GB (single partition) disk to a 1TB disk (same block
size) and it created a 300GB partition with start/end blocks and all
flags identical.
I might need to take a closer look but it seems to be fine.