Actually, it wouldn't be hard to copy the whole 512 bytes of the mbr to file with 'dd' and then only copy the first 446 bytes of the file back to the mbr to restore the boot code without overwriting the partition table.................It would be real simple to make a script to do that.......
Let's see.......a script called
mbr:
Code:
#!/bin/sh
#*******************************************************************************
# Name: mbr
case $1 in
copy )
dd if=/dev/hda of=$2 count=1 bs=512 ;;
restore )
dd if=$2 of=/dev/hda count=1 bs=446 ;;
* )
echo "Usage: $0 copy|restore FILE ;;
esac