User Tools

Site Tools


docu:csheet:sysadm:disks:clone_partition_table

Export and clone partition table from 1 disk to another


For example, assuming that our disk is /dev/sda , to save the partition table we can give the command:

sfdisk -d /dev/sda > partitions.txt


while to restore it, assuming that the destination disk is /dev/sdb and we want to clone the partition table, we can use the command

sfdisk /dev/sdb < partitions.txt
docu/csheet/sysadm/disks/clone_partition_table.txt · Last modified: 2020/07/10 09:44 by admin