sfdisk

Backup, restore and cloning of partition table

To backup partition table:

sfdisk -d /dev/sda > sda.table

To restore the partition table:

sfdisk /dev/sda < sda.table

To clone partition table:

sfdisk -d /dev/sda | sfdisk /dev/sdb

Comment