When setting up the Master Boot Record, you need to enter appropriate partition information. In this example, Grub is in the first partition on the first hard drive, which is (hd0,0) in Grub. Change this to whatever partition Grub is in.
After getting the Grub prompt, type:
This has been sitting as draft since August 5 and works in setting the MBR on a hard drive and since things like this can be easily forgotten, it has become a reference. Even Testdisk couldn’t write the MBR correctly when I tried to transfer a Fedora14 VM onto a real hard drive. After setting the MBR and getting it to boot the network and graphic interfaces required manual intervention. I’m not convinced transferring a virtual image to a physical image is much of a time saver.
Note: Not all installations have grub installed by default. The command to get the grub prompt is /sbin/grub run as root.