On 12/30/21 04:04, cen wrote:
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.

It works as long as the new disk is at least as big as the old disk and has the same logical block size.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to