I have Windows on my machine and then installed Ubuntu 12.04 using USB. I was not getting the option to boot into windows, so I ran boot-repair but still I am not getting option to boot into windows. What can be the issue ?
Edit: I have deleted my recovery partition (some 20GB) and installed Ubuntu on it.
I've gone through your log file posted there, and It seems unfortunately the Other OS searcher script isn't working or missing executable bit.
Boot to Ubuntu and open a terminal with Ctrl-Alt-T shortcut.
Execute this command:
Then run this command:
OP says, this doesn't work.
If it doesn't work, I think grub is failing to detect Windows boot files. The most possible cause of this failing is losing Windows. (It was indeed the case as OP confirmed in a comment).
I suggest to use Window 7 disk to repair Windows boot issue and then use the Live CD to fix grub
Hope this will fix the problem.
The problem is there are several possible install modes. UEFI, EFI, and standard. Basically standard is what you get if you shift around your partitions so you can make the grub boot partition one of the first things on disk.
After much experimentation I have found the best way to get everything working is you need both a GPT and an MBR partition table. The reason being if you installed Windows without using UEFI, then it will only be able to read the MBR partition table while booting. While grub will need to read the GPT partition table. In this scenario, you must not install Linux using UEFI mode. With modern bioses, you will see the DVDRAM listed twice. Once with UEFI and once without UEFI. You want to use the without UEFI to install your Linux distribution. However, before installing you will need to prepare your disk. I am assuming you have already resized your partions to make room and created a recovery disk from Windows. Start off with just the standard MBR partition table. If and only if your install complains you need GPT then do the following:
Note: I have only tried this procedure using Fedora 17. It may well turn out that there are problems unique to Ubuntu.