copy/clone GPT partition scheme from one hard disk to another

As we know, sfdisk doesn’t support gpt partition tables, instead sfdisk we can use gdisk tool.

yum install gdisk


[root@localhost ~]# sgdisk --backup=sdc.back /dev/sdc
The operation has completed successfully.

[root@localhost ~]# sgdisk --load-backup=sdc.back /dev/sde
The operation has completed successfully.

[root@localhost ~]# sgdisk -G /dev/sde

Leave a Reply

Your email address will not be published. Required fields are marked *