Backup MBR to Image File
Make a copy of MBR (Master Boot Record) to a file.
dd if=/dev/hda of=mbr.img bs=512 count=1
dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR
Make a copy of MBR (Master Boot Record) to a file.
dd if=/dev/hda of=mbr.img bs=512 count=1
dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR