sfdisk

sfdisk is a program to copy partition information. This is for disks with MBR partition. Use sgdisk if you have GPT partition table.

To save partition info, run

To restore

Copy Partition to Another Disk

This is useful when you setting up raid or when you want to replace a disk in raid.

Once copied, you may need to run

So Linux kernal will read the new partition.

See hdd