sfdisk for GPT, we use sgdisk

sfdisk doesn't support GPT partition tables. But tadaaaaa there is an alternative to copy the GPT partition scheme from one disk to another.

Install gdisk, it's also available in the Ubuntu and Debian repositories.

Copy the partition scheme from /dev/sda to /dev/sdb:

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

Now randomizes the GUID:

gdisk -G /dev/sdb

Thanks it :-)

Posted

April 07, 2012, 4:31 pm

Tags

, , , , , ,

More

Permalink

Comments

Send your comment by mail.