Disk operations on Linux


 * Save partition layout

sfdisk -d /dev/sda > part_table.bin


 * Restore partition layout

sfdisk /dev/sda < part_table.bin