Como copiar o particionamento de um disco completo usando ferramentas padrão

Fonte: command line - How to copy the partition layout of a whole disk using standard tools - Unix & Linux Stack Exchange

source=/dev/sda
dest=/dev/sdb
Para discos MBR:
# Save MBR disks
sfdisk -d $source > /partitions-backup-$(basename $source).sfdisk
sfdisk -d $dest   > /partitions-backup-$(basename $dest).sfdisk

# Copy $source layout to $dest
sfdisk -d $source | sfdisk $dest
Para discos GPT:
# Save GPT disks
sgdisk --backup=/partitions-backup-$(basename $source).sgdisk $source
sgdisk --backup=/partitions-backup-$(basename $dest).sgdisk $dest

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$dest $source
sgdisk -G $dest

IP
3.237.16.210