Backup dd bs=512 count=1 if=/dev/hda of=backup-hda.mbr sfdisk -d /dev/hda > backup-hda.sf
Restore dd if=backup-hda.mbr of=/dev/hda sfdisk /dev/hda < backup-hda.sf
ref. http://www.partimage.org/doc/index-3.html#ss3.7