Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the most efficient way to match the partition tables on two different hard disks?

I have saved the partition tables using dd command in linux.

The partition tables are from a Windows system.

share|improve this question

1 Answer 1

If you have any extended/logical partitions, using dd to copy the MBR will not be sufficient because the detailed information about the logical partions is stored at the front of each logical partition and not at the beginning of the disk.

The most common and simplest way to copy a partition table from one disk to another is to use sfdisk like the following:

sfdisk -d /dev/sda | sfdisk /dev/sdb
share|improve this answer

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.