sfdisk -d "/dev/sda" | tee "logical.sfdisk"
# partition table of /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 1048576, Id=83, bootable /dev/sda2 : start= 1050624, size=975722544, Id=83 /dev/sda3 : start= 0, size= 0, Id= 0 /dev/sda4 : start= 0, size= 0, Id= 0
sfdisk "/dev/sda" < "logical.sfdisk"