According to your link, AutoCad 2011 doesn't modify the MBR, but instead modifies the 2K bytes that follow it (which are usually unused, except by GRUB) therefore you need to reinstall Grub rather than restore the MBR. In any case, since it is an important question I will address what you actually asked - restoring MBR.
By Far the Easiest and quickest way to backup/restore the MBR is to use a linux live-cd and dd
.
Simply boot into the livecd and perform:
dd if=/dev/sda of=MBR.bak bs=512 count=1
restore using the same command but with flipped of
and if
dd if=MBR.bak of=/dev/sda
Make sure that /dev/sda
refers to your primary hard drive, there is no need to specify blocksize and count since MBR.bak is 512 bytes already - NOTE THAT THIS WILL OVERWRITE YOUR PARTITION TABLE - avoid doing so by selecting bs=446 count=1 on the restore (last 66 bytes of the MBR is the table + signature)
To backup and restore the part that AutoCad overwrite replace count with 5 (to cover the first 512 and the 2k following it). Assuming of course that you did this prior to installing AutoCad. Although as Cody pointed out - any piece of software PARTICULARLY A TRIAL VERSION that modifies your hardisk on such a low level should be removed immediately
12Wow, a piece of software modifies your MBR? I'd immediately uninstall it, format my drive, and demand a full refund. – Cody Gray – 2011-05-08T11:37:57.007
4Solution to all that kind of software - virtualization. As in the old days anecdote about MS, don`t even give it a chance. – Bakudan – 2011-05-08T11:46:15.293
I've gotta say I agree with @Cody Gray 100%. – boehj – 2011-05-08T11:51:01.913
What MS Windows version are you running? There are plenty of questions on recovering the MBR: WinXP, WinVista and Win7.
– Lekensteyn – 2011-05-08T14:29:49.850hi i'm original poster. i cant leave comment on posts (i dont know why). so ... my computer is a laptop (Sony Vaio F134/FX) and it has original MS Windows and i hav'nt access to windows install media. – qiback – 2011-05-08T13:28:20.557
@qiback Register both SO and SU accounts with same OpenID. Gain back question. – random – 2011-05-08T17:46:12.373