Here’s a little tip an how to backup your MBR.
This makes an copy of the MBR of the 1st hard drive to an floppy. (You can boot directly from this floppy!)
sander@linuxsource.:~$ su <password> sander@linuxsource.:~$ dd if=/dev/hda of=/dev/fd0 bs=512 count=1
Or LILO:
sander@linuxsource.:~$ sbin/lilo -b /dev/fd0
You can restore it by switching the “if=” and “of=” (input file, output file) parameters.
For restoring it to your home directory, try:
sander@linuxsource:~$ dd if=/dev/hda of=/home/sander/boot.mbr bs=512 count=1
Then you can boot by a Live CD/DVD distribution such as Ubuntu, or other live CD/DVD
and restore it with:
sander@linuxsource:~$ su <password> sander@linuxsource:~$ dd if=/mnt/hda5/sander/boot.mbr of=/dev/hda bs=512 count=1