On a non GPT partition table I can do
sfdisk -d /dev/sda | sfdisk /dev/sdb
.
But sfdisk
doesn't support GPT partition tables. What can I use instead?
I'm looking for a one or two command solution, not just using GNU parted to output the partition sizes and then manually making them again.
sfdisk
) were rewritten to include GPT support for util-linux 2.26.sfdisk
differs fromgdisk
in that it doesn't support putting a small boot partition before 1MiB, though, so it choked on my config. (bug reported upstream already.)dd if=/dev/sda of=/dev/sdb
?