Backing up your Linux MBR
It's a good practice to backup your MBR in case of an emergency, to do so execute the following as root or using sudo
# dd if=/dev/sda of=mbr.backup bs=1 count=512
To restore it, boot with a livecd or any other tool and execute:
# dd if=mbr.backup of=/dev/sda
Remember to check your disk unity, it may be different than sda, it could be hda or something else to check it quickly use the df command.












