Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to dump all my GPT partitions from one drive to another. The MBR equivalent would be sfdisk -d.

Thanks!

share|improve this question
up vote 2 down vote accepted

Take a look at GPT fdisk:

[I] sys-apps/gptfdisk
     Available versions:  0.6.13 (~)0.7.2 (~)0.8.0
     Installed versions:  0.8.0(10:58:25 PM 10/12/2011)
     Homepage:            http://www.rodsbooks.com/gdisk/
     Description:         gdisk - GPT partition table manipulator for Linux

Assuming that you want to dump partition table from sda to sdb, try this:

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

Pay attention to the order, don't revert.

share|improve this answer
    
Worked like a charm! Thanks a lot! – Martin Oct 12 '11 at 16:53
    
I just wanted to add, that -R is the shorthand version of --replicate and specifies the target device. – Thomas Daugaard Oct 21 '13 at 9:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.