Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .