Skip to content

Cloning disk a Partition by Partition (Un tested)

When cloning a bigger to a smaller disk when thew used space fits on the smaller disk.

Resize Partitions

Resize the source disk partitions so the combined sizes fit on the destination disk.

resize2fs -F /dev/sdb1 <size>

Export Partition Table

sfdisk -d /dev/sdb > partition-table.txt

Import Partition Table

The file probably needs to be edited since there are gaps between the partitions after resizing.

sfdisk /dev/sdc < partition-table.txt