I installed Ubuntu 10.10 and Windows 7 on my hard disk and I had one boot loader for both of them, which is Grub2. I had some problems with my bios and hard disk that Led to my issue with Grub. I installed my previous Linux on the sda5 partition and hence I want to recover its Grub.
And please provide me with some resources on how to recover the Grub 2?
EDIT: i followed the instructions in this site in response to 'suicideducky' answer and i found that this is the device (hd0,4) but when trying setup (hd0,4) it returned Error 12: Invalid device requested
Update: i sucssefuly done what is in the above with site but while the boot time the grub give me and error called Error 17