How to duplicate / copy GPT partition table?

sfdisk doesn´t do the trick on GPT tables, so this will not work.

 

This is also easy, we need to install

aptitude install sgdisk

 

and then run this two commands: (this will copy the partition table from sda to sdb and then reload the table)

sgdisk -R=/dev/sdb /dev/sda
sgdisk -G /dev/sdb

You cannot comment on this entry