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


[[email protected] ~]# sgdisk --backup=sdc.back /dev/sdc
The operation has completed successfully.

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

[[email protected] ~]# sgdisk -G /dev/sde